src/hbwidgets/editors/hbtextedit_p.cpp
changeset 34 ed14f46c0e55
parent 7 923ff622b8b9
--- a/src/hbwidgets/editors/hbtextedit_p.cpp	Mon Oct 04 17:49:30 2010 +0300
+++ b/src/hbwidgets/editors/hbtextedit_p.cpp	Mon Oct 18 18:23:13 2010 +0300
@@ -58,8 +58,8 @@
     mTextBaseLinePen.setWidthF((qreal)1.0);
 
     q->setScrollable(true);
-    setBackgroundItem(HbStyle::P_TextEdit_frame_normal);
-    q->setFocusHighlight(HbStyle::P_TextEdit_frame_highlight,HbWidget::FocusHighlightActive);
+    setBackgroundItem(HbStylePrivate::P_TextEdit_frame_normal);
+    setFocusHighlight((HbStyle::Primitive)HbStylePrivate::P_TextEdit_frame_highlight,HbWidget::FocusHighlightActive);
 }
 
 void HbTextEditPrivate::updatePaletteFromTheme()
@@ -72,6 +72,8 @@
     QColor selectedBackground = HbColorScheme::color("qtc_textedit_marker_normal");
     QColor hintText = HbColorScheme::color("qtc_textedit_hint_normal");
     mTextBaseLinePen.setColor(HbColorScheme::color("qtc_textedit_normal"));
+    setCursorColor(HbColorScheme::color("qtc_textedit_cursor"));
+
     QPalette pal = q->palette();
 
     if (textColor.isValid()) {