summaryrefslogtreecommitdiff
path: root/src/gui/windows/debugwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-20 17:53:22 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-20 18:49:07 +0300
commit775d6f983a18457b82747ac6c53123f84629ede5 (patch)
tree7a13a11156825d7186fa2305caf07854893adf0a /src/gui/windows/debugwindow.cpp
parent0cc66ba20aa01f5319fcea108abdca5916c5c61b (diff)
downloadplus-775d6f983a18457b82747ac6c53123f84629ede5.tar.gz
plus-775d6f983a18457b82747ac6c53123f84629ede5.tar.bz2
plus-775d6f983a18457b82747ac6c53123f84629ede5.tar.xz
plus-775d6f983a18457b82747ac6c53123f84629ede5.zip
Add support for unselectable widgets.
If move mouse over or try to select, this widget will be ignored. Set labels unselectable by default. Set unselectable tabs in debug window.
Diffstat (limited to 'src/gui/windows/debugwindow.cpp')
-rw-r--r--src/gui/windows/debugwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/windows/debugwindow.cpp b/src/gui/windows/debugwindow.cpp
index 3c0c60b0f..2c9a5c3f6 100644
--- a/src/gui/windows/debugwindow.cpp
+++ b/src/gui/windows/debugwindow.cpp
@@ -57,6 +57,9 @@ DebugWindow::DebugWindow() :
setDefaultSize(400, 300, ImagePosition::CENTER);
+ mTabs->setSelectable(false);
+ mTabs->getWidgetContainer()->setSelectable(false);
+ mTabs->getTabContainer()->setSelectable(false);
// TRANSLATORS: debug window tab
mTabs->addTab(std::string(_("Map")), mMapWidget);
// TRANSLATORS: debug window tab