author | zautrix <zautrix> | 2005-03-26 15:39:48 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-26 15:39:48 (UTC) |
commit | 5079ed1883f8e53bc12be971c3c9495f45abf341 (patch) (side-by-side diff) | |
tree | b145c9c6f086ce96e75363d70c06563b5f54fa81 /korganizer | |
parent | 98444f8937b151a3deb71b7ae0da495872c52855 (diff) | |
download | kdepimpi-5079ed1883f8e53bc12be971c3c9495f45abf341.zip kdepimpi-5079ed1883f8e53bc12be971c3c9495f45abf341.tar.gz kdepimpi-5079ed1883f8e53bc12be971c3c9495f45abf341.tar.bz2 |
layout fix
-rw-r--r-- | korganizer/koagenda.cpp | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 14f52b8..ed7a443 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -348,17 +348,8 @@ void KOAgenda::changeColumns(int columns) if (columns == 0) { - kdDebug() << "KOAgenda::changeColumns() called with argument 0" << endl; + qDebug("KOAgenda::changeColumns() called with argument 0 "); return; } - clear(); - mColumns = columns; -// setMinimumSize(mColumns * 10, mGridSpacingY + 1); -// init(); -// update(); - //qDebug("KOAgenda::changeColumns "); computeSizes(); - // QResizeEvent event( size(), size() ); - - //QApplication::sendEvent( this, &event ); } @@ -1750,6 +1741,4 @@ KOAgendaItem *KOAgenda::insertItem (Incidence *event,QDate qd,int X,int YTop,int { - //kdDebug() << "KOAgenda::insertItem:" << event->summary() << "-" << qd.toString() << " ;top, bottom:" << YTop << "," << YBottom << endl; - if (mAllDayMode) { - kdDebug() << "KOAgenda: calling insertItem in all-day mode is illegal." << endl; + qDebug("KOAgenda: calling insertItem in all-day mode is illegal. "); return 0; @@ -1762,3 +1751,2 @@ KOAgendaItem *KOAgenda::insertItem (Incidence *event,QDate qd,int X,int YTop,int if (YSize < 0) { - kdDebug() << "KOAgenda::insertItem(): Text: " << agendaItem->text() << " YSize<0" << endl; YSize = 1; @@ -1892,5 +1880,5 @@ void KOAgenda::computeSizes() return; - + int frameOffset = frameWidth() * 2 +1; if (mAllDayMode) { - mGridSpacingX = (width()-3) / mColumns; + mGridSpacingX = (width()-frameOffset) / mColumns; mGridSpacingY = height() - 2 * frameWidth() - 1; @@ -1912,3 +1900,3 @@ void KOAgenda::computeSizes() } else { - mGridSpacingX = (width() - verticalScrollBar()->width()-3)/mColumns; + mGridSpacingX = (width() - verticalScrollBar()->width()-frameOffset)/mColumns; if (height() > mGridSpacingY * mRows + 1 ) { |