Home
Phabricator
Search
Log In
Paste
P399
(An Untitled Masterwork)
Active
Public
Actions
Authored by
davidre
on Jun 5 2019, 3:24 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/src/QuickEditor/QuickEditor.cpp b/src/QuickEditor/QuickEditor.cpp
index b8bc2dd..559b7bc 100644
--- a/src/QuickEditor/QuickEditor.cpp
+++ b/src/QuickEditor/QuickEditor.cpp
@@ -837,3 +837,13 @@ QuickEditor::MouseState QuickEditor::mouseLocation(const QPointF& pos)
return MouseState::Outside;
}
}
+#include <QTimer>
+void QuickEditor::showFullScreen()
+{
+ QWidget::showFullScreen();
+ QTimer::singleShot(2000, this, [this]{
+ mMaskColor = QColor::fromRgb(255, 255, 0, 32);
+ repaint();
+ grabKeyboard();
+ });
+}
diff --git a/src/QuickEditor/QuickEditor.h b/src/QuickEditor/QuickEditor.h
index 0ad7ac1..4760ed4 100644
--- a/src/QuickEditor/QuickEditor.h
+++ b/src/QuickEditor/QuickEditor.h
@@ -38,6 +38,7 @@ class QuickEditor: public QWidget
public:
explicit QuickEditor(const QPixmap &thePixmap, QWidget *parent = nullptr);
+ void showFullScreen();
virtual ~QuickEditor() = default;
private:
davidre
created this paste.
Jun 5 2019, 3:24 PM
davidre
created this object in space
S1 KDE Community
.
davidre
edited the content of this paste.
(Show Details)
Log In to Comment