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.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mappingtableeditor.cpp') diff --git a/mappingtableeditor.cpp b/mappingtableeditor.cpp index a5721d2..83015ef 100644 --- a/mappingtableeditor.cpp +++ b/mappingtableeditor.cpp @@ -21,7 +21,7 @@ #include "mappingtableeditor.h" //widget -MappingTableEditor::MappingTableEditor(const QString &table, QWidget *parent) : QDialog(parent), mTable(table){ +MappingTableEditor::MappingTableEditor(const QString &table, QWidget *parent) : SmDialog(parent), mTable(table){ //caption QString l1String = QString(tr("Edit %1s").arg(mTable)); QLabel *l1 = new QLabel(l1String); -- cgit v1.2.3-70-g09d2