-rw-r--r-- | bin/kdepim/WhatsNew.txt | 2 | ||||
-rw-r--r-- | korganizer/komonthview.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 9f34d38..4f8fcc7 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,104 +1,106 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 2.0.2 ************ | 3 | ********** VERSION 2.0.2 ************ |
4 | 4 | ||
5 | KO/Pi: | 5 | KO/Pi: |
6 | Fixed the layout problem of the day label buttons | 6 | Fixed the layout problem of the day label buttons |
7 | of the agenda view introduced in version 2.0.1. | 7 | of the agenda view introduced in version 2.0.1. |
8 | 8 | ||
9 | Added WhatsThis support for the todo view and the list view. | ||
10 | |||
9 | Added a quite useful and quite hidden feature (to KO/Pi). | 11 | Added a quite useful and quite hidden feature (to KO/Pi). |
10 | Who does find it first? | 12 | Who does find it first? |
11 | Hint: You have to click somewhere in the views ... | 13 | Hint: You have to click somewhere in the views ... |
12 | 14 | ||
13 | 15 | ||
14 | ********** VERSION 2.0.1 ************ | 16 | ********** VERSION 2.0.1 ************ |
15 | 17 | ||
16 | Oooops ... I forgot to test on the Zaurus 5500 ... | 18 | Oooops ... I forgot to test on the Zaurus 5500 ... |
17 | 19 | ||
18 | Fixed many problems of new (english) strings (and german translations) | 20 | Fixed many problems of new (english) strings (and german translations) |
19 | introduced in the latest versions, where the text was not fitting on the | 21 | introduced in the latest versions, where the text was not fitting on the |
20 | 240x320 display of the Zaurus 5500. | 22 | 240x320 display of the Zaurus 5500. |
21 | 23 | ||
22 | KO/Pi: | 24 | KO/Pi: |
23 | Added a popup menu ( press pen and hold to get popup ) to the agenda view | 25 | Added a popup menu ( press pen and hold to get popup ) to the agenda view |
24 | with many useful items (add event/todo, show next week, two weeks, month, journal). | 26 | with many useful items (add event/todo, show next week, two weeks, month, journal). |
25 | 27 | ||
26 | Added items to the todolist popup menu for: | 28 | Added items to the todolist popup menu for: |
27 | Display all opened, all closed or all todos flat. | 29 | Display all opened, all closed or all todos flat. |
28 | The "flat" view makes is possible to sort all todos after ,e.g., prio or date. | 30 | The "flat" view makes is possible to sort all todos after ,e.g., prio or date. |
29 | Made the reparenting of todos on the desktop possible via Drag&Drop. | 31 | Made the reparenting of todos on the desktop possible via Drag&Drop. |
30 | Fixed several bugs in setting the completed datetime for todos. | 32 | Fixed several bugs in setting the completed datetime for todos. |
31 | Added info about completed datetime of todos to the todo viewer. | 33 | Added info about completed datetime of todos to the todo viewer. |
32 | Now displaying a completed todo (with completed datetime set) in the agenda view | 34 | Now displaying a completed todo (with completed datetime set) in the agenda view |
33 | at the time of the completion. Such that now it is possible to see in the agenda view | 35 | at the time of the completion. Such that now it is possible to see in the agenda view |
34 | when what todo was completed. | 36 | when what todo was completed. |
35 | Fixed behaviour of automatic setting completion of todos with sub-todos/parent todos. | 37 | Fixed behaviour of automatic setting completion of todos with sub-todos/parent todos. |
36 | Now the behaviour is: | 38 | Now the behaviour is: |
37 | Setting a parent to complete sets all (sub)childs to complete. | 39 | Setting a parent to complete sets all (sub)childs to complete. |
38 | Setting a parent to uncomplete does not change the childs. | 40 | Setting a parent to uncomplete does not change the childs. |
39 | Setting a child to uncomplete sets all parent to uncomplete. | 41 | Setting a child to uncomplete sets all parent to uncomplete. |
40 | Setting a child to complete does not change the parents. | 42 | Setting a child to complete does not change the parents. |
41 | 43 | ||
42 | Smart updating and double buffering of the daymatrix. | 44 | Smart updating and double buffering of the daymatrix. |
43 | Showing holidays in the day matrix. | 45 | Showing holidays in the day matrix. |
44 | Many other small performance updates. | 46 | Many other small performance updates. |
45 | 47 | ||
46 | Made day labels in agenda clickable. By clicking a label, the day is displayed in single day mode. | 48 | Made day labels in agenda clickable. By clicking a label, the day is displayed in single day mode. |
47 | 49 | ||
48 | Now the translation file usertranslation.txt is supposed to be in utf8 format. | 50 | Now the translation file usertranslation.txt is supposed to be in utf8 format. |
49 | If you want to translate a language from western europe, just change the germantranslation.txt file. Please read the updated Usertranslation HowTo in KO/Pi Help menu. | 51 | If you want to translate a language from western europe, just change the germantranslation.txt file. Please read the updated Usertranslation HowTo in KO/Pi Help menu. |
50 | 52 | ||
51 | 53 | ||
52 | ********** VERSION 2.0.0 ************ | 54 | ********** VERSION 2.0.0 ************ |
53 | 55 | ||
54 | Stable release 2.0.0! | 56 | Stable release 2.0.0! |
55 | 57 | ||
56 | KO/Pi: | 58 | KO/Pi: |
57 | Fixed problem in edit dialog recreation at startup. | 59 | Fixed problem in edit dialog recreation at startup. |
58 | Made "toggle view*" menu items enabled context sensitive. | 60 | Made "toggle view*" menu items enabled context sensitive. |
59 | Changed agenda size menu to items 1-10. | 61 | Changed agenda size menu to items 1-10. |
60 | Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. | 62 | Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. |
61 | Usebility enhancements in the KO/Pi menus. | 63 | Usebility enhancements in the KO/Pi menus. |
62 | Birthday import now adds year to summary. | 64 | Birthday import now adds year to summary. |
63 | What's Next view shows age in years for birthday. | 65 | What's Next view shows age in years for birthday. |
64 | 66 | ||
65 | OM/Pi: | 67 | OM/Pi: |
66 | Added three info lines to display subject, from and to of selected mails. | 68 | Added three info lines to display subject, from and to of selected mails. |
67 | 69 | ||
68 | KA/Pi: | 70 | KA/Pi: |
69 | Fixed jump bar behaviour on Zaurus. | 71 | Fixed jump bar behaviour on Zaurus. |
70 | Now KA/Pi search field supports searching for a range of starting characters. | 72 | Now KA/Pi search field supports searching for a range of starting characters. |
71 | E.g. to search for all contact beginning with b to n, type | 73 | E.g. to search for all contact beginning with b to n, type |
72 | b-n | 74 | b-n |
73 | in the search field. | 75 | in the search field. |
74 | 76 | ||
75 | ********** VERSION 1.9.20 ************ | 77 | ********** VERSION 1.9.20 ************ |
76 | 78 | ||
77 | KO/Pi: | 79 | KO/Pi: |
78 | Added for the "dislplay one day" agenda mode | 80 | Added for the "dislplay one day" agenda mode |
79 | info in the caption and in the day lables: | 81 | info in the caption and in the day lables: |
80 | Now it is displayed, if the selected day is from "day before yesterday" | 82 | Now it is displayed, if the selected day is from "day before yesterday" |
81 | to "day after tomorrow". | 83 | to "day after tomorrow". |
82 | Made it possible to delete a Todo, which has sub-todos. | 84 | Made it possible to delete a Todo, which has sub-todos. |
83 | Fixed two small problems in the todo view. | 85 | Fixed two small problems in the todo view. |
84 | Added missing German translation for filter edit and print dialog. | 86 | Added missing German translation for filter edit and print dialog. |
85 | Made search dialog closeable by cancel key. | 87 | Made search dialog closeable by cancel key. |
86 | 88 | ||
87 | Made it possible to select in the date picker the (ligt grey ) | 89 | Made it possible to select in the date picker the (ligt grey ) |
88 | dates of the prev./next month with the mouse. | 90 | dates of the prev./next month with the mouse. |
89 | 91 | ||
90 | OM/Pi: | 92 | OM/Pi: |
91 | "Delete mail" icon in main window now deletes all selected mails. | 93 | "Delete mail" icon in main window now deletes all selected mails. |
92 | Fixed the problem, that the state flag of imap mails was ignored. | 94 | Fixed the problem, that the state flag of imap mails was ignored. |
93 | Now mails with "FLAG_SEEN" on the imap server get no icon in the list view | 95 | Now mails with "FLAG_SEEN" on the imap server get no icon in the list view |
94 | to indecate that they are already seen. | 96 | to indecate that they are already seen. |
95 | Fixed the problem that the body of some mails was not displayed in the | 97 | Fixed the problem that the body of some mails was not displayed in the |
96 | mail viewer when fetching them from the imap server directly to read them. | 98 | mail viewer when fetching them from the imap server directly to read them. |
97 | Made it (configurable) possible to show the "To:" field in the list view. | 99 | Made it (configurable) possible to show the "To:" field in the list view. |
98 | Added to the mail viewer the option "View Source" to make it possible to see the raw mail data. | 100 | Added to the mail viewer the option "View Source" to make it possible to see the raw mail data. |
99 | Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the | 101 | Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the |
100 | local storage folder (specified in account settings) of the account of the mail. | 102 | local storage folder (specified in account settings) of the account of the mail. |
101 | Removed some memory leaks in OM/Pi. | 103 | Removed some memory leaks in OM/Pi. |
102 | 104 | ||
103 | 105 | ||
104 | ********** VERSION 1.9.19 ************ | 106 | ********** VERSION 1.9.19 ************ |
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 0ef5ae4..00b1e92 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp | |||
@@ -714,192 +714,193 @@ void MonthViewCell::showDay() | |||
714 | emit showDaySignal( date() ); | 714 | emit showDaySignal( date() ); |
715 | } | 715 | } |
716 | void MonthViewCell::newEvent() | 716 | void MonthViewCell::newEvent() |
717 | { | 717 | { |
718 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); | 718 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); |
719 | emit newEventSignal( dt ); | 719 | emit newEventSignal( dt ); |
720 | } | 720 | } |
721 | void MonthViewCell::cellClicked( QListBoxItem *item ) | 721 | void MonthViewCell::cellClicked( QListBoxItem *item ) |
722 | { | 722 | { |
723 | static QListBoxItem * lastClicked = 0; | 723 | static QListBoxItem * lastClicked = 0; |
724 | if ( item == 0 ) { | 724 | if ( item == 0 ) { |
725 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); | 725 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); |
726 | emit newEventSignal( dt ); | 726 | emit newEventSignal( dt ); |
727 | return; | 727 | return; |
728 | } | 728 | } |
729 | /* | 729 | /* |
730 | if ( lastClicked ) | 730 | if ( lastClicked ) |
731 | if ( ! item ) { | 731 | if ( ! item ) { |
732 | if ( lastClicked->listBox() != item->listBox() ) | 732 | if ( lastClicked->listBox() != item->listBox() ) |
733 | lastClicked->listBox()->clearSelection(); | 733 | lastClicked->listBox()->clearSelection(); |
734 | } | 734 | } |
735 | */ | 735 | */ |
736 | 736 | ||
737 | mMonthView->setSelectedCell( this ); | 737 | mMonthView->setSelectedCell( this ); |
738 | if( KOPrefs::instance()->mEnableMonthScroll || KOPrefs::instance()->mMonthViewWeek ) enableScrollBars( true ); | 738 | if( KOPrefs::instance()->mEnableMonthScroll || KOPrefs::instance()->mMonthViewWeek ) enableScrollBars( true ); |
739 | select(); | 739 | select(); |
740 | } | 740 | } |
741 | 741 | ||
742 | void MonthViewCell::contextMenu( QListBoxItem *item ) | 742 | void MonthViewCell::contextMenu( QListBoxItem *item ) |
743 | { | 743 | { |
744 | if ( !item ) return; | 744 | if ( !item ) return; |
745 | 745 | ||
746 | MonthViewItem *eventItem = static_cast<MonthViewItem *>( item ); | 746 | MonthViewItem *eventItem = static_cast<MonthViewItem *>( item ); |
747 | Incidence *incidence = eventItem->incidence(); | 747 | Incidence *incidence = eventItem->incidence(); |
748 | if ( incidence ) mMonthView->showContextMenu( incidence ); | 748 | if ( incidence ) mMonthView->showContextMenu( incidence ); |
749 | } | 749 | } |
750 | 750 | ||
751 | void MonthViewCell::selection( QListBoxItem *item ) | 751 | void MonthViewCell::selection( QListBoxItem *item ) |
752 | { | 752 | { |
753 | if ( !item ) return; | 753 | if ( !item ) return; |
754 | 754 | ||
755 | mMonthView->setSelectedCell( this ); | 755 | mMonthView->setSelectedCell( this ); |
756 | } | 756 | } |
757 | 757 | ||
758 | 758 | ||
759 | // ******************************************************************************* | 759 | // ******************************************************************************* |
760 | // ******************************************************************************* | 760 | // ******************************************************************************* |
761 | // ******************************************************************************* | 761 | // ******************************************************************************* |
762 | 762 | ||
763 | 763 | ||
764 | KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) | 764 | KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) |
765 | : KOEventView( calendar, parent, name ), | 765 | : KOEventView( calendar, parent, name ), |
766 | mDaysPerWeek( 7 ), mNumWeeks( 6 ), mNumCells( mDaysPerWeek * mNumWeeks ), | 766 | mDaysPerWeek( 7 ), mNumWeeks( 6 ), mNumCells( mDaysPerWeek * mNumWeeks ), |
767 | mShortDayLabels( false ), mWidthLongDayLabel( 0 ), mSelectedCell( 0 ) | 767 | mShortDayLabels( false ), mWidthLongDayLabel( 0 ), mSelectedCell( 0 ) |
768 | { | 768 | { |
769 | mWeekStartsMonday = KGlobal::locale()->weekStartsMonday(); | 769 | mWeekStartsMonday = KGlobal::locale()->weekStartsMonday(); |
770 | mShowWeekView = KOPrefs::instance()->mMonthViewWeek; | 770 | mShowWeekView = KOPrefs::instance()->mMonthViewWeek; |
771 | if ( mShowWeekView ) | 771 | if ( mShowWeekView ) |
772 | mWeekStartsMonday = true; | 772 | mWeekStartsMonday = true; |
773 | updatePossible = false; | 773 | updatePossible = false; |
774 | mCells.setAutoDelete( true ); | 774 | mCells.setAutoDelete( true ); |
775 | mShowSatSunComp = KOPrefs::instance()->mMonthViewSatSunTog ; | 775 | mShowSatSunComp = KOPrefs::instance()->mMonthViewSatSunTog ; |
776 | // mDayLayout = new QGridLayout( this ); | 776 | // mDayLayout = new QGridLayout( this ); |
777 | // create the day of the week labels (Sun, Mon, etc) and add them to | 777 | // create the day of the week labels (Sun, Mon, etc) and add them to |
778 | // the layout. | 778 | // the layout. |
779 | mDayLabels.resize( mDaysPerWeek ); | 779 | mDayLabels.resize( mDaysPerWeek ); |
780 | QFont bfont = font(); | 780 | QFont bfont = font(); |
781 | if ( QApplication::desktop()->width() < 650 ) { | 781 | if ( QApplication::desktop()->width() < 650 ) { |
782 | bfont.setPointSize( bfont.pointSize() - 2 ); | 782 | bfont.setPointSize( bfont.pointSize() - 2 ); |
783 | } | 783 | } |
784 | bfont.setBold( true ); | 784 | bfont.setBold( true ); |
785 | int i; | 785 | int i; |
786 | 786 | ||
787 | for( i = 0; i < mDaysPerWeek; i++ ) { | 787 | for( i = 0; i < mDaysPerWeek; i++ ) { |
788 | QLabel *label = new QLabel( this ); | 788 | QLabel *label = new QLabel( this ); |
789 | label->setFont(bfont); | 789 | label->setFont(bfont); |
790 | label->setFrameStyle(QFrame::Panel|QFrame::Raised); | 790 | label->setFrameStyle(QFrame::Panel|QFrame::Raised); |
791 | label->setLineWidth(1); | 791 | label->setLineWidth(1); |
792 | label->setAlignment(AlignCenter); | 792 | label->setAlignment(AlignCenter); |
793 | mDayLabels.insert( i, label ); | 793 | mDayLabels.insert( i, label ); |
794 | } | 794 | } |
795 | 795 | ||
796 | bfont.setBold( false ); | 796 | bfont.setBold( false ); |
797 | mWeekLabels.resize( mNumWeeks+1 ); | 797 | mWeekLabels.resize( mNumWeeks+1 ); |
798 | for( i = 0; i < mNumWeeks+1; i++ ) { | 798 | for( i = 0; i < mNumWeeks+1; i++ ) { |
799 | KOWeekButton *label = new KOWeekButton( this ); | 799 | KOWeekButton *label = new KOWeekButton( this ); |
800 | label->setFont(bfont); | 800 | label->setFont(bfont); |
801 | connect( label, SIGNAL( selectWeekNum ( int )),this, SIGNAL( selectWeekNum ( int )) ); | 801 | connect( label, SIGNAL( selectWeekNum ( int )),this, SIGNAL( selectWeekNum ( int )) ); |
802 | label->setFlat(true); | 802 | label->setFlat(true); |
803 | QWhatsThis::add(label,i18n("Click on the week number to\nshow week in agenda view")); | 803 | QWhatsThis::add(label,i18n("Click on the week number to\nshow week in agenda view")); |
804 | //label->setFrameStyle(QFrame::Panel|QFrame::Raised); | 804 | //label->setFrameStyle(QFrame::Panel|QFrame::Raised); |
805 | //label->setLineWidth(1); | 805 | //label->setLineWidth(1); |
806 | //label->setAlignment(AlignCenter); | 806 | //label->setAlignment(AlignCenter); |
807 | mWeekLabels.insert( i, label ); | 807 | mWeekLabels.insert( i, label ); |
808 | } | 808 | } |
809 | mWeekLabels[mNumWeeks]->setText( i18n("W")); | 809 | mWeekLabels[mNumWeeks]->setText( i18n("W")); |
810 | QWhatsThis::add(mWeekLabels[mNumWeeks],i18n("Click on this to\nswitch to week mode view")); | ||
810 | int row, col; | 811 | int row, col; |
811 | mCells.resize( mNumCells ); | 812 | mCells.resize( mNumCells ); |
812 | for( row = 0; row < mNumWeeks; ++row ) { | 813 | for( row = 0; row < mNumWeeks; ++row ) { |
813 | for( col = 0; col < mDaysPerWeek; ++col ) { | 814 | for( col = 0; col < mDaysPerWeek; ++col ) { |
814 | MonthViewCell *cell = new MonthViewCell( this ); | 815 | MonthViewCell *cell = new MonthViewCell( this ); |
815 | mCells.insert( row * mDaysPerWeek + col, cell ); | 816 | mCells.insert( row * mDaysPerWeek + col, cell ); |
816 | 817 | ||
817 | connect( cell, SIGNAL( defaultAction( Incidence * ) ), | 818 | connect( cell, SIGNAL( defaultAction( Incidence * ) ), |
818 | SLOT( defaultAction( Incidence * ) ) ); | 819 | SLOT( defaultAction( Incidence * ) ) ); |
819 | connect( cell, SIGNAL( newEventSignal( QDateTime ) ), | 820 | connect( cell, SIGNAL( newEventSignal( QDateTime ) ), |
820 | SIGNAL( newEventSignal( QDateTime ) ) ); | 821 | SIGNAL( newEventSignal( QDateTime ) ) ); |
821 | connect( cell, SIGNAL( showDaySignal( QDate ) ), | 822 | connect( cell, SIGNAL( showDaySignal( QDate ) ), |
822 | SIGNAL( showDaySignal( QDate ) ) ); | 823 | SIGNAL( showDaySignal( QDate ) ) ); |
823 | } | 824 | } |
824 | } | 825 | } |
825 | 826 | ||
826 | connect( mWeekLabels[mNumWeeks], SIGNAL( clicked() ), | 827 | connect( mWeekLabels[mNumWeeks], SIGNAL( clicked() ), |
827 | SLOT( switchView() ) ); | 828 | SLOT( switchView() ) ); |
828 | mContextMenu = eventPopup(); | 829 | mContextMenu = eventPopup(); |
829 | // updateConfig(); //useless here | 830 | // updateConfig(); //useless here |
830 | 831 | ||
831 | emit incidenceSelected( 0 ); | 832 | emit incidenceSelected( 0 ); |
832 | } | 833 | } |
833 | 834 | ||
834 | KOMonthView::~KOMonthView() | 835 | KOMonthView::~KOMonthView() |
835 | { | 836 | { |
836 | delete mContextMenu; | 837 | delete mContextMenu; |
837 | } | 838 | } |
838 | void KOMonthView::switchView() | 839 | void KOMonthView::switchView() |
839 | { | 840 | { |
840 | if ( selectedCell( ) ) | 841 | if ( selectedCell( ) ) |
841 | selectedCell()->deselect(); | 842 | selectedCell()->deselect(); |
842 | mShowWeekView = !mShowWeekView; | 843 | mShowWeekView = !mShowWeekView; |
843 | KOPrefs::instance()->mMonthViewWeek = mShowWeekView; | 844 | KOPrefs::instance()->mMonthViewWeek = mShowWeekView; |
844 | emit showNavigator( !mShowWeekView ); | 845 | emit showNavigator( !mShowWeekView ); |
845 | computeLayout(); | 846 | computeLayout(); |
846 | updateConfig(); | 847 | updateConfig(); |
847 | } | 848 | } |
848 | 849 | ||
849 | int KOMonthView::maxDatesHint() | 850 | int KOMonthView::maxDatesHint() |
850 | { | 851 | { |
851 | return mNumCells; | 852 | return mNumCells; |
852 | } | 853 | } |
853 | 854 | ||
854 | int KOMonthView::currentDateCount() | 855 | int KOMonthView::currentDateCount() |
855 | { | 856 | { |
856 | return mNumCells; | 857 | return mNumCells; |
857 | } | 858 | } |
858 | 859 | ||
859 | QPtrList<Incidence> KOMonthView::selectedIncidences() | 860 | QPtrList<Incidence> KOMonthView::selectedIncidences() |
860 | { | 861 | { |
861 | QPtrList<Incidence> selected; | 862 | QPtrList<Incidence> selected; |
862 | 863 | ||
863 | if ( mSelectedCell ) { | 864 | if ( mSelectedCell ) { |
864 | Incidence *incidence = mSelectedCell->selectedIncidence(); | 865 | Incidence *incidence = mSelectedCell->selectedIncidence(); |
865 | if ( incidence ) selected.append( incidence ); | 866 | if ( incidence ) selected.append( incidence ); |
866 | } | 867 | } |
867 | 868 | ||
868 | return selected; | 869 | return selected; |
869 | } | 870 | } |
870 | 871 | ||
871 | DateList KOMonthView::selectedDates() | 872 | DateList KOMonthView::selectedDates() |
872 | { | 873 | { |
873 | DateList selected; | 874 | DateList selected; |
874 | 875 | ||
875 | if ( mSelectedCell ) { | 876 | if ( mSelectedCell ) { |
876 | QDate qd = mSelectedCell->selectedIncidenceDate(); | 877 | QDate qd = mSelectedCell->selectedIncidenceDate(); |
877 | if ( qd.isValid() ) selected.append( qd ); | 878 | if ( qd.isValid() ) selected.append( qd ); |
878 | } | 879 | } |
879 | 880 | ||
880 | return selected; | 881 | return selected; |
881 | } | 882 | } |
882 | 883 | ||
883 | void KOMonthView::printPreview(CalPrinter *calPrinter, const QDate &fd, | 884 | void KOMonthView::printPreview(CalPrinter *calPrinter, const QDate &fd, |
884 | const QDate &td) | 885 | const QDate &td) |
885 | { | 886 | { |
886 | #ifndef KORG_NOPRINTER | 887 | #ifndef KORG_NOPRINTER |
887 | calPrinter->preview(CalPrinter::Month, fd, td); | 888 | calPrinter->preview(CalPrinter::Month, fd, td); |
888 | #endif | 889 | #endif |
889 | } | 890 | } |
890 | 891 | ||
891 | void KOMonthView::updateConfig() | 892 | void KOMonthView::updateConfig() |
892 | { | 893 | { |
893 | 894 | ||
894 | mWeekStartsMonday = KGlobal::locale()->weekStartsMonday(); | 895 | mWeekStartsMonday = KGlobal::locale()->weekStartsMonday(); |
895 | 896 | ||
896 | if ( mShowWeekView ) | 897 | if ( mShowWeekView ) |
897 | mWeekStartsMonday = true; | 898 | mWeekStartsMonday = true; |
898 | QFontMetrics fontmetric(mDayLabels[0]->font()); | 899 | QFontMetrics fontmetric(mDayLabels[0]->font()); |
899 | mWidthLongDayLabel = 0; | 900 | mWidthLongDayLabel = 0; |
900 | 901 | ||
901 | for (int i = 0; i < 7; i++) { | 902 | for (int i = 0; i < 7; i++) { |
902 | int width = fontmetric.width(KOGlobals::self()->calendarSystem()->weekDayName(i+1)); | 903 | int width = fontmetric.width(KOGlobals::self()->calendarSystem()->weekDayName(i+1)); |
903 | if ( width > mWidthLongDayLabel ) mWidthLongDayLabel = width; | 904 | if ( width > mWidthLongDayLabel ) mWidthLongDayLabel = width; |
904 | } | 905 | } |
905 | bool temp = mShowSatSunComp ; | 906 | bool temp = mShowSatSunComp ; |