summaryrefslogtreecommitdiff
authordrw <drw>2005-06-06 19:09:03 (UTC)
committer drw <drw>2005-06-06 19:09:03 (UTC)
commit9ccde964284da2c2dcc42da5e04f818e45baa148 (patch) (side-by-side diff)
treeaafeed7ef6bcceaf1271a7f3b748b3fd9634c0f6
parent85a043b065f0b43470bc15dc6594eb520f379505 (diff)
downloadopie-9ccde964284da2c2dcc42da5e04f818e45baa148.zip
opie-9ccde964284da2c2dcc42da5e04f818e45baa148.tar.gz
opie-9ccde964284da2c2dcc42da5e04f818e45baa148.tar.bz2
Fix to show/not show birthdays and use checkboxes for selection in plugin config dialog (courtesy of hrw)
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginconfig.cpp4
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginconfig.h6
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginwidget.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
index 7b6117e..4f1630d 100644
--- a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
+++ b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
@@ -35,11 +35,11 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char*
// Buttongroup to enable/disable shown stuff
QVGroupBox* b_group = new QVGroupBox( this, "name" );
b_group -> setTitle( tr("Enable/Disable Views") );
- m_showBirthdayButton = new QRadioButton( b_group );
+ m_showBirthdayButton = new QCheckBox( b_group );
m_showBirthdayButton -> setText( tr( "Show &Birthdays" ) );
- m_showAnniversaryButton = new QRadioButton( b_group );
+ m_showAnniversaryButton = new QCheckBox( b_group );
m_showAnniversaryButton -> setText( tr( "Show &Anniveraries" ) );
QWhatsThis::add( m_showBirthdayButton , tr( "The next birthdays will just be shown, if enabled!" ) );
QWhatsThis::add( m_showAnniversaryButton , tr( "The next anniversaries will just be shown, if enabled !" ) );
diff --git a/core/pim/today/plugins/addressbook/addresspluginconfig.h b/core/pim/today/plugins/addressbook/addresspluginconfig.h
index e065ca2..1284fdc 100644
--- a/core/pim/today/plugins/addressbook/addresspluginconfig.h
+++ b/core/pim/today/plugins/addressbook/addresspluginconfig.h
@@ -23,9 +23,9 @@
#include <opie2/ocolorbutton.h>
#include <qwidget.h>
#include <qspinbox.h>
-#include <qradiobutton.h>
+#include <qcheckbox.h>
class AddressBookPluginConfig : public TodayConfigWidget {
Q_OBJECT
@@ -48,10 +48,10 @@ private:
QSpinBox* SpinUrgentClip;
Opie::OColorButton* entryColor;
Opie::OColorButton* headlineColor;
Opie::OColorButton* urgentColor;
- QRadioButton* m_showBirthdayButton;
- QRadioButton* m_showAnniversaryButton;
+ QCheckBox* m_showBirthdayButton;
+ QCheckBox* m_showAnniversaryButton;
// how many lines should be showed in the AddressBook section
int m_max_lines_task;
// clip the lines after X chars
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
index df7c5e1..5662af2 100644
--- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
+++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
@@ -101,9 +101,8 @@ void AddressBookPluginWidget::getAddress() {
int ammount = 0;
if ( m_showBirthdays ){
owarn << "Searching from now (" << QDate::currentDate().toString() << ") until "
<< lookAheadDate.toString() << " ! " << oendl;
- }
if ( m_contactdb->hasQuerySettings( Opie::OPimContactAccess::DateDiff ) ){
@@ -153,8 +152,9 @@ void AddressBookPluginWidget::getAddress() {
.arg( m_daysLookAhead )
+ "</font> <br>";
}
}
+ }
if ( m_showAnniversaries ){
// Define the query for anniversaries and start search..
Opie::OPimContact queryanniversaries;