author | eilers <eilers> | 2003-08-08 14:45:49 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-08-08 14:45:49 (UTC) |
commit | 14d394e6c107b037a09a31a92605034fe50f7813 (patch) (unidiff) | |
tree | 800699cf4dc9681c3eb023340634dd6a15fd04c8 /library/datebookmonth.cpp | |
parent | dbc6ea35f5535a1f69deb7ebbafc0f721721dbf2 (diff) | |
download | opie-14d394e6c107b037a09a31a92605034fe50f7813.zip opie-14d394e6c107b037a09a31a92605034fe50f7813.tar.gz opie-14d394e6c107b037a09a31a92605034fe50f7813.tar.bz2 |
Merged branches from BRANCH_1_0
-rw-r--r-- | library/datebookmonth.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/datebookmonth.cpp b/library/datebookmonth.cpp index e8be313..728045f 100644 --- a/library/datebookmonth.cpp +++ b/library/datebookmonth.cpp | |||
@@ -147,48 +147,53 @@ void DateBookMonthHeader::setDate( int y, int m ) | |||
147 | } | 147 | } |
148 | 148 | ||
149 | //--------------------------------------------------------------------------- | 149 | //--------------------------------------------------------------------------- |
150 | 150 | ||
151 | class DateBookMonthTablePrivate | 151 | class DateBookMonthTablePrivate |
152 | { | 152 | { |
153 | public: | 153 | public: |
154 | DateBookMonthTablePrivate() {}; | 154 | DateBookMonthTablePrivate() {}; |
155 | ~DateBookMonthTablePrivate() { mMonthEvents.clear(); }; | 155 | ~DateBookMonthTablePrivate() { mMonthEvents.clear(); }; |
156 | 156 | ||
157 | QValueList<EffectiveEvent> mMonthEvents; | 157 | QValueList<EffectiveEvent> mMonthEvents; |
158 | bool onMonday; | 158 | bool onMonday; |
159 | }; | 159 | }; |
160 | 160 | ||
161 | DateBookMonthTable::DateBookMonthTable( QWidget *parent, const char *name, | 161 | DateBookMonthTable::DateBookMonthTable( QWidget *parent, const char *name, |
162 | DateBookDB *newDb ) | 162 | DateBookDB *newDb ) |
163 | : QTable( 6, 7, parent, name ), | 163 | : QTable( 6, 7, parent, name ), |
164 | db( newDb ) | 164 | db( newDb ) |
165 | { | 165 | { |
166 | d = new DateBookMonthTablePrivate(); | 166 | d = new DateBookMonthTablePrivate(); |
167 | selYear = -1; | 167 | selYear = -1; |
168 | selMonth = -1; | 168 | selMonth = -1; |
169 | selDay = -1; | 169 | selDay = -1; |
170 | 170 | ||
171 | /* init these as well make valgrind happy and be consistent with Qtopia1.6 -zecke */ | ||
172 | year = -1; | ||
173 | month = -1; | ||
174 | day = -1; | ||
175 | |||
171 | Config cfg( "qpe" ); | 176 | Config cfg( "qpe" ); |
172 | cfg.setGroup( "Time" ); | 177 | cfg.setGroup( "Time" ); |
173 | d->onMonday = cfg.readBoolEntry( "MONDAY" ); | 178 | d->onMonday = cfg.readBoolEntry( "MONDAY" ); |
174 | 179 | ||
175 | horizontalHeader()->setResizeEnabled( FALSE ); | 180 | horizontalHeader()->setResizeEnabled( FALSE ); |
176 | // we have to do this here... or suffer the consequences later... | 181 | // we have to do this here... or suffer the consequences later... |
177 | for ( int i = 0; i < 7; i++ ){ | 182 | for ( int i = 0; i < 7; i++ ){ |
178 | horizontalHeader()->resizeSection( i, 30 ); | 183 | horizontalHeader()->resizeSection( i, 30 ); |
179 | setColumnStretchable( i, TRUE ); | 184 | setColumnStretchable( i, TRUE ); |
180 | } | 185 | } |
181 | setupLabels(); | 186 | setupLabels(); |
182 | 187 | ||
183 | verticalHeader()->hide(); | 188 | verticalHeader()->hide(); |
184 | setLeftMargin( 0 ); | 189 | setLeftMargin( 0 ); |
185 | for ( int i = 0; i < 6; ++i ) | 190 | for ( int i = 0; i < 6; ++i ) |
186 | setRowStretchable( i, TRUE ); | 191 | setRowStretchable( i, TRUE ); |
187 | 192 | ||
188 | setSelectionMode( NoSelection ); | 193 | setSelectionMode( NoSelection ); |
189 | 194 | ||
190 | connect( this, SIGNAL( clicked( int, int, int, const QPoint & ) ), | 195 | connect( this, SIGNAL( clicked( int, int, int, const QPoint & ) ), |
191 | this, SLOT( dayClicked( int, int ) ) ); | 196 | this, SLOT( dayClicked( int, int ) ) ); |
192 | connect( this, SIGNAL( currentChanged( int, int ) ), | 197 | connect( this, SIGNAL( currentChanged( int, int ) ), |
193 | this, SLOT( dragDay( int, int ) ) ); | 198 | this, SLOT( dragDay( int, int ) ) ); |
194 | setVScrollBarMode( AlwaysOff ); | 199 | setVScrollBarMode( AlwaysOff ); |