widgets/flickable.cpp \
widgets/listview.cpp \
searchresultsdialog.cpp \
- searchresultinfodialog.cpp
+ searchresultinfodialog.cpp \
+ widgets/progressdialog.cpp
HEADERS += \
mainwindow.h \
search.h \
widgets/flickable.h \
searchresultsdialog.h \
- searchresultinfodialog.h
+ searchresultinfodialog.h \
+ widgets/progressdialog.h
RESOURCES += \
dorian.qrc
#include "searchdialog.h"
#include "platform.h"
#include "searchresultsdialog.h"
+#include "progressdialog.h"
LibraryDialog::LibraryDialog(QWidget *parent): ListWindow(parent)
{
setSelected(current);
addList(list);
- progress = new QProgressDialog(tr("Adding books"), "", 0, 0, this);
+ progress = new ProgressDialog(tr("Adding books"), this);
progress->reset();
progress->setMinimumDuration(0);
progress->setWindowModality(Qt::WindowModal);
class QPushButton;
class QModelIndex;
class QCloseEvent;
-class QProgressDialog;
+class ProgressDialog;
class Book;
class InfoWindow;
class SortedLibrary;
QModelIndex selected() const;
ListView *list;
SortedLibrary *sortedLibrary;
- QProgressDialog *progress;
+ ProgressDialog *progress;
SearchDialog *searchDialog;
};
#include "dyalog.h"
#include "translucentbutton.h"
#include "platform.h"
+#include "progressdialog.h"
#ifdef DORIAN_TEST_MODEL
# include "modeltest.h"
this, SLOT(onCurrentBookChanged()));
// Load library, upgrade it if needed
- libraryProgress = new QProgressDialog(tr("Upgrading library"), "", 0, 0, this);
+ libraryProgress = new ProgressDialog(tr("Upgrading library"), this);
libraryProgress->reset();
libraryProgress->setMinimumDuration(0);
libraryProgress->setWindowModality(Qt::WindowModal);
class Book;
class FullScreenWindow;
class Progress;
+class ProgressDialog;
class TranslucentButton;
class MainWindow: public AdopterWindow
Progress *progress;
TranslucentButton *previousButton;
TranslucentButton *nextButton;
- QProgressDialog *libraryProgress;
+ ProgressDialog *libraryProgress;
};
#endif // MAINWINDOW_H
QWidget *parent):
Dyalog(parent), result(result_)
{
- setWindowTitle(tr("Book Details"));
+ setWindowTitle(tr("Download Book?"));
QLabel *title = new QLabel(result.title, this);
addWidget(title);
--- /dev/null
+#include <QString>
+#include <QtGui>
+
+#include "progressdialog.h"
+
+ProgressDialog::ProgressDialog(const QString &label, QWidget *parent):
+ QProgressDialog(label, "", 0, 0, parent)
+{
+}
--- /dev/null
+#ifndef PROGRESSDIALOG_H
+#define PROGRESSDIALOG_H
+
+#include <QString>
+#include <QProgressDialog>
+
+class ProgressDialog: public QProgressDialog
+{
+ Q_OBJECT
+
+public:
+ explicit ProgressDialog(const QString &label, QWidget *parent = 0);
+
+signals:
+
+public slots:
+
+};
+
+#endif // PROGRESSDIALOG_H