summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-15 00:26:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-15 00:26:35 +0300
commitff516e9f60e9554e8938d04192a8e5ec9efb5647 (patch)
treeb134dd0202377c5b182f62870b983fe078700e28 /src/gui/gui.h
parent269f642099ec8e4c6bcf735496c32ee8019aaf1b (diff)
downloadplus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.gz
plus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.bz2
plus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.xz
plus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.zip
fix code style.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h
index f7c913752..8805f2518 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -302,10 +302,10 @@ class Gui final
*/
void removeGlobalKeyListener(KeyListener *const keyListener);
- bool isLongPress()
+ bool isLongPress() const
{ return getMousePressLength() > 250; }
- int getMousePressLength();
+ int getMousePressLength() const;
protected:
void handleMouseMoved(const MouseInput &mouseInput);
@@ -368,7 +368,7 @@ class Gui final
* @since 0.6.0
*/
- void distributeKeyEvent(KeyEvent& keyEvent);
+ void distributeKeyEvent(KeyEvent& keyEvent) const;
/**
* Distributes a key event to the global key listeners.