From 7c31102a00920834ab8e3778f0f459b96b2fb309 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 30 Apr 2005 07:32:03 +0000 Subject: fixes --- (limited to 'korganizer/koeventeditor.cpp') 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 ); -- cgit v0.9.0.2