-rw-r--r-- | core/pim/datebook/datebook.cpp | 14 | ||||
-rw-r--r-- | core/pim/datebook/datebook.h | 2 | ||||
-rw-r--r-- | core/pim/datebook/datebook.pro | 3 | ||||
-rw-r--r-- | core/pim/datebook/datebookday.cpp | 53 | ||||
-rw-r--r-- | core/pim/datebook/datebookday.h | 6 | ||||
-rw-r--r-- | core/pim/datebook/datebooksettings.cpp | 20 | ||||
-rw-r--r-- | core/pim/datebook/datebooksettings.h | 5 | ||||
-rw-r--r-- | core/pim/datebook/datebooksettingsbase.ui | 197 | ||||
-rw-r--r-- | core/pim/datebook/datebookweeklst.cpp | 2 |
9 files changed, 281 insertions, 21 deletions
diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp index c0d45c9..7dd93a6 100644 --- a/core/pim/datebook/datebook.cpp +++ b/core/pim/datebook/datebook.cpp | |||
@@ -80,6 +80,8 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f ) | |||
80 | aPreset( FALSE ), | 80 | aPreset( FALSE ), |
81 | presetTime( -1 ), | 81 | presetTime( -1 ), |
82 | startTime( 8 ), // an acceptable default | 82 | startTime( 8 ), // an acceptable default |
83 | rowStyle( 0 ), | ||
84 | bJumpToCurTime(FALSE), | ||
83 | syncing(FALSE), | 85 | syncing(FALSE), |
84 | inSearch(FALSE), | 86 | inSearch(FALSE), |
85 | alarmCounter(0) | 87 | alarmCounter(0) |
@@ -249,6 +251,8 @@ void DateBook::slotSettings() | |||
249 | DateBookSettings frmSettings( ampm, this ); | 251 | DateBookSettings frmSettings( ampm, this ); |
250 | frmSettings.setStartTime( startTime ); | 252 | frmSettings.setStartTime( startTime ); |
251 | frmSettings.setAlarmPreset( aPreset, presetTime ); | 253 | frmSettings.setAlarmPreset( aPreset, presetTime ); |
254 | frmSettings.setJumpToCurTime( bJumpToCurTime ); | ||
255 | frmSettings.setRowStyle( rowStyle ); | ||
252 | #if defined (Q_WS_QWS) || defined(_WS_QWS_) | 256 | #if defined (Q_WS_QWS) || defined(_WS_QWS_) |
253 | frmSettings.showMaximized(); | 257 | frmSettings.showMaximized(); |
254 | #endif | 258 | #endif |
@@ -257,8 +261,12 @@ void DateBook::slotSettings() | |||
257 | aPreset = frmSettings.alarmPreset(); | 261 | aPreset = frmSettings.alarmPreset(); |
258 | presetTime = frmSettings.presetTime(); | 262 | presetTime = frmSettings.presetTime(); |
259 | startTime = frmSettings.startTime(); | 263 | startTime = frmSettings.startTime(); |
264 | bJumpToCurTime = frmSettings.jumpToCurTime(); | ||
265 | rowStyle = frmSettings.rowStyle(); | ||
260 | if ( dayView ) | 266 | if ( dayView ) |
261 | dayView->setStartViewTime( startTime ); | 267 | dayView->setStartViewTime( startTime ); |
268 | dayView->setJumpToCurTime( bJumpToCurTime ); | ||
269 | dayView->setRowStyle( rowStyle ); | ||
262 | if ( weekView ) | 270 | if ( weekView ) |
263 | weekView->setStartViewTime( startTime ); | 271 | weekView->setStartViewTime( startTime ); |
264 | saveSettings(); | 272 | saveSettings(); |
@@ -453,6 +461,8 @@ void DateBook::initDay() | |||
453 | dayView = new DateBookDay( ampm, onMonday, db, views, "day view" ); | 461 | dayView = new DateBookDay( ampm, onMonday, db, views, "day view" ); |
454 | views->addWidget( dayView, DAY ); | 462 | views->addWidget( dayView, DAY ); |
455 | dayView->setStartViewTime( startTime ); | 463 | dayView->setStartViewTime( startTime ); |
464 | dayView->setJumpToCurTime( bJumpToCurTime ); | ||
465 | dayView->setRowStyle( rowStyle ); | ||
456 | connect( this, SIGNAL( newEvent() ), | 466 | connect( this, SIGNAL( newEvent() ), |
457 | dayView, SLOT( redraw() ) ); | 467 | dayView, SLOT( redraw() ) ); |
458 | connect( dayView, SIGNAL( newEvent() ), | 468 | connect( dayView, SIGNAL( newEvent() ), |
@@ -547,6 +557,8 @@ void DateBook::loadSettings() | |||
547 | startTime = config.readNumEntry("startviewtime", 8); | 557 | startTime = config.readNumEntry("startviewtime", 8); |
548 | aPreset = config.readBoolEntry("alarmpreset"); | 558 | aPreset = config.readBoolEntry("alarmpreset"); |
549 | presetTime = config.readNumEntry("presettime"); | 559 | presetTime = config.readNumEntry("presettime"); |
560 | bJumpToCurTime = config.readBoolEntry("jumptocurtime"); | ||
561 | rowStyle = config.readNumEntry("rowstyle"); | ||
550 | } | 562 | } |
551 | } | 563 | } |
552 | 564 | ||
@@ -558,6 +570,8 @@ void DateBook::saveSettings() | |||
558 | configDB.writeEntry("startviewtime",startTime); | 570 | configDB.writeEntry("startviewtime",startTime); |
559 | configDB.writeEntry("alarmpreset",aPreset); | 571 | configDB.writeEntry("alarmpreset",aPreset); |
560 | configDB.writeEntry("presettime",presetTime); | 572 | configDB.writeEntry("presettime",presetTime); |
573 | configDB.writeEntry("jumptocurtime", bJumpToCurTime); | ||
574 | configDB.writeEntry("rowstyle", rowStyle); | ||
561 | } | 575 | } |
562 | 576 | ||
563 | void DateBook::newDefaultView(QAction *a) { | 577 | void DateBook::newDefaultView(QAction *a) { |
diff --git a/core/pim/datebook/datebook.h b/core/pim/datebook/datebook.h index e7be0dd..ba8f97e 100644 --- a/core/pim/datebook/datebook.h +++ b/core/pim/datebook/datebook.h | |||
@@ -114,6 +114,8 @@ private: | |||
114 | bool aPreset; // have everything set to alarm? | 114 | bool aPreset; // have everything set to alarm? |
115 | int presetTime; // the standard time for the alarm | 115 | int presetTime; // the standard time for the alarm |
116 | int startTime; | 116 | int startTime; |
117 | int rowStyle; | ||
118 | bool bJumpToCurTime; //should jump to current time in dayview? | ||
117 | bool ampm; | 119 | bool ampm; |
118 | bool onMonday; | 120 | bool onMonday; |
119 | 121 | ||
diff --git a/core/pim/datebook/datebook.pro b/core/pim/datebook/datebook.pro index 609b7dc..1db3e3a 100644 --- a/core/pim/datebook/datebook.pro +++ b/core/pim/datebook/datebook.pro | |||
@@ -7,6 +7,7 @@ HEADERS = datebookday.h \ | |||
7 | dateentryimpl.h \ | 7 | dateentryimpl.h \ |
8 | datebookdayheaderimpl.h \ | 8 | datebookdayheaderimpl.h \ |
9 | datebooksettings.h \ | 9 | datebooksettings.h \ |
10 | datebooksettingsbase.h \ | ||
10 | datebookweek.h \ | 11 | datebookweek.h \ |
11 | datebookweeklst.h \ | 12 | datebookweeklst.h \ |
12 | datebookweekheaderimpl.h \ | 13 | datebookweekheaderimpl.h \ |
@@ -20,6 +21,7 @@ SOURCES = main.cpp \ | |||
20 | datebook.cpp \ | 21 | datebook.cpp \ |
21 | dateentryimpl.cpp \ | 22 | dateentryimpl.cpp \ |
22 | datebookdayheaderimpl.cpp \ | 23 | datebookdayheaderimpl.cpp \ |
24 | datebooksettingsbase.cpp \ | ||
23 | datebooksettings.cpp \ | 25 | datebooksettings.cpp \ |
24 | datebookweek.cpp \ | 26 | datebookweek.cpp \ |
25 | datebookweeklst.cpp \ | 27 | datebookweeklst.cpp \ |
@@ -31,7 +33,6 @@ SOURCES = main.cpp \ | |||
31 | 33 | ||
32 | INTERFACES= dateentry.ui \ | 34 | INTERFACES= dateentry.ui \ |
33 | datebookdayheader.ui \ | 35 | datebookdayheader.ui \ |
34 | datebooksettingsbase.ui \ | ||
35 | datebookweekheader.ui \ | 36 | datebookweekheader.ui \ |
36 | datebookweeklstheader.ui \ | 37 | datebookweeklstheader.ui \ |
37 | datebookweeklstdayhdr.ui \ | 38 | datebookweeklstdayhdr.ui \ |
diff --git a/core/pim/datebook/datebookday.cpp b/core/pim/datebook/datebookday.cpp index c15ccef..9cc5fcd 100644 --- a/core/pim/datebook/datebookday.cpp +++ b/core/pim/datebook/datebookday.cpp | |||
@@ -60,7 +60,7 @@ DateBookDayView::DateBookDayView( bool whichClock, QWidget *parent, | |||
60 | for ( row = 0; row < numRows(); row++ ) { | 60 | for ( row = 0; row < numRows(); row++ ) { |
61 | tmp = new QTableItem( this, QTableItem::Never, QString::null); | 61 | tmp = new QTableItem( this, QTableItem::Never, QString::null); |
62 | setItem( row, 0, tmp ); | 62 | setItem( row, 0, tmp ); |
63 | setRowHeight( row, 40); | 63 | //setRowHeight( row, 40); |
64 | } | 64 | } |
65 | initHeader(); | 65 | initHeader(); |
66 | QObject::connect( qApp, SIGNAL(clockChanged(bool)), | 66 | QObject::connect( qApp, SIGNAL(clockChanged(bool)), |
@@ -159,6 +159,13 @@ void DateBookDayView::keyPressEvent( QKeyEvent *e ) | |||
159 | } | 159 | } |
160 | } | 160 | } |
161 | 161 | ||
162 | void DateBookDayView::setRowStyle( int style ) | ||
163 | { | ||
164 | if (style<0) style = 0; | ||
165 | |||
166 | for (int i=0; i<numRows(); i++) | ||
167 | setRowHeight(i, style*10+20); | ||
168 | } | ||
162 | 169 | ||
163 | //=========================================================================== | 170 | //=========================================================================== |
164 | 171 | ||
@@ -174,6 +181,7 @@ DateBookDay::DateBookDay( bool ampm, bool startOnMonday, | |||
174 | header = new DateBookDayHeader( startOnMonday, this, "day header" ); | 181 | header = new DateBookDayHeader( startOnMonday, this, "day header" ); |
175 | header->setDate( currDate.year(), currDate.month(), currDate.day() ); | 182 | header->setDate( currDate.year(), currDate.month(), currDate.day() ); |
176 | view = new DateBookDayView( ampm, this, "day view" ); | 183 | view = new DateBookDayView( ampm, this, "day view" ); |
184 | |||
177 | connect( header, SIGNAL( dateChanged( int, int, int ) ), | 185 | connect( header, SIGNAL( dateChanged( int, int, int ) ), |
178 | this, SLOT( dateChanged( int, int, int ) ) ); | 186 | this, SLOT( dateChanged( int, int, int ) ) ); |
179 | connect( view, SIGNAL( sigColWidthChanged() ), | 187 | connect( view, SIGNAL( sigColWidthChanged() ), |
@@ -193,6 +201,18 @@ DateBookDay::DateBookDay( bool ampm, bool startOnMonday, | |||
193 | 201 | ||
194 | timeMarker = new DateBookDayTimeMarker( this ); | 202 | timeMarker = new DateBookDayTimeMarker( this ); |
195 | timeMarker->setTime( QTime::currentTime() ); | 203 | timeMarker->setTime( QTime::currentTime() ); |
204 | rowStyle = -1; // initialize with bogus values | ||
205 | } | ||
206 | |||
207 | void DateBookDay::setJumpToCurTime( bool bJump ) | ||
208 | { | ||
209 | jumpToCurTime = bJump; | ||
210 | } | ||
211 | |||
212 | void DateBookDay::setRowStyle( int style ) | ||
213 | { | ||
214 | if (rowStyle != style) view->setRowStyle( style ); | ||
215 | rowStyle = style; | ||
196 | } | 216 | } |
197 | 217 | ||
198 | void DateBookDay::updateView( void ) | 218 | void DateBookDay::updateView( void ) |
@@ -257,15 +277,21 @@ void DateBookDay::dateChanged( int y, int m, int d ) | |||
257 | relayoutPage(); | 277 | relayoutPage(); |
258 | dayView()->clearSelection(); | 278 | dayView()->clearSelection(); |
259 | QTableSelection ts; | 279 | QTableSelection ts; |
280 | |||
281 | if (jumpToCurTime && this->date() == QDate::currentDate()) | ||
282 | { | ||
283 | ts.init( QTime::currentTime().hour(), 0); | ||
284 | ts.expandTo( QTime::currentTime().hour(), 0); | ||
285 | } else | ||
286 | { | ||
260 | ts.init( startTime, 0 ); | 287 | ts.init( startTime, 0 ); |
261 | ts.expandTo( startTime, 0 ); | 288 | ts.expandTo( startTime, 0 ); |
289 | } | ||
290 | |||
262 | dayView()->addSelection( ts ); | 291 | dayView()->addSelection( ts ); |
263 | 292 | ||
264 | selectedWidget = 0; | 293 | selectedWidget = 0; |
265 | 294 | ||
266 | if (this->date() == QDate::currentDate()) | ||
267 | timeMarker->show(); else timeMarker->hide(); | ||
268 | |||
269 | } | 295 | } |
270 | 296 | ||
271 | void DateBookDay::redraw() | 297 | void DateBookDay::redraw() |
@@ -399,6 +425,9 @@ void DateBookDay::relayoutPage( bool fromResize ) | |||
399 | w->setGeometry( geom ); | 425 | w->setGeometry( geom ); |
400 | } | 426 | } |
401 | 427 | ||
428 | if (jumpToCurTime && this->date() == QDate::currentDate()) | ||
429 | view->setContentsPos( 0, QTime::currentTime().hour() * view->rowHeight(0) ); //set listview to current hour | ||
430 | else | ||
402 | view->setContentsPos( 0, startTime * view->rowHeight(0) ); | 431 | view->setContentsPos( 0, startTime * view->rowHeight(0) ); |
403 | 432 | ||
404 | 433 | ||
@@ -444,11 +473,18 @@ void DateBookDay::relayoutPage( bool fromResize ) | |||
444 | w->setGeometry( geom ); | 473 | w->setGeometry( geom ); |
445 | } | 474 | } |
446 | } | 475 | } |
476 | |||
477 | if (jumpToCurTime && this->date() == QDate::currentDate()) | ||
478 | view->setContentsPos( 0, QTime::currentTime().hour() * view->rowHeight(0) ); //set listview to current hour | ||
479 | else | ||
447 | view->setContentsPos( 0, startTime * view->rowHeight(0) ); | 480 | view->setContentsPos( 0, startTime * view->rowHeight(0) ); |
448 | } | 481 | } |
449 | 482 | ||
450 | timeMarker->setTime( QTime::currentTime() );//display timeMarker | 483 | timeMarker->setTime( QTime::currentTime() );//display timeMarker |
451 | timeMarker->raise(); //on top of all widgets | 484 | timeMarker->raise(); //on top of all widgets |
485 | if (this->date() == QDate::currentDate()) //only show timeMarker on current day | ||
486 | timeMarker->show(); else timeMarker->hide(); | ||
487 | |||
452 | setUpdatesEnabled( TRUE ); | 488 | setUpdatesEnabled( TRUE ); |
453 | return; | 489 | return; |
454 | } | 490 | } |
@@ -479,8 +515,17 @@ void DateBookDay::setStartViewTime( int startHere ) | |||
479 | startTime = startHere; | 515 | startTime = startHere; |
480 | dayView()->clearSelection(); | 516 | dayView()->clearSelection(); |
481 | QTableSelection ts; | 517 | QTableSelection ts; |
518 | |||
519 | if (jumpToCurTime && this->date() == QDate::currentDate())//this should probably be in datebook.cpp where it's called? | ||
520 | { | ||
521 | ts.init( QTime::currentTime().hour(), 0); | ||
522 | ts.expandTo( QTime::currentTime().hour(), 0); | ||
523 | } else | ||
524 | { | ||
482 | ts.init( startTime, 0 ); | 525 | ts.init( startTime, 0 ); |
483 | ts.expandTo( startTime, 0 ); | 526 | ts.expandTo( startTime, 0 ); |
527 | } | ||
528 | |||
484 | dayView()->addSelection( ts ); | 529 | dayView()->addSelection( ts ); |
485 | } | 530 | } |
486 | 531 | ||
diff --git a/core/pim/datebook/datebookday.h b/core/pim/datebook/datebookday.h index db0f3b6..be7cc45 100644 --- a/core/pim/datebook/datebookday.h +++ b/core/pim/datebook/datebookday.h | |||
@@ -41,6 +41,8 @@ public: | |||
41 | DateBookDayView( bool hourClock, QWidget *parent, const char *name ); | 41 | DateBookDayView( bool hourClock, QWidget *parent, const char *name ); |
42 | bool whichClock() const; | 42 | bool whichClock() const; |
43 | 43 | ||
44 | void setRowStyle( int style ); | ||
45 | |||
44 | public slots: | 46 | public slots: |
45 | void moveUp(); | 47 | void moveUp(); |
46 | void moveDown(); | 48 | void moveDown(); |
@@ -149,6 +151,8 @@ public: | |||
149 | int startViewTime() const; | 151 | int startViewTime() const; |
150 | void setSelectedWidget( DateBookDayWidget * ); | 152 | void setSelectedWidget( DateBookDayWidget * ); |
151 | DateBookDayWidget * getSelectedWidget( void ); | 153 | DateBookDayWidget * getSelectedWidget( void ); |
154 | void setJumpToCurTime( bool bJump ); | ||
155 | void setRowStyle( int style ); | ||
152 | 156 | ||
153 | public slots: | 157 | public slots: |
154 | void setDate( int y, int m, int d ); | 158 | void setDate( int y, int m, int d ); |
@@ -181,6 +185,8 @@ private: | |||
181 | DateBookDB *db; | 185 | DateBookDB *db; |
182 | WidgetListClass widgetList;//reimplemented QList for sorting widgets by height | 186 | WidgetListClass widgetList;//reimplemented QList for sorting widgets by height |
183 | int startTime; | 187 | int startTime; |
188 | bool jumpToCurTime;//should we jump to current time in dayview? | ||
189 | int rowStyle; | ||
184 | DateBookDayWidget *selectedWidget; //actual selected widget (obviously) | 190 | DateBookDayWidget *selectedWidget; //actual selected widget (obviously) |
185 | DateBookDayTimeMarker *timeMarker;//marker for current time | 191 | DateBookDayTimeMarker *timeMarker;//marker for current time |
186 | }; | 192 | }; |
diff --git a/core/pim/datebook/datebooksettings.cpp b/core/pim/datebook/datebooksettings.cpp index c5d8ac1..49fcd17 100644 --- a/core/pim/datebook/datebooksettings.cpp +++ b/core/pim/datebook/datebooksettings.cpp | |||
@@ -133,3 +133,23 @@ void DateBookSettings::slotChangeClock( bool whichClock ) | |||
133 | init(); | 133 | init(); |
134 | setStartTime( saveMe ); | 134 | setStartTime( saveMe ); |
135 | } | 135 | } |
136 | |||
137 | void DateBookSettings::setJumpToCurTime( bool bJump ) | ||
138 | { | ||
139 | chkJumpToCurTime->setChecked( bJump ); | ||
140 | } | ||
141 | |||
142 | bool DateBookSettings::jumpToCurTime() const | ||
143 | { | ||
144 | return chkJumpToCurTime->isChecked(); | ||
145 | } | ||
146 | |||
147 | void DateBookSettings::setRowStyle( int style ) | ||
148 | { | ||
149 | comboRowStyle->setCurrentItem( style ); | ||
150 | } | ||
151 | |||
152 | int DateBookSettings::rowStyle() const | ||
153 | { | ||
154 | return comboRowStyle->currentItem(); | ||
155 | } | ||
diff --git a/core/pim/datebook/datebooksettings.h b/core/pim/datebook/datebooksettings.h index ee9f39c..90a07f9 100644 --- a/core/pim/datebook/datebooksettings.h +++ b/core/pim/datebook/datebooksettings.h | |||
@@ -36,6 +36,11 @@ public: | |||
36 | void setAlarmType( int alarmType ); | 36 | void setAlarmType( int alarmType ); |
37 | int alarmType() const; | 37 | int alarmType() const; |
38 | 38 | ||
39 | void setJumpToCurTime( bool bJump ); | ||
40 | bool jumpToCurTime() const; | ||
41 | void setRowStyle( int style ); | ||
42 | int rowStyle() const; | ||
43 | |||
39 | private slots: | 44 | private slots: |
40 | void slot12Hour( int ); | 45 | void slot12Hour( int ); |
41 | void slotChangeClock( bool ); | 46 | void slotChangeClock( bool ); |
diff --git a/core/pim/datebook/datebooksettingsbase.ui b/core/pim/datebook/datebooksettingsbase.ui index 0f40773..816a441 100644 --- a/core/pim/datebook/datebooksettingsbase.ui +++ b/core/pim/datebook/datebooksettingsbase.ui | |||
@@ -32,7 +32,7 @@ | |||
32 | <rect> | 32 | <rect> |
33 | <x>0</x> | 33 | <x>0</x> |
34 | <y>0</y> | 34 | <y>0</y> |
35 | <width>232</width> | 35 | <width>220</width> |
36 | <height>290</height> | 36 | <height>290</height> |
37 | </rect> | 37 | </rect> |
38 | </property> | 38 | </property> |
@@ -46,16 +46,16 @@ | |||
46 | <property> | 46 | <property> |
47 | <name>layoutSpacing</name> | 47 | <name>layoutSpacing</name> |
48 | </property> | 48 | </property> |
49 | <vbox> | 49 | <grid> |
50 | <property stdset="1"> | 50 | <property stdset="1"> |
51 | <name>margin</name> | 51 | <name>margin</name> |
52 | <number>5</number> | 52 | <number>11</number> |
53 | </property> | 53 | </property> |
54 | <property stdset="1"> | 54 | <property stdset="1"> |
55 | <name>spacing</name> | 55 | <name>spacing</name> |
56 | <number>1</number> | 56 | <number>6</number> |
57 | </property> | 57 | </property> |
58 | <widget> | 58 | <widget row="0" column="0" > |
59 | <class>QGroupBox</class> | 59 | <class>QGroupBox</class> |
60 | <property stdset="1"> | 60 | <property stdset="1"> |
61 | <name>name</name> | 61 | <name>name</name> |
@@ -73,16 +73,52 @@ | |||
73 | <name>title</name> | 73 | <name>title</name> |
74 | <string>Start viewing events</string> | 74 | <string>Start viewing events</string> |
75 | </property> | 75 | </property> |
76 | <vbox> | 76 | <widget> |
77 | <class>QLayoutWidget</class> | ||
78 | <property stdset="1"> | ||
79 | <name>name</name> | ||
80 | <cstring>Layout6</cstring> | ||
81 | </property> | ||
82 | <property stdset="1"> | ||
83 | <name>geometry</name> | ||
84 | <rect> | ||
85 | <x>3</x> | ||
86 | <y>21</y> | ||
87 | <width>210</width> | ||
88 | <height>53</height> | ||
89 | </rect> | ||
90 | </property> | ||
91 | <grid> | ||
77 | <property stdset="1"> | 92 | <property stdset="1"> |
78 | <name>margin</name> | 93 | <name>margin</name> |
79 | <number>11</number> | 94 | <number>0</number> |
80 | </property> | 95 | </property> |
81 | <property stdset="1"> | 96 | <property stdset="1"> |
82 | <name>spacing</name> | 97 | <name>spacing</name> |
83 | <number>6</number> | 98 | <number>6</number> |
84 | </property> | 99 | </property> |
85 | <widget> | 100 | <spacer row="1" column="0" > |
101 | <property> | ||
102 | <name>name</name> | ||
103 | <cstring>Spacer1</cstring> | ||
104 | </property> | ||
105 | <property stdset="1"> | ||
106 | <name>orientation</name> | ||
107 | <enum>Vertical</enum> | ||
108 | </property> | ||
109 | <property stdset="1"> | ||
110 | <name>sizeType</name> | ||
111 | <enum>Expanding</enum> | ||
112 | </property> | ||
113 | <property> | ||
114 | <name>sizeHint</name> | ||
115 | <size> | ||
116 | <width>20</width> | ||
117 | <height>20</height> | ||
118 | </size> | ||
119 | </property> | ||
120 | </spacer> | ||
121 | <widget row="0" column="0" > | ||
86 | <class>QLayoutWidget</class> | 122 | <class>QLayoutWidget</class> |
87 | <property stdset="1"> | 123 | <property stdset="1"> |
88 | <name>name</name> | 124 | <name>name</name> |
@@ -129,9 +165,10 @@ | |||
129 | </widget> | 165 | </widget> |
130 | </hbox> | 166 | </hbox> |
131 | </widget> | 167 | </widget> |
132 | </vbox> | 168 | </grid> |
133 | </widget> | 169 | </widget> |
134 | <widget> | 170 | </widget> |
171 | <widget row="1" column="0" > | ||
135 | <class>QGroupBox</class> | 172 | <class>QGroupBox</class> |
136 | <property stdset="1"> | 173 | <property stdset="1"> |
137 | <name>name</name> | 174 | <name>name</name> |
@@ -141,16 +178,52 @@ | |||
141 | <name>title</name> | 178 | <name>title</name> |
142 | <string>Alarm Settings</string> | 179 | <string>Alarm Settings</string> |
143 | </property> | 180 | </property> |
144 | <vbox> | 181 | <widget> |
182 | <class>QLayoutWidget</class> | ||
183 | <property stdset="1"> | ||
184 | <name>name</name> | ||
185 | <cstring>Layout4</cstring> | ||
186 | </property> | ||
187 | <property stdset="1"> | ||
188 | <name>geometry</name> | ||
189 | <rect> | ||
190 | <x>10</x> | ||
191 | <y>20</y> | ||
192 | <width>200</width> | ||
193 | <height>53</height> | ||
194 | </rect> | ||
195 | </property> | ||
196 | <grid> | ||
145 | <property stdset="1"> | 197 | <property stdset="1"> |
146 | <name>margin</name> | 198 | <name>margin</name> |
147 | <number>11</number> | 199 | <number>0</number> |
148 | </property> | 200 | </property> |
149 | <property stdset="1"> | 201 | <property stdset="1"> |
150 | <name>spacing</name> | 202 | <name>spacing</name> |
151 | <number>6</number> | 203 | <number>6</number> |
152 | </property> | 204 | </property> |
153 | <widget> | 205 | <spacer row="1" column="0" > |
206 | <property> | ||
207 | <name>name</name> | ||
208 | <cstring>Spacer2</cstring> | ||
209 | </property> | ||
210 | <property stdset="1"> | ||
211 | <name>orientation</name> | ||
212 | <enum>Vertical</enum> | ||
213 | </property> | ||
214 | <property stdset="1"> | ||
215 | <name>sizeType</name> | ||
216 | <enum>Expanding</enum> | ||
217 | </property> | ||
218 | <property> | ||
219 | <name>sizeHint</name> | ||
220 | <size> | ||
221 | <width>20</width> | ||
222 | <height>20</height> | ||
223 | </size> | ||
224 | </property> | ||
225 | </spacer> | ||
226 | <widget row="0" column="0" > | ||
154 | <class>QLayoutWidget</class> | 227 | <class>QLayoutWidget</class> |
155 | <property stdset="1"> | 228 | <property stdset="1"> |
156 | <name>name</name> | 229 | <name>name</name> |
@@ -209,9 +282,103 @@ | |||
209 | </widget> | 282 | </widget> |
210 | </hbox> | 283 | </hbox> |
211 | </widget> | 284 | </widget> |
212 | </vbox> | 285 | </grid> |
286 | </widget> | ||
287 | </widget> | ||
288 | <widget row="2" column="0" > | ||
289 | <class>QGroupBox</class> | ||
290 | <property stdset="1"> | ||
291 | <name>name</name> | ||
292 | <cstring>fraMisc</cstring> | ||
293 | </property> | ||
294 | <property stdset="1"> | ||
295 | <name>title</name> | ||
296 | <string>Misc</string> | ||
297 | </property> | ||
298 | <widget> | ||
299 | <class>QLayoutWidget</class> | ||
300 | <property stdset="1"> | ||
301 | <name>name</name> | ||
302 | <cstring>Layout5</cstring> | ||
303 | </property> | ||
304 | <property stdset="1"> | ||
305 | <name>geometry</name> | ||
306 | <rect> | ||
307 | <x>10</x> | ||
308 | <y>40</y> | ||
309 | <width>170</width> | ||
310 | <height>24</height> | ||
311 | </rect> | ||
312 | </property> | ||
313 | <hbox> | ||
314 | <property stdset="1"> | ||
315 | <name>margin</name> | ||
316 | <number>0</number> | ||
317 | </property> | ||
318 | <property stdset="1"> | ||
319 | <name>spacing</name> | ||
320 | <number>6</number> | ||
321 | </property> | ||
322 | <widget> | ||
323 | <class>QLabel</class> | ||
324 | <property stdset="1"> | ||
325 | <name>name</name> | ||
326 | <cstring>TextLabel1</cstring> | ||
327 | </property> | ||
328 | <property stdset="1"> | ||
329 | <name>text</name> | ||
330 | <string>Row style:</string> | ||
331 | </property> | ||
332 | </widget> | ||
333 | <widget> | ||
334 | <class>QComboBox</class> | ||
335 | <item> | ||
336 | <property> | ||
337 | <name>text</name> | ||
338 | <string>Default</string> | ||
339 | </property> | ||
340 | </item> | ||
341 | <item> | ||
342 | <property> | ||
343 | <name>text</name> | ||
344 | <string>Medium</string> | ||
345 | </property> | ||
346 | </item> | ||
347 | <item> | ||
348 | <property> | ||
349 | <name>text</name> | ||
350 | <string>Large</string> | ||
351 | </property> | ||
352 | </item> | ||
353 | <property stdset="1"> | ||
354 | <name>name</name> | ||
355 | <cstring>comboRowStyle</cstring> | ||
356 | </property> | ||
357 | </widget> | ||
358 | </hbox> | ||
359 | </widget> | ||
360 | <widget> | ||
361 | <class>QCheckBox</class> | ||
362 | <property stdset="1"> | ||
363 | <name>name</name> | ||
364 | <cstring>chkJumpToCurTime</cstring> | ||
365 | </property> | ||
366 | <property stdset="1"> | ||
367 | <name>geometry</name> | ||
368 | <rect> | ||
369 | <x>10</x> | ||
370 | <y>20</y> | ||
371 | <width>200</width> | ||
372 | <height>20</height> | ||
373 | </rect> | ||
374 | </property> | ||
375 | <property stdset="1"> | ||
376 | <name>text</name> | ||
377 | <string>Jump to current time (dayview)</string> | ||
378 | </property> | ||
379 | </widget> | ||
213 | </widget> | 380 | </widget> |
214 | </vbox> | 381 | </grid> |
215 | </widget> | 382 | </widget> |
216 | <connections> | 383 | <connections> |
217 | <connection> | 384 | <connection> |
diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp index 8e88377..58a9c53 100644 --- a/core/pim/datebook/datebookweeklst.cpp +++ b/core/pim/datebook/datebookweeklst.cpp | |||
@@ -27,7 +27,7 @@ | |||
27 | bool calcWeek(const QDate &d, int &week, int &year, | 27 | bool calcWeek(const QDate &d, int &week, int &year, |
28 | bool startOnMonday = false); | 28 | bool startOnMonday = false); |
29 | 29 | ||
30 | DateBookWeekLstHeader::DateBookWeekLstHeader(bool onM, QWidget* parent, | 30 | DateBookWeekLstHeader::DateBookWeekLstHeader(bool /*onM*/, QWidget* parent, |
31 | const char* name, WFlags fl) | 31 | const char* name, WFlags fl) |
32 | : DateBookWeekLstHeaderBase(parent, name, fl) | 32 | : DateBookWeekLstHeaderBase(parent, name, fl) |
33 | { | 33 | { |