author | zautrix <zautrix> | 2005-03-15 11:10:36 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-15 11:10:36 (UTC) |
commit | 6b748e1b7b4213871a5866a9af50e99800d2a704 (patch) (side-by-side diff) | |
tree | 16a34a9efab71fed5aea3b6c70a7a1ca3b974d49 | |
parent | f695ed8bf462bab5df0f6b41d3d3e6ed5b803484 (diff) | |
download | kdepimpi-6b748e1b7b4213871a5866a9af50e99800d2a704.zip kdepimpi-6b748e1b7b4213871a5866a9af50e99800d2a704.tar.gz kdepimpi-6b748e1b7b4213871a5866a9af50e99800d2a704.tar.bz2 |
daylabel width fix for one day
-rw-r--r-- | korganizer/koagendaview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index db66413..8448a4c 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -707,49 +707,49 @@ void KOAgendaView::createDayLabels() dayLabel = getNewDaylabel(); } dayLabel->setFixedWidth( mTimeLabels->width()+2 ); dayLabel->setFont( dlf ); dayLabel->setNum( -1 ); //dayLabel->setAlignment(QLabel::AlignHCenter); dayLabel->setText( KOGlobals::self()->calendarSystem()->monthName( mSelectedDates.first(), true ) ); dayLabel->show(); DateList::ConstIterator dit; bool oneday = (mSelectedDates.first() == mSelectedDates.last() ); int counter = -1; for( dit = mSelectedDates.begin(); dit != mSelectedDates.end(); ++dit ) { ++counter; QDate date = *dit; // QBoxLayout *dayLayout = new QVBoxLayout(mLayoutDayLabels); if ( ! appendLabels ) { dayLabel = mDayLabelsList.next(); if ( !dayLabel ) appendLabels = true; } if ( appendLabels ) { dayLabel = getNewDaylabel(); } dayLabel->setMinimumWidth( 1 ); - dayLabel->setMaximumWidth( 1024 ); + dayLabel->setMaximumWidth( 10240 ); dayLabel->setFont( dlf ); dayLabel->show(); dayLabel->setNum( counter ); QString str; int dW = KOGlobals::self()->calendarSystem()->dayOfWeek(date); QString dayName = KOGlobals::self()->calendarSystem()->weekDayName( dW, true ); switch ( maxLen ) { case 2: str = QString::number( date.day() ); break; case 3: str = dayName.left( 1 ) +QString::number( date.day()); break; case 4: str = dayName.left( 1 ) + " " +QString::number( date.day()); break; case 5: str = dayName.left( 2 ) + " " +QString::number( date.day()); break; case 6: |