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. --- mappingtableeditor.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mappingtableeditor.h') diff --git a/mappingtableeditor.h b/mappingtableeditor.h index 124f76e..d372d0b 100644 --- a/mappingtableeditor.h +++ b/mappingtableeditor.h @@ -8,10 +8,13 @@ #ifndef MAPPINGTABLEEDITOR_H #define MAPPINGTABLEEDITOR_H -#include #include #include +#include "smdialog.h" +#include "smtreemodel.h" +#include "smtreeitem.h" + class QSqlQuery; class QContextMenuEvent; class QPushButton; @@ -20,10 +23,7 @@ class QAction; class MappingTableEditorView; class MappingTableEditorModel; -#include "smtreemodel.h" -#include "smtreeitem.h" - -class MappingTableEditor : public QDialog { +class MappingTableEditor : public SmDialog { Q_OBJECT public: explicit MappingTableEditor(const QString &table, QWidget *parent = 0); -- cgit v1.2.3-70-g09d2