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
Merge requests
!5
[+]New class
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[+]New class
features-3063
into
develop
Overview
3
Commits
3
Pipelines
0
Changes
3
3 unresolved threads
Hide all comments
Merged
konstantin.kukharenko
requested to merge
features-3063
into
develop
5 years ago
Overview
3
Commits
3
Pipelines
0
Changes
3
3 unresolved threads
Hide all comments
Expand
👍
0
👎
0
Merge request reports
Compare
develop
version 2
9646caed
5 years ago
version 1
e9bd4608
5 years ago
develop (base)
and
latest version
latest version
bed3ce90
3 commits,
5 years ago
version 2
9646caed
2 commits,
5 years ago
version 1
e9bd4608
1 commit,
5 years ago
3 files
+
57
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
controls/CustomLineHeightLabel.cpp
0 → 100644
+
35
−
0
Options
#include
"CustomLineHeightLabel.h"
#include
"AppStyleSheetHandler.h"
CustomLineHeightLabel
::
CustomLineHeightLabel
(
QWidget
*
a_parent
)
:
QLabel
(
a_parent
)
{
}
void
CustomLineHeightLabel
::
setText
(
const
QString
&
text
)
{
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
);
}
void
CustomLineHeightLabel
::
setObjectName
(
const
QString
&
name
)
{
QObject
::
setObjectName
(
name
);
updateStyleSheets
();
}
void
CustomLineHeightLabel
::
updateStyleSheets
()
{
StyleSheatSearchPar
searchPar
;
searchPar
.
widgetName
=
"#"
+
this
->
objectName
();
QString
stylesheet
=
AppStyleSheetHandler
::
getWidgetStyleSheet
(
searchPar
);
//line-height:
m_lineHeight
=
AppStyleSheetHandler
::
getValueFromStylesheet
(
stylesheet
,
"line-height"
);
}
Loading