author | umopapisdn <umopapisdn> | 2003-05-04 00:08:28 (UTC) |
---|---|---|
committer | umopapisdn <umopapisdn> | 2003-05-04 00:08:28 (UTC) |
commit | 8489a583d5b762c5530076271ee3c3be7011b9ef (patch) (unidiff) | |
tree | 67b1c998368636f8b95e1cae75070f7be9d80409 /core/pim/datebook/datebooksettings.cpp | |
parent | 585f0369fb448bdb49f9c261c488610fa46e61d7 (diff) | |
download | opie-8489a583d5b762c5530076271ee3c3be7011b9ef.zip opie-8489a583d5b762c5530076271ee3c3be7011b9ef.tar.gz opie-8489a583d5b762c5530076271ee3c3be7011b9ef.tar.bz2 |
New feature: It's now possible to configure a default location and default categories for new events. (Options available in configuration dialog.)
Diffstat (limited to 'core/pim/datebook/datebooksettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebooksettings.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/pim/datebook/datebooksettings.cpp b/core/pim/datebook/datebooksettings.cpp index 49fcd17..675b17f 100644 --- a/core/pim/datebook/datebooksettings.cpp +++ b/core/pim/datebook/datebooksettings.cpp | |||
@@ -22,27 +22,28 @@ | |||
22 | 22 | ||
23 | #include <qpe/qpeapplication.h> | 23 | #include <qpe/qpeapplication.h> |
24 | 24 | ||
25 | #include <qspinbox.h> | 25 | #include <qspinbox.h> |
26 | #include <qcheckbox.h> | 26 | #include <qcheckbox.h> |
27 | #include <qcombobox.h> | 27 | #include <qcombobox.h> |
28 | 28 | ||
29 | DateBookSettings::DateBookSettings( bool whichClock, QWidget *parent, | 29 | DateBookSettings::DateBookSettings( bool whichClock, QWidget *parent, |
30 | const char *name, bool modal, WFlags fl ) | 30 | const char *name, bool modal, WFlags fl ) |
31 | : DateBookSettingsBase( parent, name, modal, fl ), | 31 | : DateBookSettingsBase( parent, name, modal, fl ), |
32 | ampm( whichClock ) | 32 | ampm( whichClock ) |
33 | { | 33 | { |
34 | init(); | 34 | init(); |
35 | QObject::connect( qApp, SIGNAL( clockChanged( bool ) ), | 35 | QObject::connect( qApp, SIGNAL( clockChanged( bool ) ), this, SLOT( slotChangeClock( bool ) ) ); |
36 | this, SLOT( slotChangeClock( bool ) ) ); | 36 | QArray<int> categories; |
37 | comboCategory->setCategories( categories, "Calendar", tr("Calendar") ); | ||
37 | } | 38 | } |
38 | 39 | ||
39 | DateBookSettings::~DateBookSettings() | 40 | DateBookSettings::~DateBookSettings() |
40 | { | 41 | { |
41 | } | 42 | } |
42 | 43 | ||
43 | void DateBookSettings::setStartTime( int newStartViewTime ) | 44 | void DateBookSettings::setStartTime( int newStartViewTime ) |
44 | { | 45 | { |
45 | if ( ampm ) { | 46 | if ( ampm ) { |
46 | if ( newStartViewTime >= 12 ) { | 47 | if ( newStartViewTime >= 12 ) { |
47 | newStartViewTime %= 12; | 48 | newStartViewTime %= 12; |
48 | if ( newStartViewTime == 0 ) | 49 | if ( newStartViewTime == 0 ) |