summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setuptabscroll.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-09 13:12:18 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-09 13:12:18 +0300
commitb3ad7da111d1a21f14de39d84be97104a9666017 (patch)
tree72338ee95de5337acc4e00c6ff6ab8b2fc458d37 /src/gui/widgets/tabs/setuptabscroll.cpp
parent2e47d5e2897ffd8bcf85b499fe68a20f9f694ebb (diff)
downloadplus-b3ad7da111d1a21f14de39d84be97104a9666017.tar.gz
plus-b3ad7da111d1a21f14de39d84be97104a9666017.tar.bz2
plus-b3ad7da111d1a21f14de39d84be97104a9666017.tar.xz
plus-b3ad7da111d1a21f14de39d84be97104a9666017.zip
add mods tab in settings.
Diffstat (limited to 'src/gui/widgets/tabs/setuptabscroll.cpp')
-rw-r--r--src/gui/widgets/tabs/setuptabscroll.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/setuptabscroll.cpp b/src/gui/widgets/tabs/setuptabscroll.cpp
index f01d691b6..81c191dd6 100644
--- a/src/gui/widgets/tabs/setuptabscroll.cpp
+++ b/src/gui/widgets/tabs/setuptabscroll.cpp
@@ -45,6 +45,11 @@ SetupTabScroll::~SetupTabScroll()
delete mContainer;
mContainer = nullptr;
+ removeItems();
+}
+
+void SetupTabScroll::removeItems()
+{
std::set<SetupItem*>::iterator it = mAllItems.begin();
const std::set<SetupItem*>::iterator it_end = mAllItems.end();
while (it != it_end)
@@ -53,6 +58,15 @@ SetupTabScroll::~SetupTabScroll()
++ it;
}
mAllItems.clear();
+
+ mItems.clear();
+}
+
+void SetupTabScroll::clear()
+{
+ removeItems();
+ mContainer->removeControls();
+ mContainer->clear();
}
void SetupTabScroll::addControl(SetupItem *const widget)