-rw-r--r-- | korganizer/koagendaitem.cpp | 4 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp index 7b29ce7..d0a7b07 100644 --- a/korganizer/koagendaitem.cpp +++ b/korganizer/koagendaitem.cpp | |||
@@ -402,19 +402,19 @@ void KOAgendaItem::paintMe( bool selected, QPainter* paint ) | |||
402 | if ( colsum < 250 ) | 402 | if ( colsum < 250 ) |
403 | paint->setPen ( white); | 403 | paint->setPen ( white); |
404 | if ( x < 0 ) { | 404 | if ( x < 0 ) { |
405 | w = w+x-3; | 405 | w = w+x-3; |
406 | x = 3; | 406 | x = 3; |
407 | if ( w > parentWidget()->width() ){ | 407 | if ( w > parentWidget()->width() ){ |
408 | w = parentWidget()->width() - 6; | 408 | w = parentWidget()->width() - 6; |
409 | #ifndef DESKTOP_VERSION | 409 | #ifndef DESKTOP_VERSION |
410 | align = ( AlignCenter|WordBreak); | 410 | align = ( AlignHCenter|WordBreak|AlignTop); |
411 | #else | 411 | #else |
412 | align = ( AlignCenter|BreakAnywhere|WordBreak); | 412 | align = ( AlignHCenter|BreakAnywhere|WordBreak|AlignTop); |
413 | #endif | 413 | #endif |
414 | 414 | ||
415 | } | 415 | } |
416 | } | 416 | } |
417 | QRect dr; | 417 | QRect dr; |
418 | if ( w + x > parentWidget()->width() ) | 418 | if ( w + x > parentWidget()->width() ) |
419 | w = parentWidget()->width()-x; | 419 | w = parentWidget()->width()-x; |
420 | paint->drawText ( x, yy, w, h, align, mDisplayedText, -1, &dr ); | 420 | paint->drawText ( x, yy, w, h, align, mDisplayedText, -1, &dr ); |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 16031b8..a164fa4 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -282,16 +282,17 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : | |||
282 | #ifndef DESKTOP_VERSION | 282 | #ifndef DESKTOP_VERSION |
283 | infrared = 0; | 283 | infrared = 0; |
284 | #endif | 284 | #endif |
285 | updateWeek( mView->startDate() ); | 285 | updateWeek( mView->startDate() ); |
286 | connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), | 286 | connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), |
287 | SLOT( updateWeekNum( const KCal::DateList & ) ) ); | 287 | SLOT( updateWeekNum( const KCal::DateList & ) ) ); |
288 | mBRdisabled = false; | 288 | mBRdisabled = false; |
289 | //toggleBeamReceive(); | 289 | //toggleBeamReceive(); |
290 | setFocusPolicy ( WheelFocus ); | ||
290 | } | 291 | } |
291 | MainWindow::~MainWindow() | 292 | MainWindow::~MainWindow() |
292 | { | 293 | { |
293 | //qDebug("MainWindow::~MainWindow() "); | 294 | //qDebug("MainWindow::~MainWindow() "); |
294 | //save toolbar location | 295 | //save toolbar location |
295 | delete mCalendar; | 296 | delete mCalendar; |
296 | delete mSyncManager; | 297 | delete mSyncManager; |
297 | #ifndef DESKTOP_VERSION | 298 | #ifndef DESKTOP_VERSION |
@@ -1273,16 +1274,17 @@ void MainWindow::keyBindings() | |||
1273 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ | 1274 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ |
1274 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ | 1275 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ |
1275 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ | 1276 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ |
1276 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ | 1277 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ |
1277 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ | 1278 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ |
1278 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ | 1279 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ |
1279 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ | 1280 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ |
1280 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ | 1281 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ |
1282 | i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ | ||
1281 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ | 1283 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ |
1282 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ | 1284 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ |
1283 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ | 1285 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ |
1284 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ | 1286 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ |
1285 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ | 1287 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ |
1286 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ | 1288 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ |
1287 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ | 1289 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ |
1288 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ | 1290 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ |
@@ -1621,16 +1623,19 @@ void MainWindow::keyPressEvent ( QKeyEvent * e ) | |||
1621 | showSelectedDates = true; | 1623 | showSelectedDates = true; |
1622 | break; | 1624 | break; |
1623 | case Qt::Key_Down: | 1625 | case Qt::Key_Down: |
1624 | mView->viewManager()->agendaView()->scrollOneHourDown(); | 1626 | mView->viewManager()->agendaView()->scrollOneHourDown(); |
1625 | break; | 1627 | break; |
1626 | case Qt::Key_Up: | 1628 | case Qt::Key_Up: |
1627 | mView->viewManager()->agendaView()->scrollOneHourUp(); | 1629 | mView->viewManager()->agendaView()->scrollOneHourUp(); |
1628 | break; | 1630 | break; |
1631 | case Qt::Key_K: | ||
1632 | mView->viewManager()->showMonthViewWeek(); | ||
1633 | break; | ||
1629 | case Qt::Key_I: | 1634 | case Qt::Key_I: |
1630 | mView->showIncidence(); | 1635 | mView->showIncidence(); |
1631 | break; | 1636 | break; |
1632 | case Qt::Key_Delete: | 1637 | case Qt::Key_Delete: |
1633 | case Qt::Key_Backspace: | 1638 | case Qt::Key_Backspace: |
1634 | mView->deleteIncidence(); | 1639 | mView->deleteIncidence(); |
1635 | break; | 1640 | break; |
1636 | case Qt::Key_D: | 1641 | case Qt::Key_D: |