summaryrefslogtreecommitdiffstats
path: root/libtdepim
diff options
context:
space:
mode:
authorRoman Savochenko <roman@home.home>2023-11-22 10:13:36 +0200
committerRoman Savochenko <roman@home.home>2023-11-22 10:13:36 +0200
commita569a96a1dccf036b6b8ca0eb3580ece996bf183 (patch)
tree4eb0cd91fd8363dbeba6731b8d2e6d0053fdf003 /libtdepim
parentd470e73134c09daf33a87bd80920fc278bf2b3c2 (diff)
downloadtdepim-a569a96a1dccf036b6b8ca0eb3580ece996bf183.tar.gz
tdepim-a569a96a1dccf036b6b8ca0eb3580ece996bf183.zip
Korganizer: Appending anniversary tooltips in the Month View, Improving dialogs of the attachments and categoriesfeat/korganizer
Signed-off-by: Roman Savochenko <roman@home.home>
Diffstat (limited to 'libtdepim')
-rw-r--r--libtdepim/categoryeditdialog.cpp4
-rw-r--r--libtdepim/categoryselectdialog.cpp3
-rw-r--r--libtdepim/kpimprefs.cpp2
-rw-r--r--libtdepim/kpimprefs.h3
4 files changed, 10 insertions, 2 deletions
diff --git a/libtdepim/categoryeditdialog.cpp b/libtdepim/categoryeditdialog.cpp
index 26abbc07..f4dc38c2 100644
--- a/libtdepim/categoryeditdialog.cpp
+++ b/libtdepim/categoryeditdialog.cpp
@@ -29,6 +29,7 @@
#include <tdelocale.h>
#include "kpimprefs.h"
+#include "categoryselectdialog.h"
#include "categoryeditdialog.h"
@@ -177,6 +178,9 @@ void CategoryEditDialog::slotApply()
mPrefs->writeConfig();
emit categoryConfigChanged();
+
+ if(dynamic_cast<CategorySelectDialog*>(mPrefs->toNotify))
+ ((CategorySelectDialog*)mPrefs->toNotify)->updateCategoryConfig();
}
void CategoryEditDialog::slotCancel()
diff --git a/libtdepim/categoryselectdialog.cpp b/libtdepim/categoryselectdialog.cpp
index cf1b2ac6..b4d9060d 100644
--- a/libtdepim/categoryselectdialog.cpp
+++ b/libtdepim/categoryselectdialog.cpp
@@ -48,6 +48,8 @@ CategorySelectDialog::CategorySelectDialog( KPimPrefs *prefs, TQWidget* parent,
TQT_SIGNAL(editCategories()) );
connect( mWidget->mButtonClear, TQT_SIGNAL(clicked()),
TQT_SLOT(clear()) );
+
+ mPrefs->toNotify = this;
}
void CategorySelectDialog::setCategories( const TQStringList &categoryList )
@@ -69,6 +71,7 @@ void CategorySelectDialog::setCategories( const TQStringList &categoryList )
CategorySelectDialog::~CategorySelectDialog()
{
+ mPrefs->toNotify = NULL;
}
void CategorySelectDialog::setSelected(const TQStringList &selList)
diff --git a/libtdepim/kpimprefs.cpp b/libtdepim/kpimprefs.cpp
index d58ca447..933bd98d 100644
--- a/libtdepim/kpimprefs.cpp
+++ b/libtdepim/kpimprefs.cpp
@@ -36,7 +36,7 @@
#include "kpimprefs.h"
KPimPrefs::KPimPrefs( const TQString &name )
- : TDEConfigSkeleton( name )
+ : TDEConfigSkeleton( name ), toNotify(NULL)
{
}
diff --git a/libtdepim/kpimprefs.h b/libtdepim/kpimprefs.h
index b67d2491..b3346dad 100644
--- a/libtdepim/kpimprefs.h
+++ b/libtdepim/kpimprefs.h
@@ -78,7 +78,8 @@ class KDE_EXPORT KPimPrefs : public TDEConfigSkeleton
public:
TQStringList mCustomCategories;
-
+ TQObject *toNotify;
+
protected:
virtual void setCategoryDefaults() {}
};