diff -r ef813d54df51 -r a5a1242fd2e8 calendarui/views/dayview/src/calendayeventspane.cpp --- a/calendarui/views/dayview/src/calendayeventspane.cpp Wed Aug 18 09:47:38 2010 +0300 +++ b/calendarui/views/dayview/src/calendayeventspane.cpp Thu Sep 02 20:25:23 2010 +0300 @@ -16,10 +16,11 @@ */ // System includes #include -#include +#include // 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 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();