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
...@@ -8,10 +8,8 @@ CustomLineHeightLabel::CustomLineHeightLabel(QWidget *a_parent) ...@@ -8,10 +8,8 @@ CustomLineHeightLabel::CustomLineHeightLabel(QWidget *a_parent)
void CustomLineHeightLabel::setText(const QString &text) void CustomLineHeightLabel::setText(const QString &text)
{ {
if(m_HightLine.isEmpty())m_HightLine = "100"; if(m_lineHeight.isEmpty())m_lineHeight = "100";
QString textToHtml = QString("<p style = 'line-height:%1;'>").arg(m_HightLine); QString textToHtml = QString("<p style = 'line-height:%1;'> %2 </p>").arg(m_lineHeight).arg(text);
textToHtml += text;
textToHtml += "</p>";
QLabel::setText(textToHtml); QLabel::setText(textToHtml);
...@@ -32,6 +30,6 @@ void CustomLineHeightLabel::updateStyleSheets() ...@@ -32,6 +30,6 @@ void CustomLineHeightLabel::updateStyleSheets()
QString stylesheet = AppStyleSheetHandler::getWidgetStyleSheet(searchPar); QString stylesheet = AppStyleSheetHandler::getWidgetStyleSheet(searchPar);
//line-height: //line-height:
m_HightLine = AppStyleSheetHandler::getValueFromStylesheet(stylesheet, "line-height"); m_lineHeight = AppStyleSheetHandler::getValueFromStylesheet(stylesheet, "line-height");
} }
...@@ -14,7 +14,7 @@ public: ...@@ -14,7 +14,7 @@ public:
void updateStyleSheets(); void updateStyleSheets();
private: private:
QString m_HightLine; QString m_lineHeight;
}; };
#endif // CUSTOMLINEHEIGHTLABEL_H #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