[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise/kdepim/korganizer
From: Sergio Luis Martins <iamsergio () gmail ! com>
Date: 2010-10-12 9:13:23
Message-ID: 20101012091323.E223BAC896 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1185030 by smartins:
Fix kolab/issue3933: "A large wholeday event is not shown at all days in dayview."
M +15 -0 koagenda.cpp
--- branches/kdepim/enterprise/kdepim/korganizer/koagenda.cpp #1185029:1185030
@@ -1720,6 +1720,21 @@
connect( agendaItem, SIGNAL( showAgendaItem( KOAgendaItem::GPtr ) ),
SLOT( showAgendaItem( KOAgendaItem::GPtr ) ) );
+ { // Start hack
+
+ // Fixes https://issues.kolab.org/issue3933 -
+ // issue3933: A large wholeday event is not shown at all days in dayview.(rt#5884)
+ // ( Some 32k pixel limit Qt3 has. )
+ if ( event->doesFloat() && XBegin * mGridSpacingX <= -32767/*32k*/ + mGridSpacingX ) {
+
+ // Our event starts _many_ days before dt, so we lie to agenda and make
+ // it think the event starts one day before.
+ // That part of the event won't be visible, so the lie won't have any effect
+ // for the user
+ XBegin = -1;
+ }
+ } // End hack
+
agendaItem->setCellXY( XBegin, 0, 0 );
agendaItem->setCellXRight( XEnd );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic