aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/addon/managementdialog.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2008-10-07 14:14:21 +0000
committerGravatar Fabio Bas2008-10-07 14:14:21 +0000
commit09c0f91a14d6cade6c1f2bfc926d024f483bc7e5 (patch)
tree0bb615166159e783215e53a022fed6d96376a4d9 /src/modules/addon/managementdialog.cpp
parentfix for #195 upported to 4.0 (diff)
downloadKVIrc-09c0f91a14d6cade6c1f2bfc926d024f483bc7e5.tar.gz
KVIrc-09c0f91a14d6cade6c1f2bfc926d024f483bc7e5.tar.bz2
KVIrc-09c0f91a14d6cade6c1f2bfc926d024f483bc7e5.zip
some fixes to options windows positioning and size;
global fix for hbox/vbox margin and spacing widths git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2665 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/addon/managementdialog.cpp')
-rw-r--r--src/modules/addon/managementdialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/addon/managementdialog.cpp b/src/modules/addon/managementdialog.cpp
index 0347e530a..23de049a6 100644
--- a/src/modules/addon/managementdialog.cpp
+++ b/src/modules/addon/managementdialog.cpp
@@ -48,7 +48,7 @@
#include <QPushButton>
#include <QLayout>
#include <QApplication>
-
+#include <QDesktopWidget>
#include <QLineEdit>
#include <QLabel>
#include <QFrame>
@@ -316,10 +316,10 @@ void KviScriptManagementDialog::installScript()
void KviScriptManagementDialog::showEvent(QShowEvent * e)
{
-// QRect r = parentWidget() ? parentWidget()->rect() : g_pApp->desktop()->screenGeometry(g_pApp->desktop()->primaryScreen());
-// int x = (r.width() - width()) / 2;
-// int y = (r.height() - height()) / 2;
-// move(x,y);
+ QRect rect = g_pApp->desktop()->screenGeometry(g_pApp->desktop()->primaryScreen());
+ move((rect.width() - width())/2,(rect.height() - height())/2);
+
+ QDialog::showEvent(e);
}
void KviScriptManagementDialog::closeClicked()