From a774d58cd478a5473d8328b2a9689bc53a37dbc1 Mon Sep 17 00:00:00 2001 From: ZackaryWelch Date: Wed, 20 Dec 2017 14:41:12 -0500 Subject: Fixed keyboard focus and added an information dialog to lumina-pdf --- src-qt5/desktop-utils/lumina-pdf/mainUI.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src-qt5/desktop-utils/lumina-pdf/mainUI.h') diff --git a/src-qt5/desktop-utils/lumina-pdf/mainUI.h b/src-qt5/desktop-utils/lumina-pdf/mainUI.h index 9ed50ba0..18b3d231 100644 --- a/src-qt5/desktop-utils/lumina-pdf/mainUI.h +++ b/src-qt5/desktop-utils/lumina-pdf/mainUI.h @@ -21,6 +21,7 @@ #include #include "PresentationLabel.h" +#include "propDialog.h" namespace Ui{ class MainUI; @@ -34,11 +35,11 @@ public: void loadFile(QString path); - private: Poppler::Document *DOC; QPrintPreviewWidget *WIDGET; Ui::MainUI *ui; + PropDialog *PROPDIALOG; QPrinter* Printer; QPrintDialog *PrintDLG; QString lastdir; @@ -79,8 +80,9 @@ private slots: void startPresentationHere(){ startPresentation(false); } void startPresentationBeginning(){ startPresentation(true); } void closePresentation(){ endPresentation(); } + void showInformation(); - + void newFocus(QWidget*, QWidget*); void paintOnWidget(QPrinter *PRINTER); void paintToPrinter(QPrinter *PRINTER); @@ -94,12 +96,12 @@ private slots: void setScroll(bool); void rotate(bool); - //void rotate(QPrinter*, bool); signals: void PageLoaded(int); protected: void keyPressEvent(QKeyEvent*); + void wheelEvent(QWheelEvent*); }; #endif -- cgit