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.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'consistencycheck.h') diff --git a/consistencycheck.h b/consistencycheck.h index f5470e3..b62dfbc 100644 --- a/consistencycheck.h +++ b/consistencycheck.h @@ -8,13 +8,14 @@ #ifndef CONSISTENCYCHECK_H #define CONSISTENCYCHECK_H -#include #include #include #include #include #include +#include "smdialog.h" + class QPushButton; class QPlainTextEdit; class QLabel; @@ -23,7 +24,7 @@ class QSqlQuery; class QFileInfo; class ConsistencyChecker; -class ConsistencyCheck : public QDialog { +class ConsistencyCheck : public SmDialog { Q_OBJECT public: enum Mode { DbCheck, FsCheck }; -- cgit v1.2.3-70-g09d2