summaryrefslogtreecommitdiffabout
path: root/korganizer/koeventeditor.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/koeventeditor.cpp') (more/less context) (show 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
@@ -54,6 +54,8 @@ KOEventEditor::KOEventEditor( Calendar *calendar, QWidget *parent ) :
{
mEvent = 0;
init();
+ if ( QApplication::desktop()->height() <= 240 )
+ hideButtons();
}
KOEventEditor::~KOEventEditor()
@@ -113,7 +115,7 @@ void KOEventEditor::setupGeneral()
mGeneral->enableAlarm( false );
QBoxLayout *buttonLayout;
- if ( QApplication::desktop()->width() < 500 )
+ if ( QApplication::desktop()->width() < 500 && QApplication::desktop()->height() > 240 )
buttonLayout = new QVBoxLayout( topLayout );
else
buttonLayout = new QHBoxLayout( topLayout );