-rw-r--r-- | korganizer/komonthview.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index b819eec..437debe 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp | |||
@@ -60,8 +60,9 @@ | |||
60 | class KNOWhatsThis :public QWhatsThis | 60 | class KNOWhatsThis :public QWhatsThis |
61 | { | 61 | { |
62 | public: | 62 | public: |
63 | KNOWhatsThis( KNoScrollListBox* sbox ) : QWhatsThis( sbox ), _wid( sbox) { }; | 63 | KNOWhatsThis( KNoScrollListBox* sbox ) : QWhatsThis( sbox ), _wid( sbox) { }; |
64 | //~KNOWhatsThis( ) {qDebug("~KNOWhatsThis( ) "); }; | ||
64 | 65 | ||
65 | protected: | 66 | protected: |
66 | virtual QString text( const QPoint& p) | 67 | virtual QString text( const QPoint& p) |
67 | { | 68 | { |
@@ -82,9 +83,9 @@ KNoScrollListBox::KNoScrollListBox(QWidget *parent,const char *name) | |||
82 | mWT = new KNOWhatsThis(this); | 83 | mWT = new KNOWhatsThis(this); |
83 | } | 84 | } |
84 | KNoScrollListBox::~KNoScrollListBox() | 85 | KNoScrollListBox::~KNoScrollListBox() |
85 | { | 86 | { |
86 | delete mWT; | 87 | |
87 | } | 88 | } |
88 | QString KNoScrollListBox::getWhatsThisText(QPoint p) | 89 | QString KNoScrollListBox::getWhatsThisText(QPoint p) |
89 | { | 90 | { |
90 | QListBoxItem* item = itemAt ( p ); | 91 | QListBoxItem* item = itemAt ( p ); |
@@ -658,11 +659,13 @@ void MonthViewCell::select() | |||
658 | void MonthViewCell::resizeEvent ( QResizeEvent * ) | 659 | void MonthViewCell::resizeEvent ( QResizeEvent * ) |
659 | { | 660 | { |
660 | if ( !mMonthView->isUpdatePossible() ) | 661 | if ( !mMonthView->isUpdatePossible() ) |
661 | return; | 662 | return; |
663 | #ifndef DESKTOP_VERSION | ||
662 | if ( !isVisible() ){ | 664 | if ( !isVisible() ){ |
663 | return; | 665 | return; |
664 | } | 666 | } |
667 | #endif | ||
665 | int size = height() - mLabel->height(); | 668 | int size = height() - mLabel->height(); |
666 | if ( size > 0 ) | 669 | if ( size > 0 ) |
667 | mItemList->verticalScrollBar()->setMaximumHeight( size ); | 670 | mItemList->verticalScrollBar()->setMaximumHeight( size ); |
668 | size = width() - mLabel->width(); | 671 | size = width() - mLabel->width(); |
@@ -736,8 +739,9 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) | |||
736 | : KOEventView( calendar, parent, name ), | 739 | : KOEventView( calendar, parent, name ), |
737 | mDaysPerWeek( 7 ), mNumWeeks( 6 ), mNumCells( mDaysPerWeek * mNumWeeks ), | 740 | mDaysPerWeek( 7 ), mNumWeeks( 6 ), mNumCells( mDaysPerWeek * mNumWeeks ), |
738 | mShortDayLabels( false ), mWidthLongDayLabel( 0 ), mSelectedCell( 0 ) | 741 | mShortDayLabels( false ), mWidthLongDayLabel( 0 ), mSelectedCell( 0 ) |
739 | { | 742 | { |
743 | |||
740 | updatePossible = false; | 744 | updatePossible = false; |
741 | mCells.setAutoDelete( true ); | 745 | mCells.setAutoDelete( true ); |
742 | mShowSatSunComp = KOPrefs::instance()->mMonthViewSatSunTog ; | 746 | mShowSatSunComp = KOPrefs::instance()->mMonthViewSatSunTog ; |
743 | // mDayLayout = new QGridLayout( this ); | 747 | // mDayLayout = new QGridLayout( this ); |