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. --- filepropertiesdialog.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'filepropertiesdialog.h') diff --git a/filepropertiesdialog.h b/filepropertiesdialog.h index 4257f18..d03eb86 100644 --- a/filepropertiesdialog.h +++ b/filepropertiesdialog.h @@ -8,18 +8,20 @@ #ifndef FILEPROPERTIESDIALOG_H #define FILEPROPERTIESDIALOG_H -#include #include #include +#include "smdialog.h" + class QPushButton; class QTreeView; class QLabel; class QTabWidget; class SmTreeModel; class MetadataWidget; +class QShowEvent; -class FilePropertiesDialog : public QDialog +class FilePropertiesDialog : public SmDialog { Q_OBJECT public: -- cgit v1.2.3-70-g09d2