forked from qt-creator/qt-creator
Respect the "hidden" property when generating labels
Change-Id: I96a40813ad8aebcb86ddc9ed08327fe836681267 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -113,7 +113,7 @@ QVariantList MemoryUsageModel::labels() const
|
||||
Q_D(const MemoryUsageModel);
|
||||
QVariantList result;
|
||||
|
||||
if (d->expanded && !isEmpty()) {
|
||||
if (d->expanded && !d->hidden && !isEmpty()) {
|
||||
{
|
||||
QVariantMap element;
|
||||
element.insert(QLatin1String("description"), QVariant(tr("Memory Allocation")));
|
||||
|
@@ -148,7 +148,7 @@ QVariantList PixmapCacheModel::labels() const
|
||||
Q_D(const PixmapCacheModel);
|
||||
QVariantList result;
|
||||
|
||||
if (d->expanded && !isEmpty()) {
|
||||
if (d->expanded && !d->hidden && !isEmpty()) {
|
||||
{
|
||||
// Cache Size
|
||||
QVariantMap element;
|
||||
|
@@ -142,7 +142,7 @@ QVariantList SceneGraphTimelineModel::labels() const
|
||||
Q_D(const SceneGraphTimelineModel);
|
||||
QVariantList result;
|
||||
|
||||
if (d->expanded && !isEmpty()) {
|
||||
if (d->expanded && !d->hidden && !isEmpty()) {
|
||||
for (int i = 0; i < MaximumSceneGraphStage; ++i) {
|
||||
QVariantMap element;
|
||||
element.insert(QLatin1String("displayName"), tr(ThreadLabels[i < MaximumGUIThreadStage ?
|
||||
|
Reference in New Issue
Block a user