author | zautrix <zautrix> | 2005-04-01 20:32:33 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-01 20:32:33 (UTC) |
commit | 12fc62df25e15f6b20d8026ceb09118ca3ed7205 (patch) (side-by-side diff) | |
tree | 8686600dc4ed5e5f6e9c79e007b818bfb4546750 | |
parent | b1e3bf53b1c4cc46ef0a2ded04338bc38a640161 (diff) | |
download | kdepimpi-12fc62df25e15f6b20d8026ceb09118ca3ed7205.zip kdepimpi-12fc62df25e15f6b20d8026ceb09118ca3ed7205.tar.gz kdepimpi-12fc62df25e15f6b20d8026ceb09118ca3ed7205.tar.bz2 |
filterfix
-rw-r--r-- | bin/kdepim/korganizer/icons16/filter.png | bin | 0 -> 820 bytes | |||
-rw-r--r-- | korganizer/koagendaview.cpp | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/bin/kdepim/korganizer/icons16/filter.png b/bin/kdepim/korganizer/icons16/filter.png Binary files differnew file mode 100644 index 0000000..83890a8 --- a/dev/null +++ b/bin/kdepim/korganizer/icons16/filter.png diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 667ff2a..1627dba 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -645,49 +645,49 @@ void KOAgendaView::slotDaylabelClicked( int num ) KOAgendaButton* KOAgendaView::getNewDaylabel() { KOAgendaButton * dayLabel = new KOAgendaButton(mDayLabels); connect( dayLabel, SIGNAL( numClicked(int) ), this, SLOT ( slotDaylabelClicked(int) ) ); mDayLabelsList.append( dayLabel ); mLayoutDayLabels->addWidget(dayLabel); return dayLabel ; } void KOAgendaView::createDayLabels() { if ( mBlockUpdating || globalFlagBlockLabel == 1) { // qDebug(" KOAgendaView::createDayLabels() blocked "); return; } int newHight; // ### Before deleting and recreating we could check if mSelectedDates changed... // It would remove some flickering and gain speed (since this is called by // each updateView() call) - int maxWid = mUpcomingWidth - mTimeLabels->width()- mAgenda->verticalScrollBar()->width() - 2; + int maxWid = mUpcomingWidth - mTimeLabels->width()- mAgenda->verticalScrollBar()->width() - mAgenda->frameWidth()*2; mDayLabelsFrame->setMaximumWidth( mUpcomingWidth ); if ( maxWid < 0 ) maxWid = 20; QFont dlf = KOPrefs::instance()->mTimeLabelsFont; QFontMetrics fm ( dlf ); int selCount = mSelectedDates.count(); QString dayTest = "Mon 20"; //QString dayTest = "Mon 20"; int wid = fm.width( dayTest ); //maxWid -= ( selCount * 3 ); //working for QLabels maxWid -= ( selCount * 3 ); //working for QPushButton if ( maxWid < 0 ) maxWid = 20; int needWid = wid * selCount; //qDebug("++++++++Needed : %d MaxWidth: %d", needWid, maxWid ); //if ( needWid > maxWid ) // qDebug("DAYLABELS TOOOOOOO BIG "); while ( needWid > maxWid ) { dayTest = dayTest.left( dayTest.length() - 1 ); wid = fm.width( dayTest ); needWid = wid * selCount; } int maxLen = dayTest.length(); |