diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-09 20:31:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-09 20:31:29 +0300 |
commit | b5c294696cb58d00e8c4c9a005f9bf580a43dc6a (patch) | |
tree | 91279e4c7fab21a1e7f5134f19827cc4c7d5ce97 /src/gui/widgets/window.cpp | |
parent | 84d0d0e63d8e46187f81fdbd241062f942f5e54f (diff) | |
download | ManaVerse-b5c294696cb58d00e8c4c9a005f9bf580a43dc6a.tar.gz ManaVerse-b5c294696cb58d00e8c4c9a005f9bf580a43dc6a.tar.bz2 ManaVerse-b5c294696cb58d00e8c4c9a005f9bf580a43dc6a.tar.xz ManaVerse-b5c294696cb58d00e8c4c9a005f9bf580a43dc6a.zip |
Add theme option to show/hide window title.
New theme option: showTitle
default value: 1
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r-- | src/gui/widgets/window.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 02f6cf35e..5148ec3f5 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -142,6 +142,7 @@ Window::Window(const std::string &caption, const bool modal, mTitleBarHeight += getOption("titlebarHeightRelative"); setPalette(getOption("palette")); childPalette = getOption("childPalette"); + mShowTitle = getOptionBool("showTitle", true); } } @@ -1219,11 +1220,11 @@ int Window::getOption(const std::string &name, const int def) const return def; } -bool Window::getOptionBool(const std::string &name) const +bool Window::getOptionBool(const std::string &name, const bool def) const { if (mSkin) - return mSkin->getOption(name) != 0; - return 0; + return mSkin->getOption(name, def) != 0; + return def; } #ifdef USE_PROFILER |