summaryrefslogtreecommitdiffstats
path: root/statisticsdialog.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2011-08-17 21:46:39 +0200
committerArno <am@disconnect.de>2011-08-17 21:50:21 +0200
commit7195badbe2ff943d730f7d79ab183acec8ce26c3 (patch)
tree2618c13868496b2a87a54cf6659e2ea73198171b /statisticsdialog.h
parent94e7da1400e59256f41f72b4592d4a9df1cca5a0 (diff)
downloadSheMov-7195badbe2ff943d730f7d79ab183acec8ce26c3.tar.gz
SheMov-7195badbe2ff943d730f7d79ab183acec8ce26c3.tar.bz2
SheMov-7195badbe2ff943d730f7d79ab183acec8ce26c3.zip
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.
Diffstat (limited to 'statisticsdialog.h')
-rw-r--r--statisticsdialog.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/statisticsdialog.h b/statisticsdialog.h
index 4e7107a..27de9fa 100644
--- a/statisticsdialog.h
+++ b/statisticsdialog.h
@@ -8,16 +8,17 @@
#ifndef STATISTICSDIALOG_H
#define STATISTICSDIALOG_H
-#include <QDialog>
#include <QList>
#include <QVariant>
#include <QSize>
#include <QFont>
#include <QTextDocument>
+#include "smdialog.h"
+
class QPaintEvent;
-class StatisticsDialog : public QDialog {
+class StatisticsDialog : public SmDialog {
Q_OBJECT
public:
StatisticsDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);