summaryrefslogtreecommitdiffstats
path: root/src/traylabelmgr.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-03-28 23:43:25 +0900
committerMichele Calgaro <[email protected]>2020-03-28 23:43:25 +0900
commitfd098d95326611bee6450e153a65cee0a5666c29 (patch)
treeb48d1d9f474e1f5c4c6b5fe9daa63520663174f3 /src/traylabelmgr.cpp
parentbce0b6b20578e7e6b3da987ccc23bdf07bc79a72 (diff)
downloadtdedocker-fd098d95326611bee6450e153a65cee0a5666c29.tar.gz
tdedocker-fd098d95326611bee6450e153a65cee0a5666c29.zip
1) Additional work on tq app -> tde app translation (tq -> TDE actions)
2) Added "Quit All" command to popup menu. Signed-off-by: Michele Calgaro <[email protected]>
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)