author | zautrix <zautrix> | 2005-06-25 02:23:09 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-25 02:23:09 (UTC) |
commit | 1d0b53abc70e66708d93b7081a21a7689b1a1303 (patch) (side-by-side diff) | |
tree | 2a79eab02c3560af43af16162e2004adf507fb0f /korganizer | |
parent | ab93fa0a7cd97beada9475f6099bf6083547f0d6 (diff) | |
download | kdepimpi-1d0b53abc70e66708d93b7081a21a7689b1a1303.zip kdepimpi-1d0b53abc70e66708d93b7081a21a7689b1a1303.tar.gz kdepimpi-1d0b53abc70e66708d93b7081a21a7689b1a1303.tar.bz2 |
fixx
-rw-r--r-- | korganizer/koagendaview.cpp | 6 | ||||
-rw-r--r-- | korganizer/koprefsdialog.cpp | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 93ff55e..c851ab5 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -669,8 +669,9 @@ void KOAgendaView::createDayLabels() maxWid = 20; QFont dlf = KOPrefs::instance()->mTimeLabelsFont; QFontMetrics fm ( dlf ); + dlf.setBold( true ); int selCount = mSelectedDates.count(); int widModulo = maxWid - (mAgenda->gridSpacingX() * selCount)+1; QString dayTest = "Mon 20"; //QString dayTest = "Mon 20"; @@ -678,9 +679,9 @@ void KOAgendaView::createDayLabels() //maxWid -= ( selCount * 3 ); //working for QLabels if ( QApplication::desktop()->width() <= 320 ) maxWid -= ( selCount * 3 ); //working for QPushButton else - maxWid -= ( selCount * 3 ); //working for QPushButton + maxWid -= ( selCount * 4 ); //working for QPushButton if ( maxWid < 0 ) maxWid = 20; int needWid = wid * selCount; //qDebug("++++++++Needed : %d MaxWidth: %d", needWid, maxWid ); @@ -706,9 +707,10 @@ void KOAgendaView::createDayLabels() } maxLen = 2; } //qDebug("Max len %d ", dayTest.length() ); - + if ( !KOPrefs::instance()->mTimeLabelsFont.bold() ) + dlf.setBold( false ); QFontMetrics tempF( dlf ); newHight = tempF.height(); mDayLabels->setFont( dlf ); // mLayoutDayLabels = new QHBoxLayout(mDayLabels);; diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 35a56ca..7ba1392 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp @@ -273,9 +273,9 @@ void KOPrefsDialog::setupMainTab() topLayout->addMultiCellWidget( widbool->checkBox(), 3,3,0,1); KPrefsDialogWidBool *verticalScreen = - addWidBool(i18n("Show vertical screen (Needs restart)"), + addWidBool(i18n("Vertical screen layout(Needs restart)"), &(KOPrefs::instance()->mVerticalScreen),topFrame); //topLayout->addWidget(verticalScreen->checkBox(),ii++,0); topLayout->addMultiCellWidget(verticalScreen->checkBox(),4,4,0,1); |