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. --- shemov.pro | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'shemov.pro') diff --git a/shemov.pro b/shemov.pro index 4a52ca6..bb6a6a3 100644 --- a/shemov.pro +++ b/shemov.pro @@ -32,7 +32,8 @@ SOURCES = main.cpp \ hoverwindow.cpp \ consistencycheck.cpp \ seriesmetadatamodel.cpp \ - mappingtableeditor.cpp + mappingtableeditor.cpp \ + smdialog.cpp HEADERS = listitem.h \ filesystemdirproxy.h \ filesystemwidget.h \ @@ -60,6 +61,7 @@ HEADERS = listitem.h \ hoverwindow.h \ consistencycheck.h \ seriesmetadatamodel.h \ - mappingtableeditor.h + mappingtableeditor.h \ + smdialog.h LIBS += -lmagic -lXfixes RESOURCES = shemov.qrc -- cgit v1.2.3-70-g09d2