--- a/calendarui/views/dayview/src/calendaystatusstrip.cpp Wed Aug 18 09:47:38 2010 +0300
+++ b/calendarui/views/dayview/src/calendaystatusstrip.cpp Thu Sep 02 20:25:23 2010 +0300
@@ -15,11 +15,15 @@
*
*/
+// System includes
#include <QPainter>
#include <QPen>
+#include <HbColorScheme>
+// User includes
#include "calendaystatusstrip.h"
+// Constants
qreal const CalenDayStatusStrip::mMinute = 60;
qreal const CalenDayStatusStrip::mMinimumTime = 5;
@@ -28,7 +32,7 @@
*/
CalenDayStatusStrip::CalenDayStatusStrip(HbWidget *parent)
: HbWidget(parent), mRange(2),
- mDrawingStyle(CalenDayStatusStrip::Filled)
+ mDrawingStyle(CalenDayStatusStrip::Filled)
{
setFlag(QGraphicsItem::ItemHasNoContents,false);
@@ -54,16 +58,6 @@
}
/*!
- \brief Returns color drawing
-
- \sa setColor
- */
-QColor CalenDayStatusStrip::color() const
-{
- return mColor;
-}
-
-/*!
\brief Returns style of drawing.
\sa CalenDayStatusStrip::DrawingStyle, setDrawingStyle
@@ -97,18 +91,6 @@
}
/*!
- \brief It sets color drawing
-
- \param stripColor Color of drawing
-
- \sa stripColor
- */
-void CalenDayStatusStrip::setColor(QColor stripColor)
-{
- mColor = stripColor;
-}
-
-/*!
\brief It sets drawing style of strip
\param drawingStyle Style of strip drawing.
@@ -193,7 +175,7 @@
painter->setClipRect(bounding, Qt::IntersectClip);
//prepare brush and paint
- QBrush brush(mColor);
+ QBrush brush(HbColorScheme::color("qtc_cal_month_current_day"));
painter->setBrush(brush);
QPen pen;
pen.setWidth(1);