From 13eb32c82e736b033435e596111b7b0f3fe75608 Mon Sep 17 00:00:00 2001 From: zautrix Date: Thu, 30 Jun 2005 11:54:09 +0000 Subject: fixx --- (limited to 'korganizer/koeditorgeneral.cpp') diff --git a/korganizer/koeditorgeneral.cpp b/korganizer/koeditorgeneral.cpp index 50a04ea..5c94f62 100644 --- a/korganizer/koeditorgeneral.cpp +++ b/korganizer/koeditorgeneral.cpp @@ -159,7 +159,6 @@ void KOEditorGeneral::showCatPopup() } void KOEditorGeneral::selectedCatPopup( int index ) { - qDebug("i %d c %d ", index, KOPrefs::instance()->mCustomCategories.count()); QStringList categories = QStringList::split (",", mCategoriesLabel->text()); QString colcat = categories.first(); if (categories.find (KOPrefs::instance()->mCustomCategories[index]) != categories.end ()) @@ -173,7 +172,7 @@ void KOEditorGeneral::selectedCatPopup( int index ) categories.prepend( colcat ); } } - mCategoriesLabel->setText( categories.join(",") ); + setCategories( categories.join(",") ); } void KOEditorGeneral::initCategories(QWidget *parent, QBoxLayout *topLayout) @@ -398,6 +397,8 @@ void KOEditorGeneral::alarmDisable(bool disable) void KOEditorGeneral::setCategories(const QString &str) { + QString tt = str; + QToolTip::add( mCategoriesLabel, i18n("Click here to edit categories: ") +""+tt.replace( QRegExp(","),", ")+""); mCategoriesLabel->setText(str); } -- cgit v0.9.0.2