diff options
author | Ray-V <ray-v@inbox.lv> | 2021-02-11 11:37:04 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-02-11 11:37:04 +0900 |
commit | 0da79dd6ef5eae251828d32568aedb01240590b3 (patch) | |
tree | a41922a2bef3cfc3f112996d35f2fa2ea0ae9a76 /src/resizabledragwidget.cpp | |
parent | d1fca948cfde3b711652e69e03084908facc9f83 (diff) | |
download | kvkbd-0da79dd6ef5eae251828d32568aedb01240590b3.tar.gz kvkbd-0da79dd6ef5eae251828d32568aedb01240590b3.zip |
Added 'lock on screen' functionality.
Signed-off-by: Ray-V <ray-v@inbox.lv>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/resizabledragwidget.cpp')
-rw-r--r-- | src/resizabledragwidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resizabledragwidget.cpp b/src/resizabledragwidget.cpp index ec48d6e..9cb3ade 100644 --- a/src/resizabledragwidget.cpp +++ b/src/resizabledragwidget.cpp @@ -36,6 +36,10 @@ ResizableDragWidget::~ResizableDragWidget() void ResizableDragWidget::mousePressEvent(TQMouseEvent * e) { + if (locked) + { + return; + } TQPoint pos = e->pos(); if (pos.x()>width()-20 && pos.x()<width() && pos.y()>height()-20 && pos.y()<height() ) { |