author | zautrix <zautrix> | 2005-03-19 12:41:09 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-19 12:41:09 (UTC) |
commit | 0aa5a7dce6ac1224395f7cb3fae488ba566f0e38 (patch) (side-by-side diff) | |
tree | b0950df228b2d9d2486977f7906ce4f0d9284cba /korganizer/koagendaview.cpp | |
parent | ea9e00a1f70e9c3c855707213b51c6b6d43c330c (diff) | |
download | kdepimpi-0aa5a7dce6ac1224395f7cb3fae488ba566f0e38.zip kdepimpi-0aa5a7dce6ac1224395f7cb3fae488ba566f0e38.tar.gz kdepimpi-0aa5a7dce6ac1224395f7cb3fae488ba566f0e38.tar.bz2 |
agenda fixes
-rw-r--r-- | korganizer/koagendaview.cpp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index d7ea4d4..e029fdb 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -269,6 +269,3 @@ EventIndicator::EventIndicator(Location loc,QWidget *parent,const char *name) mEnabled.resize(mColumns); - if (mLocation == Top) - setMaximumHeight(0); - else - setMinimumHeight(mPixmap.height()); + setMinimumHeight(mPixmap.height()); } @@ -292,5 +289,5 @@ void EventIndicator::drawContents(QPainter *p) int xOffset = KOGlobals::self()->reverseLayout() ? - (mColumns - 1 - i)*cellWidth + cellWidth/2 -mPixmap.width()/2 : - i*cellWidth + cellWidth/2 -mPixmap.width()/2; - p->drawPixmap(QPoint(xOffset,0),mPixmap); + (mColumns - 1 - i)*cellWidth + (cellWidth -mPixmap.width())/2 : + i*cellWidth + (cellWidth -mPixmap.width()) /2; + p->drawPixmap(QPoint(1+xOffset,0),mPixmap); } @@ -330,2 +327,4 @@ void EventIndicator::setPaintWidget( KDGanttMinimizeSplitter * w ) mPaintWidget = w; + setMaximumHeight(0); + setMinimumHeight(0); } @@ -412,4 +411,6 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : mEventIndicatorTop = new EventIndicator(EventIndicator::Top,agendaFrame); - agendaLayout->addWidget(mEventIndicatorTop,0,1); - +#ifndef DESKTOP_VERSION + // FIX + mEventIndicatorTop->setPaintWidget( mSplitterAgenda ); +#endif mDayLabelsFrame = new QHBox(agendaFrame); @@ -418,4 +419,5 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : mLayoutDayLabels = new QHBoxLayout(mDayLabels); - agendaLayout->addMultiCellWidget(mDayLabelsFrame ,1,1,0,2); - mEventIndicatorTop->setPaintWidget( mSplitterAgenda ); + agendaLayout->addMultiCellWidget(mDayLabelsFrame ,0,0,0,2); + agendaLayout->addWidget(mEventIndicatorTop,1,1); + mEventIndicatorBottom = new EventIndicator(EventIndicator::Bottom, @@ -424,3 +426,3 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : QWidget *dummyAgendaRight = new QWidget(agendaFrame); - agendaLayout->addWidget(dummyAgendaRight,0,2); + agendaLayout->addWidget(dummyAgendaRight,1,2); |