summaryrefslogtreecommitdiffstats
path: root/src/DragWidget.h
diff options
context:
space:
mode:
authorRay-V <[email protected]>2021-02-11 11:37:04 +0900
committerMichele Calgaro <[email protected]>2021-02-11 11:37:04 +0900
commit0da79dd6ef5eae251828d32568aedb01240590b3 (patch)
treea41922a2bef3cfc3f112996d35f2fa2ea0ae9a76 /src/DragWidget.h
parentd1fca948cfde3b711652e69e03084908facc9f83 (diff)
downloadkvkbd-0da79dd6ef5eae251828d32568aedb01240590b3.tar.gz
kvkbd-0da79dd6ef5eae251828d32568aedb01240590b3.zip
Added 'lock on screen' functionality.
Signed-off-by: Ray-V <[email protected]> Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/DragWidget.h')
-rw-r--r--src/DragWidget.h4
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;
};