Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-qt-ui
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-qt-ui
Commits
9646caed
Commit
9646caed
authored
5 years ago
by
konstantin.kukharenko
Browse files
Options
Downloads
Patches
Plain Diff
[*]Edit comments
parent
e9bd4608
No related branches found
Branches containing commit
No related tags found
3 merge requests
!17
Develop old
,
!11
Feature 3131
,
!5
[+]New class
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
controls/CustomLineHeightLabel.cpp
+3
-5
3 additions, 5 deletions
controls/CustomLineHeightLabel.cpp
controls/CustomLineHeightLabel.h
+1
-1
1 addition, 1 deletion
controls/CustomLineHeightLabel.h
with
4 additions
and
6 deletions
controls/CustomLineHeightLabel.cpp
+
3
−
5
View file @
9646caed
...
@@ -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"
);
}
}
This diff is collapsed.
Click to expand it.
controls/CustomLineHeightLabel.h
+
1
−
1
View file @
9646caed
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment