author | zautrix <zautrix> | 2005-06-29 11:08:57 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-29 11:08:57 (UTC) |
commit | 435e68d6ace30fb2121b718226e00be44971c617 (patch) (unidiff) | |
tree | 2b7d2793f0244db82a9cddbfab8957d13989ed20 /korganizer/journalentry.cpp | |
parent | b7044dfc9516d546683973985555c481d59fc677 (diff) | |
download | kdepimpi-435e68d6ace30fb2121b718226e00be44971c617.zip kdepimpi-435e68d6ace30fb2121b718226e00be44971c617.tar.gz kdepimpi-435e68d6ace30fb2121b718226e00be44971c617.tar.bz2 |
fixx
-rw-r--r-- | korganizer/journalentry.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/korganizer/journalentry.cpp b/korganizer/journalentry.cpp index 7274849..0b923ad 100644 --- a/korganizer/journalentry.cpp +++ b/korganizer/journalentry.cpp | |||
@@ -53,12 +53,13 @@ | |||
53 | #ifndef DESKTOP_VERSION | 53 | #ifndef DESKTOP_VERSION |
54 | #include <qpe/qpeapplication.h> | 54 | #include <qpe/qpeapplication.h> |
55 | #endif | 55 | #endif |
56 | JournalEntry::JournalEntry(Calendar *calendar,QWidget *parent) : | 56 | JournalEntry::JournalEntry(Calendar *calendar,QWidget *parent) : |
57 | QFrame(parent) | 57 | QFrame(parent) |
58 | { | 58 | { |
59 | heiHint = QApplication::desktop()->height() / 5 ; | ||
59 | showOnlyMode = false; | 60 | showOnlyMode = false; |
60 | mCalendar = calendar; | 61 | mCalendar = calendar; |
61 | mJournal = 0; | 62 | mJournal = 0; |
62 | mDirty = false; | 63 | mDirty = false; |
63 | 64 | ||
64 | QHBox * vb = new QHBox ( this ); | 65 | QHBox * vb = new QHBox ( this ); |
@@ -114,14 +115,18 @@ JournalEntry::JournalEntry(Calendar *calendar,QWidget *parent) : | |||
114 | connect( newJournal, SIGNAL( clicked() ), this , SIGNAL( newJournal() ) ); | 115 | connect( newJournal, SIGNAL( clicked() ), this , SIGNAL( newJournal() ) ); |
115 | connect( toggleJournal, SIGNAL( clicked() ), this , SLOT( toggleShowJournal() ) ); | 116 | connect( toggleJournal, SIGNAL( clicked() ), this , SLOT( toggleShowJournal() ) ); |
116 | } | 117 | } |
117 | 118 | ||
118 | JournalEntry::~JournalEntry() | 119 | JournalEntry::~JournalEntry() |
119 | { | 120 | { |
121 | qDebug("JournalEntry::~JournalEntry() "); | ||
122 | } | ||
123 | QSize JournalEntry::sizeHint() const | ||
124 | { | ||
125 | return QSize ( 240, heiHint ); | ||
120 | } | 126 | } |
121 | |||
122 | void JournalEntry::slotSaveTemplate() | 127 | void JournalEntry::slotSaveTemplate() |
123 | { | 128 | { |
124 | QString fileName =locateLocal( "templates", "journals" ); | 129 | QString fileName =locateLocal( "templates", "journals" ); |
125 | QDir t_dir; | 130 | QDir t_dir; |
126 | if ( !t_dir.exists(fileName) ) | 131 | if ( !t_dir.exists(fileName) ) |
127 | t_dir.mkdir ( fileName ); | 132 | t_dir.mkdir ( fileName ); |