Diffstat (limited to 'korganizer/koeventeditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koeventeditor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/korganizer/koeventeditor.cpp b/korganizer/koeventeditor.cpp index e23e680..02d4a78 100644 --- a/korganizer/koeventeditor.cpp +++ b/korganizer/koeventeditor.cpp | |||
@@ -54,6 +54,8 @@ KOEventEditor::KOEventEditor( Calendar *calendar, QWidget *parent ) : | |||
54 | { | 54 | { |
55 | mEvent = 0; | 55 | mEvent = 0; |
56 | init(); | 56 | init(); |
57 | if ( QApplication::desktop()->height() <= 240 ) | ||
58 | hideButtons(); | ||
57 | } | 59 | } |
58 | 60 | ||
59 | KOEventEditor::~KOEventEditor() | 61 | KOEventEditor::~KOEventEditor() |
@@ -113,7 +115,7 @@ void KOEventEditor::setupGeneral() | |||
113 | mGeneral->enableAlarm( false ); | 115 | mGeneral->enableAlarm( false ); |
114 | 116 | ||
115 | QBoxLayout *buttonLayout; | 117 | QBoxLayout *buttonLayout; |
116 | if ( QApplication::desktop()->width() < 500 ) | 118 | if ( QApplication::desktop()->width() < 500 && QApplication::desktop()->height() > 240 ) |
117 | buttonLayout = new QVBoxLayout( topLayout ); | 119 | buttonLayout = new QVBoxLayout( topLayout ); |
118 | else | 120 | else |
119 | buttonLayout = new QHBoxLayout( topLayout ); | 121 | buttonLayout = new QHBoxLayout( topLayout ); |