From fd098d95326611bee6450e153a65cee0a5666c29 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 28 Mar 2020 23:43:25 +0900 Subject: 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 --- src/traylabelmgr.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/traylabelmgr.cpp') 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 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 it(mTrayLabels); TQTrayLabel *t; while ((t = it.current()) != 0) -- cgit v1.2.1