equal
deleted
inserted
replaced
56 // mTextBaseLinePen.setColor(Qt::magenta); |
56 // mTextBaseLinePen.setColor(Qt::magenta); |
57 mTextBaseLinePen.setCapStyle(Qt::RoundCap); |
57 mTextBaseLinePen.setCapStyle(Qt::RoundCap); |
58 mTextBaseLinePen.setWidthF((qreal)1.0); |
58 mTextBaseLinePen.setWidthF((qreal)1.0); |
59 |
59 |
60 q->setScrollable(true); |
60 q->setScrollable(true); |
61 setBackgroundItem(HbStyle::P_TextEdit_frame_normal); |
61 setBackgroundItem(HbStylePrivate::P_TextEdit_frame_normal); |
62 q->setFocusHighlight(HbStyle::P_TextEdit_frame_highlight,HbWidget::FocusHighlightActive); |
62 setFocusHighlight((HbStyle::Primitive)HbStylePrivate::P_TextEdit_frame_highlight,HbWidget::FocusHighlightActive); |
63 } |
63 } |
64 |
64 |
65 void HbTextEditPrivate::updatePaletteFromTheme() |
65 void HbTextEditPrivate::updatePaletteFromTheme() |
66 { |
66 { |
67 HbAbstractEditPrivate::updatePaletteFromTheme(); |
67 HbAbstractEditPrivate::updatePaletteFromTheme(); |
70 QColor textColor = HbColorScheme::color("qtc_textedit_normal"); |
70 QColor textColor = HbColorScheme::color("qtc_textedit_normal"); |
71 QColor selectedColor = HbColorScheme::color("qtc_textedit_selected"); |
71 QColor selectedColor = HbColorScheme::color("qtc_textedit_selected"); |
72 QColor selectedBackground = HbColorScheme::color("qtc_textedit_marker_normal"); |
72 QColor selectedBackground = HbColorScheme::color("qtc_textedit_marker_normal"); |
73 QColor hintText = HbColorScheme::color("qtc_textedit_hint_normal"); |
73 QColor hintText = HbColorScheme::color("qtc_textedit_hint_normal"); |
74 mTextBaseLinePen.setColor(HbColorScheme::color("qtc_textedit_normal")); |
74 mTextBaseLinePen.setColor(HbColorScheme::color("qtc_textedit_normal")); |
|
75 setCursorColor(HbColorScheme::color("qtc_textedit_cursor")); |
|
76 |
75 QPalette pal = q->palette(); |
77 QPalette pal = q->palette(); |
76 |
78 |
77 if (textColor.isValid()) { |
79 if (textColor.isValid()) { |
78 pal.setColor(QPalette::Text, textColor); |
80 pal.setColor(QPalette::Text, textColor); |
79 } |
81 } |