summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-04-03 17:45:37 (UTC)
committer harlekin <harlekin>2003-04-03 17:45:37 (UTC)
commit934e4d81bc078c704a39f02663607a6c16a5b29f (patch) (unidiff)
tree8897e81843a41418b8a7e42c22f10207b163cad1
parentf62005c53c93148eaa13eac50ea6814a41afb216 (diff)
downloadopie-934e4d81bc078c704a39f02663607a6c16a5b29f.zip
opie-934e4d81bc078c704a39f02663607a6c16a5b29f.tar.gz
opie-934e4d81bc078c704a39f02663607a6c16a5b29f.tar.bz2
set max days ahead to 21, closes #815
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
index dc6dee9..0477122 100644
--- a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
+++ b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp
@@ -45,49 +45,49 @@ DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name)
45 45
46 QHBox *box3 = new QHBox( this ); 46 QHBox *box3 = new QHBox( this );
47 QLabel* TextLabel6 = new QLabel( box3, "All Day"); 47 QLabel* TextLabel6 = new QLabel( box3, "All Day");
48 TextLabel6->setText( tr( "Show only later\n appointments") ); 48 TextLabel6->setText( tr( "Show only later\n appointments") );
49 CheckBox3 = new QCheckBox ( box3, "CheckBox3" ); 49 CheckBox3 = new QCheckBox ( box3, "CheckBox3" );
50 QWhatsThis::add( CheckBox3 , tr( "Check this if only appointments later then current time should be shown" ) ); 50 QWhatsThis::add( CheckBox3 , tr( "Check this if only appointments later then current time should be shown" ) );
51 51
52 52
53 53
54 QHBox *box4 = new QHBox( this ); 54 QHBox *box4 = new QHBox( this );
55 QLabel *TextLabel3 = new QLabel( box4, "TextLabel3" ); 55 QLabel *TextLabel3 = new QLabel( box4, "TextLabel3" );
56 TextLabel3->setText( tr( "How many \nappointment\n" 56 TextLabel3->setText( tr( "How many \nappointment\n"
57 "should be \nshown?" ) ); 57 "should be \nshown?" ) );
58 SpinBox1 = new QSpinBox( box4, "SpinBox1" ); 58 SpinBox1 = new QSpinBox( box4, "SpinBox1" );
59 QWhatsThis::add( SpinBox1 , tr( "How many appointments should be shown maximal. In chronical order" ) ); 59 QWhatsThis::add( SpinBox1 , tr( "How many appointments should be shown maximal. In chronical order" ) );
60 SpinBox1->setMaxValue( 10 ); 60 SpinBox1->setMaxValue( 10 );
61 SpinBox1->setValue( 5 ); 61 SpinBox1->setValue( 5 );
62 62
63 63
64 QHBox *box5 = new QHBox( this ); 64 QHBox *box5 = new QHBox( this );
65 QLabel *TextLabelDays = new QLabel( box5 ); 65 QLabel *TextLabelDays = new QLabel( box5 );
66 TextLabelDays->setText( tr( "How many more days" ) ); 66 TextLabelDays->setText( tr( "How many more days" ) );
67 SpinBox2 = new QSpinBox( box5, "SpinBox2" ); 67 SpinBox2 = new QSpinBox( box5, "SpinBox2" );
68 QWhatsThis::add( SpinBox2 , tr( "How many more days should be in the range" ) ); 68 QWhatsThis::add( SpinBox2 , tr( "How many more days should be in the range" ) );
69 SpinBox2->setMaxValue( 7 ); 69 SpinBox2->setMaxValue( 21 );
70 SpinBox2->setSuffix( tr( " day(s)" ) ); 70 SpinBox2->setSuffix( tr( " day(s)" ) );
71 SpinBox2->setSpecialValueText ( tr("only today") ); 71 SpinBox2->setSpecialValueText ( tr("only today") );
72 72
73 layout->addWidget( box1 ); 73 layout->addWidget( box1 );
74 layout->addWidget( box2 ); 74 layout->addWidget( box2 );
75 layout->addWidget( box3 ); 75 layout->addWidget( box3 );
76 layout->addWidget( box4 ); 76 layout->addWidget( box4 );
77 layout->addWidget( box5 ); 77 layout->addWidget( box5 );
78 78
79 readConfig(); 79 readConfig();
80} 80}
81 81
82void DatebookPluginConfig::readConfig() { 82void DatebookPluginConfig::readConfig() {
83 Config cfg( "todaydatebookplugin" ); 83 Config cfg( "todaydatebookplugin" );
84 cfg.setGroup( "config" ); 84 cfg.setGroup( "config" );
85 85
86 m_max_lines_meet = cfg.readNumEntry( "maxlinesmeet", 5 ); 86 m_max_lines_meet = cfg.readNumEntry( "maxlinesmeet", 5 );
87 SpinBox1->setValue( m_max_lines_meet ); 87 SpinBox1->setValue( m_max_lines_meet );
88 m_show_location = cfg.readNumEntry( "showlocation", 1 ); 88 m_show_location = cfg.readNumEntry( "showlocation", 1 );
89 CheckBox1->setChecked( m_show_location ); 89 CheckBox1->setChecked( m_show_location );
90 m_show_notes = cfg.readNumEntry( "shownotes", 0 ); 90 m_show_notes = cfg.readNumEntry( "shownotes", 0 );
91 CheckBox2->setChecked( m_show_notes ); 91 CheckBox2->setChecked( m_show_notes );
92 m_only_later = cfg.readNumEntry( "onlylater", 1 ); 92 m_only_later = cfg.readNumEntry( "onlylater", 1 );
93 CheckBox3->setChecked( m_only_later ); 93 CheckBox3->setChecked( m_only_later );