[SCM] Kaboom - Debian KDE 3->4 migration tool branch, master, updated. master/1.1.0-8-g7d5c532

George Kiagiadakis gkiagia-guest at alioth.debian.org
Sun Apr 12 17:55:27 UTC 2009


The following commit has been merged in the master branch:
commit 7d5c5320fd2cc0874033ab22083a224dae8016e1
Author: George Kiagiadakis <gkiagia at users.sourceforge.net>
Date:   Sun Apr 12 20:53:01 2009 +0300

    Move to the top left (x,y) position specified by the current screen's geometry.
    
    The previous implementation to move at (0,0) caused trouble on multiple screen
    systems. This patch also sets the maximum size of the wizard to be the size of
    the screen (although the wizard doesn't really respect that).

diff --git a/migrationtool.cpp b/migrationtool.cpp
index 125f9c5..c4ed8fb 100644
--- a/migrationtool.cpp
+++ b/migrationtool.cpp
@@ -51,7 +51,14 @@ MigrationTool::MigrationTool(QWidget *parent) : QWizard(parent)
   setPage(Migration,d->migration);
 
   setStartId(MigrationTool::Intro);
-  move(0,0);
+
+  //force the application to appear at the top left corner
+  //and have maximum size the size of the screen.
+  QDesktopWidget *desktop = QApplication::desktop();
+  const QRect geometry = desktop->screenGeometry(this);
+  qDebug() << "Screen geometry:" << geometry;
+  move(geometry.x(), geometry.y());
+  setMaximumSize(geometry.size());
 }
 
 QSize MigrationTool::minimumSizeHint() const

-- 
Kaboom - Debian KDE 3->4 migration tool



More information about the pkg-kde-commits mailing list