Fix loading book and restoring reading position on Maemo.
[dorian] / settingswindow.h
index 7a9ced5..d89a028 100644 (file)
@@ -1,7 +1,10 @@
 #ifndef SETTINGSWINDOW_H
 #define SETTINGSWINDOW_H
 
-#include <QMainWindow>
+#include <QLabel>
+#include <QSlider>
+
+#include "adopterwindow.h"
 
 class QPushButton;
 class QFontComboBox;
@@ -12,7 +15,7 @@ class QLabel;
 class ToolButtonBox;
 
 /** Display settings. */
-class SettingsWindow: public QMainWindow
+class SettingsWindow: public AdopterWindow
 {
     Q_OBJECT
 
@@ -32,15 +35,12 @@ public slots:
     void onGrabVolumeToggled(bool enable);
 
 protected:
-#ifdef Q_WS_MAEMO_5
     void closeEvent(QCloseEvent *e);
-#endif
 
 private:
     QSlider *zoomSlider;
     QLabel *zoomLabel;
     QFontComboBox *fontButton;
-    ToolButtonBox *orientationBox;
 };
 
 #endif // SETTINGSWINDOW_H