summaryrefslogtreecommitdiffabout
path: root/korganizer/kojournalview.cpp
authorzautrix <zautrix>2005-07-04 14:29:18 (UTC)
committer zautrix <zautrix>2005-07-04 14:29:18 (UTC)
commit7221ff029af217ae703e8217333bd9b170203181 (patch) (side-by-side diff)
treef294b7f4c0235858868c2a44f70b3014b7c53aab /korganizer/kojournalview.cpp
parent172078c08cd183e9f7ec913a9bf42426e3585b78 (diff)
downloadkdepimpi-7221ff029af217ae703e8217333bd9b170203181.zip
kdepimpi-7221ff029af217ae703e8217333bd9b170203181.tar.gz
kdepimpi-7221ff029af217ae703e8217333bd9b170203181.tar.bz2
box
Diffstat (limited to 'korganizer/kojournalview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kojournalview.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/korganizer/kojournalview.cpp b/korganizer/kojournalview.cpp
index 6fa9b23..9b0e748 100644
--- a/korganizer/kojournalview.cpp
+++ b/korganizer/kojournalview.cpp
@@ -51,27 +51,27 @@ KOJournalView::KOJournalView(Calendar *calendar, QWidget *parent,
{
mCalendar = calendar;
+ QHBox * vb = new QHBox ( this );
+ QPushButton * newJournal = new QPushButton( vb );
+ QPixmap icon;
+ if ( QApplication::desktop()->width() < 321 )
+ icon = SmallIcon("ko16old");
+ else
+ icon = SmallIcon("ko24old");
+ newJournal->setPixmap (icon ) ;
+ int size = newJournal->sizeHint().height();
+ newJournal->setFixedSize( size, size );
+ mDateLabel = new QLabel ( vb );
+ mDateLabel->setMargin(1);
+ mDateLabel->setAlignment(AlignCenter);
QScrollView * sv = new QScrollView( this );
- QHBoxLayout * hbl = new QHBoxLayout( this );
+ QVBoxLayout * hbl = new QVBoxLayout( this );
+ hbl->addWidget( vb );
hbl->addWidget( sv );
parWid = new QWidget( sv->viewport() );
sv->addChild(parWid);
sv->setResizePolicy( QScrollView:: AutoOneFit );
- mTopLayout = new QVBoxLayout(parWid);
- QHBox * vb = new QHBox ( parWid );
- QPushButton * newJournal = new QPushButton( vb );
- QPixmap icon;
- if ( QApplication::desktop()->width() < 321 )
- icon = SmallIcon("ko16old");
- else
- icon = SmallIcon("ko24old");
- newJournal->setPixmap (icon ) ;
- int size = newJournal->sizeHint().height();
- newJournal->setFixedSize( size, size );
- mDateLabel = new QLabel ( vb );
- mTopLayout->addWidget( vb );
- mDateLabel->setMargin(1);
- mDateLabel->setAlignment(AlignCenter);
- connect( newJournal, SIGNAL( clicked() ), this , SLOT( newJournal() ) );
- getNewEntry();
+ mTopLayout = new QVBoxLayout(parWid);
+ connect( newJournal, SIGNAL( clicked() ), this , SLOT( newJournal() ) );
+ getNewEntry();
}