diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-25 20:12:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-25 20:12:20 +0300 |
commit | 80b0caa35e4b84b745daef7e4102b428539cdee5 (patch) | |
tree | eb24de08cd9bed429569b34f35fa0f638fcdc93d /src/gui/widgets/tabbedarea.cpp | |
parent | 7369332bb0a6d219cb2415a0b5e65bf2825da349 (diff) | |
download | mv-80b0caa35e4b84b745daef7e4102b428539cdee5.tar.gz mv-80b0caa35e4b84b745daef7e4102b428539cdee5.tar.bz2 mv-80b0caa35e4b84b745daef7e4102b428539cdee5.tar.xz mv-80b0caa35e4b84b745daef7e4102b428539cdee5.zip |
Remove safeDraw implimentation from Widget.
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 081b61aae..0afa71033 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -189,6 +189,19 @@ void TabbedArea::draw(Graphics *graphics) BLOCK_END("TabbedArea::draw") } +void TabbedArea::safeDraw(Graphics *graphics) +{ + BLOCK_START("TabbedArea::draw") + if (mTabs.empty()) + { + BLOCK_END("TabbedArea::draw") + return; + } + + drawChildren(graphics); + BLOCK_END("TabbedArea::draw") +} + Widget *TabbedArea::getWidget(const std::string &name) const { TabContainer::const_iterator itr = mTabs.begin(); |