calendarui/views/dayview/src/calendayeventspane.cpp
changeset 63 a3cb48f6c889
parent 55 2c54b51f39c4
--- a/calendarui/views/dayview/src/calendayeventspane.cpp	Mon Aug 09 18:30:52 2010 +0530
+++ b/calendarui/views/dayview/src/calendayeventspane.cpp	Wed Aug 25 14:02:13 2010 +0530
@@ -16,10 +16,11 @@
 */
 // System includes
 #include <QPainter>
-#include <hbcolorscheme.h>
+#include <HbColorScheme>
 
 // User includes
-#include "CalenDayEventsPane.h"
+#include "calendayeventspane.h"
+#include "calendaycommonheaders.h"
 
 /*!
  \class CalenDayEventsPane
@@ -39,12 +40,13 @@
 
     HbDeviceProfile deviceProfile;
     mUnitInPixels = deviceProfile.unitValue();
-    mHourLineColor = HbColorScheme::color("qtc_cal_day_hour_lines");
+    mHourLineColor = HbColorScheme::color(KCalenHourLineColor);
     
     // Set custom dashed pen
-    mCustomDashedPen.setWidth(0.15);
+    mCustomDashedPen.setWidth(KCalenHourLineThickness);
     QVector<qreal> dashes;
-    dashes << 5 << 5;
+    dashes << KCalenHalfHourLineDashWidth * mUnitInPixels 
+        << KCalenHalfHourLineDashWidth * mUnitInPixels;
     mCustomDashedPen.setDashPattern(dashes);
     mCustomDashedPen.setCapStyle(Qt::FlatCap);
     mCustomDashedPen.setColor(mHourLineColor);
@@ -89,7 +91,7 @@
     
     QRectF drawArea = option->rect;
     
-    const qreal hourLineThickness = 0.15; //un (according to UI spec)
+    const qreal hourLineThickness = KCalenHourLineThickness;
 
     painter->save();