-rw-r--r-- | korganizer/journalentry.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/korganizer/journalentry.cpp b/korganizer/journalentry.cpp index 232ea58..58863fe 100644 --- a/korganizer/journalentry.cpp +++ b/korganizer/journalentry.cpp @@ -69,8 +69,6 @@ JournalEntry::JournalEntry(Calendar *calendar,QWidget *parent) : QPushButton * toggleJournal = new QPushButton( vb ); icon = SmallIcon("1updownarrow"); toggleJournal->setIconSet (icon ) ; - int size = toggleJournal->sizeHint().height(); - toggleJournal->setFixedSize( size * 2 /3 , size ); new QLabel(i18n(" Title: "),vb); mTitle = new KLineEdit ( vb ); mTitleLabel = new QLabel(i18n("Title"),vb); @@ -83,14 +81,15 @@ JournalEntry::JournalEntry(Calendar *calendar,QWidget *parent) : else icon = SmallIcon("fileexport"); saveTemplate->setIconSet (icon ) ; - //size = saveTemplate->sizeHint().height(); - saveTemplate->setFixedSize( size, size ); + int size = saveTemplate->sizeHint().height(); if ( QApplication::desktop()->width() < 321 ) icon = SmallIcon("fileimport16"); else icon = SmallIcon("fileimport"); loadTemplate->setIconSet (icon ) ; loadTemplate->setFixedSize( size, size ); + saveTemplate->setFixedSize( size, size ); + toggleJournal->setFixedSize( size , size ); mEditor = new KTextEdit(this); connect(mEditor,SIGNAL(textChanged()),SLOT(setDirty())); #ifndef DESKTOP_VERSION |