From 7195badbe2ff943d730f7d79ab183acec8ce26c3 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 17 Aug 2011 21:46:39 +0200 Subject: Center Dialogs on screen Since I'm now using a tiling window manager dialogs have to center themselves on the screen. Otherwise they end up at QPoint(0,0). Not very nice. Subclassed QDialog to SmDialog and converted all dialogs. --- consistencycheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'consistencycheck.cpp') diff --git a/consistencycheck.cpp b/consistencycheck.cpp index 1d5114c..43e06d2 100644 --- a/consistencycheck.cpp +++ b/consistencycheck.cpp @@ -28,7 +28,7 @@ #include "consistencycheck.h" #include "helper.h" -ConsistencyCheck::ConsistencyCheck(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f), mChecker(0){ +ConsistencyCheck::ConsistencyCheck(QWidget *parent, Qt::WindowFlags f) : SmDialog(parent, f), mChecker(0){ // setup widget QLabel *okLabel = new QLabel(tr("Ok")); mOkDisplay = new QPlainTextEdit; -- cgit v1.2.3-70-g09d2