[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kdgantt
From: Christopher E. Hyde <C.Hyde () parableuk ! force9 ! co ! uk>
Date: 2008-02-18 9:48:40
Message-ID: 1203328120.185145.5200.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 776466 by chyde:
--warnings
M +2 -0 kdganttdatetimegrid.cpp
M +2 -8 kdganttitemdelegate.cpp
--- trunk/KDE/kdepim/kdgantt/kdganttdatetimegrid.cpp #776465:776466
@@ -227,6 +227,7 @@
return Span();
}
+#if 0
static void debug_print_idx( const QModelIndex& idx )
{
if ( !idx.isValid() ) {
@@ -237,6 +238,7 @@
QDateTime et = idx.data( StartTimeRole ).toDateTime();
qDebug() << idx << "["<<st<<et<<"]";
}
+#endif
/*! Maps the supplied Span to QDateTimes, and puts them as start time and
* end time for the supplied index.
--- trunk/KDE/kdepim/kdgantt/kdganttitemdelegate.cpp #776465:776466
@@ -218,12 +218,6 @@
}
}
-static void adjust_for_horizontal_alignment( QRectF* rect, Qt::Alignment a )
-{
- Q_UNUSED( rect );
- Q_UNUSED( a );
-}
-
/*! Paints the gantt item \a idx using \a painter and \a opt
*/
void ItemDelegate::paintGanttItem( QPainter* painter,
@@ -238,7 +232,7 @@
boundingRect.setY( itemRect.y() );
boundingRect.setHeight( itemRect.height() );
//qDebug() << "itemRect="<<itemRect<<", boundingRect="<<boundingRect;
-
+
painter->save();
QPen pen = defaultPen( typ );
@@ -385,7 +379,7 @@
painter->setPen( pen );
painter->setBrush( pen.color() );
-
+
if ( start.x() > end.x()-TURN ) {
QPolygonF poly;
poly << start
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic