summaryrefslogtreecommitdiffstats
path: root/src/DragWidget.h
diff options
context:
space:
mode:
authorRay-V <ray-v@inbox.lv>2021-02-11 11:37:04 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-02-11 12:36:02 +0900
commit16e7cd436a26f2c3c401034082e739543ec7860e (patch)
tree2a5545dac1cb23c36e46f133a182f9ab38f0131d /src/DragWidget.h
parent2c38847e01161b7e4720271b1b17e79007334855 (diff)
downloadkvkbd-16e7cd43.tar.gz
kvkbd-16e7cd43.zip
Added 'lock on screen' functionality.
Signed-off-by: Ray-V <ray-v@inbox.lv> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 0da79dd6ef5eae251828d32568aedb01240590b3)
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;
};