Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Telemetry
KUserFeedback
Commits
a0c8fb41
Commit
a0c8fb41
authored
Feb 18, 2017
by
Volker Krause
Browse files
QtCharts treats <empty> as rich text
parent
4458f614
Changes
3
Hide whitespace changes
Inline
Side-by-side
analyzer/model/categoryaggregationmodel.cpp
View file @
a0c8fb41
...
...
@@ -97,7 +97,7 @@ QVariant CategoryAggregationModel::headerData(int section, Qt::Orientation orien
if
(
role
==
Qt
::
DisplayRole
)
{
const
auto
cat
=
m_categories
.
at
(
section
-
1
);
if
(
cat
.
isEmpty
())
return
tr
(
"
<
empty
>
"
);
return
tr
(
"
[
empty
]
"
);
return
cat
;
}
}
...
...
analyzer/model/ratiosetaggregationmodel.cpp
View file @
a0c8fb41
...
...
@@ -93,7 +93,7 @@ QVariant RatioSetAggregationModel::headerData(int section, Qt::Orientation orien
if
(
role
==
Qt
::
DisplayRole
)
{
const
auto
cat
=
m_categories
.
at
(
section
-
1
);
if
(
cat
.
isEmpty
())
return
tr
(
"
<
empty
>
"
);
return
tr
(
"
[
empty
]
"
);
return
cat
;
}
}
...
...
tests/auto/categoryaggregationmodeltest.cpp
View file @
a0c8fb41
...
...
@@ -95,7 +95,7 @@ private slots:
srcModel
.
setSamples
(
samples
);
QCOMPARE
(
model
.
columnCount
(),
4
);
QCOMPARE
(
model
.
headerData
(
1
,
Qt
::
Horizontal
,
Qt
::
DisplayRole
).
toString
(),
QLatin1String
(
"
<
empty
>
"
));
QCOMPARE
(
model
.
headerData
(
1
,
Qt
::
Horizontal
,
Qt
::
DisplayRole
).
toString
(),
QLatin1String
(
"
[
empty
]
"
));
QCOMPARE
(
model
.
headerData
(
2
,
Qt
::
Horizontal
,
Qt
::
DisplayRole
).
toString
(),
QLatin1String
(
"1.0"
));
QCOMPARE
(
model
.
headerData
(
3
,
Qt
::
Horizontal
,
Qt
::
DisplayRole
).
toString
(),
QLatin1String
(
"1.9.84"
));
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment