From 9646caed0066ab3af4ae00bc0a98a676d2ad126a Mon Sep 17 00:00:00 2001 From: "konstantin.kukharenko" <konstantin.kukharenko@demlabs.net> Date: Fri, 7 Feb 2020 16:06:57 +0300 Subject: [PATCH] [*]Edit comments --- controls/CustomLineHeightLabel.cpp | 8 +++----- controls/CustomLineHeightLabel.h | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/controls/CustomLineHeightLabel.cpp b/controls/CustomLineHeightLabel.cpp index f45fe23..2054720 100644 --- a/controls/CustomLineHeightLabel.cpp +++ b/controls/CustomLineHeightLabel.cpp @@ -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"); } diff --git a/controls/CustomLineHeightLabel.h b/controls/CustomLineHeightLabel.h index 91f640f..21611f5 100644 --- a/controls/CustomLineHeightLabel.h +++ b/controls/CustomLineHeightLabel.h @@ -14,7 +14,7 @@ public: void updateStyleSheets(); private: - QString m_HightLine; + QString m_lineHeight; }; #endif // CUSTOMLINEHEIGHTLABEL_H -- GitLab