summaryrefslogtreecommitdiffabout
path: root/korganizer/koeventeditor.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/koeventeditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeventeditor.cpp4
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
@@ -56,2 +56,4 @@ KOEventEditor::KOEventEditor( Calendar *calendar, QWidget *parent ) :
init();
+ if ( QApplication::desktop()->height() <= 240 )
+ hideButtons();
}
@@ -115,3 +117,3 @@ void KOEventEditor::setupGeneral()
QBoxLayout *buttonLayout;
- if ( QApplication::desktop()->width() < 500 )
+ if ( QApplication::desktop()->width() < 500 && QApplication::desktop()->height() > 240 )
buttonLayout = new QVBoxLayout( topLayout );