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

[*]Edit comments

parent e9bd4608
No related branches found
No related tags found
3 merge requests!17Develop old,!11Feature 3131,!5[+]New class
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
......@@ -8,10 +8,8 @@ CustomLineHeightLabel::CustomLineHeightLabel(QWidget *a_parent)
void CustomLineHeightLabel::setText(const QString &text)
{
if(m_HightLine.isEmpty())m_HightLine = "100";
QString textToHtml = QString("<p style = 'line-height:%1;'>").arg(m_HightLine);
textToHtml += text;
textToHtml += "</p>";
if(m_lineHeight.isEmpty())m_lineHeight = "100";
QString textToHtml = QString("<p style = 'line-height:%1;'> %2 </p>").arg(m_lineHeight).arg(text);
QLabel::setText(textToHtml);
......@@ -32,6 +30,6 @@ void CustomLineHeightLabel::updateStyleSheets()
QString stylesheet = AppStyleSheetHandler::getWidgetStyleSheet(searchPar);
//line-height:
m_HightLine = AppStyleSheetHandler::getValueFromStylesheet(stylesheet, "line-height");
m_lineHeight = AppStyleSheetHandler::getValueFromStylesheet(stylesheet, "line-height");
}
......@@ -14,7 +14,7 @@ public:
void updateStyleSheets();
private:
QString m_HightLine;
QString m_lineHeight;
};
#endif // CUSTOMLINEHEIGHTLABEL_H
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