author | zautrix <zautrix> | 2005-07-29 14:41:38 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-29 14:41:38 (UTC) |
commit | 84ddce3290c2e44cf351888ce10e1d25e2268fc0 (patch) (side-by-side diff) | |
tree | 09cb007463d7fa49b86a89d7c7710abd1176db3b | |
parent | 50b0d4463cf13ae27e45e54b48b2911a3ceb5f9f (diff) | |
download | kdepimpi-84ddce3290c2e44cf351888ce10e1d25e2268fc0.zip kdepimpi-84ddce3290c2e44cf351888ce10e1d25e2268fc0.tar.gz kdepimpi-84ddce3290c2e44cf351888ce10e1d25e2268fc0.tar.bz2 |
fix
-rw-r--r-- | korganizer/koeditorgeneral.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/korganizer/koeditorgeneral.cpp b/korganizer/koeditorgeneral.cpp index e601eef..92e5a0f 100644 --- a/korganizer/koeditorgeneral.cpp +++ b/korganizer/koeditorgeneral.cpp @@ -105,50 +105,51 @@ void KOEditorGeneral::initHeader(QWidget *parent,QBoxLayout *topLayout) else headerLayout->addWidget(locationLabel,1,0); mLocationEdit = new KOLocationBox(TRUE,parent,30); mLocationEdit->setSizePolicy( QSizePolicy( QSizePolicy::Preferred ,QSizePolicy::MinimumExpanding ,FALSE) ); if ( QApplication::desktop()->width() > 320 && QApplication::desktop()->height() > 240 ) mLocationEdit->setMaximumHeight( hei + 6); // mLocationEdit = new QLineEdit(parent); connect ( mLocationEdit->lineEdit(), SIGNAL ( returnPressed() ), this, SIGNAL (allAccepted () ) ); mCalendarBox = new QComboBox ( parent ); mCalendarBox->setSizePolicy( QSizePolicy( QSizePolicy::Preferred ,QSizePolicy::MinimumExpanding ,FALSE) ); if ( QApplication::desktop()->height() < 320 ) { headerLayout->addWidget(mLocationEdit,0,3); headerLayout->addWidget(mCalendarBox,0,4); headerLayout->setColStretch( 1, 10); headerLayout->setColStretch( 3, 10); mCalendarBox->setMaximumWidth( 64 ); } else { headerLayout->addWidget(mLocationEdit,1,1); headerLayout->addWidget(mCalendarBox,1,2); int str = 3; - if ( QApplication::desktop()->width() < 320 ) { + if ( QApplication::desktop()->width() < 640 ) { --str; + if ( QApplication::desktop()->width() < 320 ) --str; } headerLayout->setColStretch( 1, str); headerLayout->setColStretch( 2, 1); } } void KOEditorGeneral::setFocusOn( int i ) { mNextFocus = i; QTimer::singleShot( 0, this, SLOT ( slotSetFocusOn() )); } void KOEditorGeneral::slotSetFocusOn() { mNextFocus; if ( mNextFocus == 1 ) { mDescriptionEdit->setFocus(); mDescriptionEdit->setCursorPosition( mDescriptionEdit->numLines (), 333); } if ( mNextFocus == 2 ) { mSummaryEdit->setFocus(); } } void KOEditorGeneral::editCategories() |