summaryrefslogtreecommitdiffstats
path: root/src/traylabelmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/traylabelmgr.cpp')
-rw-r--r--src/traylabelmgr.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/traylabelmgr.cpp b/src/traylabelmgr.cpp
index 29aa0f4..54e8fbd 100644
--- a/src/traylabelmgr.cpp
+++ b/src/traylabelmgr.cpp
@@ -137,10 +137,23 @@ void TrayLabelMgr::dockAnother()
t->dock();
}
+// Close all the windows and quit
+void TrayLabelMgr::quitAll()
+{
+ TRACE("quitAll: number of tray labels = %i", mTrayLabels.count());
+ TQPtrListIterator<TQTrayLabel> it(mTrayLabels);
+ TQTrayLabel *t;
+ while ((t = it.current()) != 0)
+ {
+ ++it;
+ t->close();
+ }
+}
+
// Undock all the windows
void TrayLabelMgr::undockAll()
{
- TRACE("Number of tray labels = %i", mTrayLabels.count());
+ TRACE("undockAll: number of tray labels = %i", mTrayLabels.count());
TQPtrListIterator<TQTrayLabel> it(mTrayLabels);
TQTrayLabel *t;
while ((t = it.current()) != 0)