Make library full screen on Maemo. Show busy indicator while loading
[dorian] / librarydialog.h
index 1424ead..bef71fc 100644 (file)
@@ -4,16 +4,17 @@
 #include <QDialog>
 #include <QString>
 #include <QModelIndexList>
+#include <QMainWindow>
 
-class QMainWindow;
 class QListView;
 class QPushButton;
 class QModelIndex;
+class QCloseEvent;
 class Book;
 class InfoWindow;
 class SortedLibrary;
 
-class LibraryDialog: public QDialog
+class LibraryDialog: public QMainWindow
 {
     Q_OBJECT
 
@@ -32,6 +33,9 @@ public slots:
     void onItemActivated(const QModelIndex &index);
     void onCurrentBookChanged();
 
+protected:
+    void closeEvent(QCloseEvent *event);
+
 private:
     QString createItemText(const Book *book);
     void setSelected(const QModelIndex &index);