From e28605ac6addc6b71166374e548df20ac573a899 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Mon, 6 Oct 2008 09:01:39 +0000 Subject: hopefully fixed all the dual-screen setup dialog centering problems git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2660 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/options/container.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/options/container.cpp') diff --git a/src/modules/options/container.cpp b/src/modules/options/container.cpp index 012f7bf25..731f5ff33 100644 --- a/src/modules/options/container.cpp +++ b/src/modules/options/container.cpp @@ -100,8 +100,8 @@ void KviOptionsWidgetContainer::showEvent(QShowEvent *e) { if(parent() == 0) { - move((g_pApp->desktop()->width() - width()) / 2, - (g_pApp->desktop()->height() - height()) / 2); + QRect rect = g_pApp->desktop()->screenGeometry(g_pApp->desktop()->primaryScreen()); + move((rect.width() - width())/2,(rect.height() - height())/2); } QWidget::showEvent(e); m_pCancel->setFocus(); -- cgit v1.3.1-10-gc9f91