diff options
author | Ray-V <[email protected]> | 2021-02-11 11:37:04 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-02-11 12:36:02 +0900 |
commit | 16e7cd436a26f2c3c401034082e739543ec7860e (patch) | |
tree | 2a5545dac1cb23c36e46f133a182f9ab38f0131d /src/DragWidget.h | |
parent | 2c38847e01161b7e4720271b1b17e79007334855 (diff) | |
download | kvkbd-16e7cd436a26f2c3c401034082e739543ec7860e.tar.gz kvkbd-16e7cd436a26f2c3c401034082e739543ec7860e.zip |
Added 'lock on screen' functionality.
Signed-off-by: Ray-V <[email protected]>
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 0da79dd6ef5eae251828d32568aedb01240590b3)
Diffstat (limited to 'src/DragWidget.h')
-rw-r--r-- | src/DragWidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DragWidget.h b/src/DragWidget.h index 8519e16..ed311d3 100644 --- a/src/DragWidget.h +++ b/src/DragWidget.h @@ -12,6 +12,9 @@ public: DragWidget(TQWidget *parent=0, const char *name="", WFlags f=0); virtual ~DragWidget(); + void setLocked(bool mode); + const bool isLocked() const; + private: bool drag; @@ -22,6 +25,7 @@ protected: void mouseReleaseEvent ( TQMouseEvent * e ); TQPoint dragP; TQPoint gpress; + bool locked; }; |