summaryrefslogtreecommitdiffabout
path: root/korganizer/calendarview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/calendarview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index d0de233..c0f3be7 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -116,6 +116,7 @@
#include "navigatorbar.h"
#include "searchdialog.h"
#include "mainwindow.h"
+#include "categoryeditdialog.h"
#include "calendarview.h"
#ifndef DESKTOP_VERSION
@@ -313,7 +314,7 @@ class KOCatPrefs : public QDialog
QVBoxLayout* lay = new QVBoxLayout( this );
lay->setSpacing( 3 );
lay->setMargin( 3 );
- QLabel * lab = new QLabel( i18n("After importing/loading/syncing\nthere may be new categories in\nevents or todos\nwhich are not in the category list.\nPlease choose what to do:\n "), this );
+ QLabel * lab = new QLabel( i18n("After importing/loading/syncing there may be new categories in events or todos which are not added automatically to the category list. Please choose what to do <b>now</b>:"), this );
lay->addWidget( lab );
QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("New categories not in list:"), this );
lay->addWidget( format );
@@ -321,7 +322,7 @@ class KOCatPrefs : public QDialog
addCatBut = new QRadioButton(i18n("Add to category list"), format );
new QRadioButton(i18n("Remove from Events/Todos"), format );
addCatBut->setChecked( true );
- QPushButton * ok = new QPushButton( i18n("OK"), this );
+ QPushButton * ok = new QPushButton( i18n("Change category list now!"), this );
lay->addWidget( ok );
QPushButton * cancel = new QPushButton( i18n("Cancel"), this );
lay->addWidget( cancel );
@@ -2818,6 +2819,12 @@ int CalendarView::addCategories()
return count;
}
+void CalendarView::editCategories()
+{
+ qDebug("CalendarView::editCategories() ");
+ KPIM::CategoryEditDialog ced (KOPrefs::instance(),this );
+ ced.exec();
+}
void CalendarView::manageCategories()
{
KOCatPrefs* cp = new KOCatPrefs();