aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf/PresentationLabel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/PresentationLabel.h')
-rw-r--r--src-qt5/desktop-utils/lumina-pdf/PresentationLabel.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/PresentationLabel.h b/src-qt5/desktop-utils/lumina-pdf/PresentationLabel.h
index e838c46a..19815229 100644
--- a/src-qt5/desktop-utils/lumina-pdf/PresentationLabel.h
+++ b/src-qt5/desktop-utils/lumina-pdf/PresentationLabel.h
@@ -10,25 +10,29 @@
#ifndef _PRESENTATION_LABEL_WIDGET_H
#define _PRESENTATION_LABEL_WIDGET_H
+#include <QDebug>
#include <QLabel>
#include <QMouseEvent>
-#include <QDebug>
-class PresentationLabel : public QLabel{
+class PresentationLabel : public QLabel {
Q_OBJECT
signals:
void nextSlide();
public:
- PresentationLabel() : QLabel(0, Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint){
+ PresentationLabel()
+ : QLabel(0, Qt::Window | Qt::FramelessWindowHint |
+ Qt::WindowStaysOnTopHint) {
this->setContextMenuPolicy(Qt::CustomContextMenu);
}
protected:
- void mousePressEvent(QMouseEvent *ev){
+ void mousePressEvent(QMouseEvent *ev) {
QLabel::mousePressEvent(ev);
- if(ev->button()==Qt::LeftButton){ emit nextSlide(); }
+ if (ev->button() == Qt::LeftButton) {
+ emit nextSlide();
+ }
}
};
bgstack15