summaryrefslogtreecommitdiffstats
path: root/examples/widgets/pdfviewer/mainwindow.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@theqtcompany.com>2014-12-15 15:23:45 +0100
committerShawn Rutledge <shawn.rutledge@theqtcompany.com>2014-12-15 16:40:08 +0100
commit19c5571e0434990cbc529d4bb948e3c2e88cca21 (patch)
tree012270890b6f53079b547d3d9ba2deaafc41bf2d /examples/widgets/pdfviewer/mainwindow.h
parentc1ecb9b0e46b5b86a329b6b03a26e13bf8f0c659 (diff)
initial single-threaded implementation of pdfviewer example
Diffstat (limited to 'examples/widgets/pdfviewer/mainwindow.h')
-rw-r--r--examples/widgets/pdfviewer/mainwindow.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/widgets/pdfviewer/mainwindow.h b/examples/widgets/pdfviewer/mainwindow.h
new file mode 100644
index 0000000..e31f0b9
--- /dev/null
+++ b/examples/widgets/pdfviewer/mainwindow.h
@@ -0,0 +1,34 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QMainWindow>
+#include <QLoggingCategory>
+
+Q_DECLARE_LOGGING_CATEGORY(lcExample)
+
+namespace Ui {
+class MainWindow;
+}
+
+class QPdfDocument;
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ explicit MainWindow(QWidget *parent = 0);
+ ~MainWindow();
+
+public slots:
+ void open(const QUrl &docLocation);
+
+private slots:
+ void on_actionOpen_triggered();
+
+private:
+ Ui::MainWindow *ui;
+ QPdfDocument *m_doc;
+};
+
+#endif // MAINWINDOW_H