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. --- archivetreeview.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archivetreeview.h') diff --git a/archivetreeview.h b/archivetreeview.h index 68b0091..2163fe5 100644 --- a/archivetreeview.h +++ b/archivetreeview.h @@ -13,9 +13,9 @@ #include #include #include -#include #include "smtreemodel.h" +#include "smdialog.h" class SeriesTreeWidget; class FilesTreeWidget; @@ -115,7 +115,7 @@ class NoCoverMovieView : public QTreeView { void contextMenuEvent(QContextMenuEvent *e); }; -class NoCoverMovieDialog : public QDialog { +class NoCoverMovieDialog : public SmDialog { Q_OBJECT public: explicit NoCoverMovieDialog(QWidget *parent = 0, Qt::WindowFlags flags = 0); -- cgit v1.2.3-70-g09d2