summaryrefslogtreecommitdiffabout
path: root/korganizer
Unidiff
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeditorgeneral.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/korganizer/koeditorgeneral.cpp b/korganizer/koeditorgeneral.cpp
index e601eef..92e5a0f 100644
--- a/korganizer/koeditorgeneral.cpp
+++ b/korganizer/koeditorgeneral.cpp
@@ -121,19 +121,20 @@ void KOEditorGeneral::initHeader(QWidget *parent,QBoxLayout *topLayout)
121 headerLayout->setColStretch( 1, 10); 121 headerLayout->setColStretch( 1, 10);
122 headerLayout->setColStretch( 3, 10); 122 headerLayout->setColStretch( 3, 10);
123 mCalendarBox->setMaximumWidth( 64 ); 123 mCalendarBox->setMaximumWidth( 64 );
124 } 124 }
125 else { 125 else {
126 headerLayout->addWidget(mLocationEdit,1,1); 126 headerLayout->addWidget(mLocationEdit,1,1);
127 headerLayout->addWidget(mCalendarBox,1,2); 127 headerLayout->addWidget(mCalendarBox,1,2);
128 int str = 3; 128 int str = 3;
129 if ( QApplication::desktop()->width() < 320 ) { 129 if ( QApplication::desktop()->width() < 640 ) {
130 --str;
131 --str; 130 --str;
131 if ( QApplication::desktop()->width() < 320 )
132 --str;
132 } 133 }
133 headerLayout->setColStretch( 1, str); 134 headerLayout->setColStretch( 1, str);
134 headerLayout->setColStretch( 2, 1); 135 headerLayout->setColStretch( 2, 1);
135 } 136 }
136 137
137} 138}
138void KOEditorGeneral::setFocusOn( int i ) 139void KOEditorGeneral::setFocusOn( int i )
139{ 140{