diff options
| author | 2011-08-21 14:27:01 +0000 | |
|---|---|---|
| committer | 2011-08-21 14:27:01 +0000 | |
| commit | 8a7b7f44d3b12265947f2ffb4f68170bc861325a (patch) | |
| tree | b2570ed0810a1d2f3b683f9334d742aa1588e529 /src/modules/theme/ThemeManagementDialog.cpp | |
| parent | adds text to the wrench on the editor so users can find it... hopefully (diff) | |
| download | KVIrc-8a7b7f44d3b12265947f2ffb4f68170bc861325a.tar.gz KVIrc-8a7b7f44d3b12265947f2ffb4f68170bc861325a.tar.bz2 KVIrc-8a7b7f44d3b12265947f2ffb4f68170bc861325a.zip | |
fix for #1202
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5936 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/theme/ThemeManagementDialog.cpp')
| -rw-r--r-- | src/modules/theme/ThemeManagementDialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/theme/ThemeManagementDialog.cpp b/src/modules/theme/ThemeManagementDialog.cpp index 8cf91beb3..e1becb2c4 100644 --- a/src/modules/theme/ThemeManagementDialog.cpp +++ b/src/modules/theme/ThemeManagementDialog.cpp @@ -70,6 +70,7 @@ #include <QSplitter> #include <QTextDocument> #include <QAbstractTextDocumentLayout> +#include <QShortcut> extern QRect g_rectManagementDialogGeometry; @@ -247,6 +248,8 @@ ThemeManagementDialog::ThemeManagementDialog(QWidget * parent) QRect rect = g_pApp->desktop()->screenGeometry(g_pMainWindow); move(rect.x() + ((rect.width() - g_rectManagementDialogGeometry.width())/2),rect.y() + ((rect.height() - g_rectManagementDialogGeometry.height())/2)); + + new QShortcut(Qt::Key_Escape, this, SLOT(closeClicked())); } ThemeManagementDialog::~ThemeManagementDialog() |
