diff options
author | Roman Savochenko <roman@home.home> | 2023-11-22 09:45:36 +0200 |
---|---|---|
committer | Roman Savochenko <roman@home.home> | 2023-11-22 09:45:36 +0200 |
commit | c5804975ec535433effc1dbecefa1b51910b1b67 (patch) | |
tree | 593b0e8117f78e2946bc19a7dbb9fb68f5c9fe49 /karm/mainwindow.cpp | |
parent | d470e73134c09daf33a87bd80920fc278bf2b3c2 (diff) | |
download | tdepim-feat/karm-busyCntr-itemReset.tar.gz tdepim-feat/karm-busyCntr-itemReset.zip |
KARM: Non negative busy counter and Item Resetfeat/karm-busyCntr-itemReset
Signed-off-by: Roman Savochenko <roman@home.home>
Diffstat (limited to 'karm/mainwindow.cpp')
-rw-r--r-- | karm/mainwindow.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/karm/mainwindow.cpp b/karm/mainwindow.cpp index 8265db055..13879e622 100644 --- a/karm/mainwindow.cpp +++ b/karm/mainwindow.cpp @@ -123,6 +123,7 @@ void MainWindow::slotSelectionChanged() actionEdit->setEnabled(item); actionStart->setEnabled(item && !item->isRunning() && !item->isComplete()); actionStop->setEnabled(item && item->isRunning()); + actionResetTime->setEnabled(item && !item->isRunning()); actionMarkAsComplete->setEnabled(item && !item->isComplete()); actionMarkAsIncomplete->setEnabled(item && item->isComplete()); } @@ -281,6 +282,11 @@ void MainWindow::makeMenus() TQT_TQOBJECT(_taskView), TQT_SLOT( stopCurrentTimer() ), actionCollection(), "stop"); + actionResetTime = new TDEAction( i18n("Re&set Time"), + 0, + TQT_TQOBJECT(_taskView), + TQT_SLOT( resetTimeCurrentTask() ), actionCollection(), + "reset_times"); actionStopAll = new TDEAction( i18n("Stop &All Timers"), Key_Escape, TQT_TQOBJECT(_taskView), @@ -406,6 +412,9 @@ void MainWindow::makeMenus() actionStopAll->setToolTip( i18n("Stop all of the active timers") ); actionStopAll->setWhatsThis( i18n("Stop all of the active timers") ); + actionResetTime->setToolTip( i18n("Reset times of the selected task") ); + actionResetTime->setWhatsThis( i18n("Reset times of the selected task") ); + actionNew->setToolTip( i18n("Create new top level task") ); actionNew->setWhatsThis( i18n("This will create a new top level task.") ); |