Skip to content
Snippets Groups Projects
Commit a40f4165 authored by konstantin.kukharenko's avatar konstantin.kukharenko
Browse files

[+]New property

parent 673b614d
No related branches found
No related tags found
8 merge requests!26Feature 3349,!25Features 3332,!24Features 3168,!23Features 3167,!21Features 3259,!20Features 3257,!19Features 3176,!18[+]New property
......@@ -46,6 +46,13 @@ void CustomLineHeightTextEdit::focusOutEvent(QFocusEvent *e)
update();
QTextEdit::setText(textToHtml(m_placeholderText));
}
else
{
setProperty("state",STATE_END_EDIT);
style()->unpolish(this);
style()->polish(this);
update();
}
QTextEdit::focusOutEvent(e);
}
......
......@@ -59,6 +59,7 @@ protected:
const QString STATE_HOVER = "hover";
const QString STATE_DEFAULT = "default";
const QString STATE_END_EDIT = "endEdit";
private:
/** @brief Adds a style to the text from the html line height.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment