summaryrefslogtreecommitdiffabout
path: root/korganizer/journalentry.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/journalentry.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/journalentry.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/korganizer/journalentry.cpp b/korganizer/journalentry.cpp
index ca8d5f7..3c38f34 100644
--- a/korganizer/journalentry.cpp
+++ b/korganizer/journalentry.cpp
@@ -57,7 +57,13 @@
JournalEntry::JournalEntry(Calendar *calendar,QWidget *parent) :
QFrame(parent)
{
- heiHint = QApplication::desktop()->height() / 5 ;
+
+ int fac = 5;
+ heiHint = QApplication::desktop()->height();
+ if ( heiHint > 800 )
+ fac += 2;
+ heiHint = heiHint / fac;
+
showOnlyMode = false;
mCalendar = calendar;
mJournal = 0;