summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-25 20:12:20 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-25 20:12:20 +0300
commit80b0caa35e4b84b745daef7e4102b428539cdee5 (patch)
treeeb24de08cd9bed429569b34f35fa0f638fcdc93d /src/gui/widgets/tabbedarea.cpp
parent7369332bb0a6d219cb2415a0b5e65bf2825da349 (diff)
downloadplus-80b0caa35e4b84b745daef7e4102b428539cdee5.tar.gz
plus-80b0caa35e4b84b745daef7e4102b428539cdee5.tar.bz2
plus-80b0caa35e4b84b745daef7e4102b428539cdee5.tar.xz
plus-80b0caa35e4b84b745daef7e4102b428539cdee5.zip
Remove safeDraw implimentation from Widget.
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r--src/gui/widgets/tabbedarea.cpp13
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();