Skip to content
GitLab
Menu
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
e23731cc
Commit
e23731cc
authored
Feb 18, 2017
by
Volker Krause
Browse files
Fix typo
parent
3373cff2
Changes
2
Show whitespace changes
Inline
Side-by-side
analyzer/analytics/categoryaggregator.cpp
View file @
e23731cc
...
@@ -126,26 +126,26 @@ void CategoryAggregator::updateTimelineChart()
...
@@ -126,26 +126,26 @@ void CategoryAggregator::updateTimelineChart()
QtCharts
::
QChart
*
CategoryAggregator
::
singlularChart
()
QtCharts
::
QChart
*
CategoryAggregator
::
singlularChart
()
{
{
if
(
!
m_sing
l
ularChart
)
{
if
(
!
m_singularChart
)
{
m_sing
l
ularChart
.
reset
(
new
QChart
);
m_singularChart
.
reset
(
new
QChart
);
ChartUtil
::
applyTheme
(
m_sing
l
ularChart
.
get
());
ChartUtil
::
applyTheme
(
m_singularChart
.
get
());
updateSingularChart
();
updateSingularChart
();
}
}
return
m_sing
l
ularChart
.
get
();
return
m_singularChart
.
get
();
}
}
void
CategoryAggregator
::
updateSingularChart
()
void
CategoryAggregator
::
updateSingularChart
()
{
{
if
(
!
m_sing
l
ularChart
)
if
(
!
m_singularChart
)
return
;
return
;
m_sing
l
ularChart
->
removeAllSeries
();
m_singularChart
->
removeAllSeries
();
if
(
sourceModel
()
->
rowCount
()
<=
0
)
if
(
sourceModel
()
->
rowCount
()
<=
0
)
return
;
return
;
auto
series
=
new
QPieSeries
(
m_sing
l
ularChart
.
get
());
auto
series
=
new
QPieSeries
(
m_singularChart
.
get
());
auto
mapper
=
new
QHPieModelMapper
(
m_sing
l
ularChart
.
get
());
auto
mapper
=
new
QHPieModelMapper
(
m_singularChart
.
get
());
auto
modelWithLabels
=
new
ExtraRowsProxyModel
(
mapper
);
auto
modelWithLabels
=
new
ExtraRowsProxyModel
(
mapper
);
modelWithLabels
->
setSourceModel
(
singularAggregationModel
());
modelWithLabels
->
setSourceModel
(
singularAggregationModel
());
mapper
->
setModel
(
modelWithLabels
);
mapper
->
setModel
(
modelWithLabels
);
...
@@ -154,5 +154,5 @@ void CategoryAggregator::updateSingularChart()
...
@@ -154,5 +154,5 @@ void CategoryAggregator::updateSingularChart()
mapper
->
setLabelsRow
(
1
);
mapper
->
setLabelsRow
(
1
);
mapper
->
setSeries
(
series
);
mapper
->
setSeries
(
series
);
m_sing
l
ularChart
->
addSeries
(
series
);
m_singularChart
->
addSeries
(
series
);
}
}
analyzer/analytics/categoryaggregator.h
View file @
e23731cc
...
@@ -45,7 +45,7 @@ private:
...
@@ -45,7 +45,7 @@ private:
std
::
unique_ptr
<
CategoryAggregationModel
>
m_model
;
std
::
unique_ptr
<
CategoryAggregationModel
>
m_model
;
std
::
unique_ptr
<
QtCharts
::
QChart
>
m_timelineChart
;
std
::
unique_ptr
<
QtCharts
::
QChart
>
m_timelineChart
;
std
::
unique_ptr
<
QtCharts
::
QChart
>
m_sing
l
ularChart
;
std
::
unique_ptr
<
QtCharts
::
QChart
>
m_singularChart
;
};
};
}}
}}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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