aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilertool.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-05-30 11:23:32 +0200
committerUlf Hermann <ulf.hermann@qt.io>2018-05-31 07:12:04 +0000
commit7a681963284b5600bfb7f81ffdebde7020f86360 (patch)
tree598095bfb568ef3f9310f9d51aa1901e3b75b3f8 /src/plugins/qmlprofiler/qmlprofilertool.cpp
parent89c42161fa368cfd36f21c3afabec9d8312e3563 (diff)
Tracing: Don't change visible features on clearing and replaying
This used to be important for the mockup in the Timeline, but as the mockup looks just fine with all available features visible, we can drop it. As TimelineModel::clear() clears the "hidden" flag, we have to restore that one on initialize(), though. As a side effect the visibility settings are retained across profiling sessions now. Task-number: QTCREATORBUG-20503 Change-Id: I1512ab7e494ed79d20e2097d68f8494990cfecbb Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertool.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertool.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp
index af0ae935a80..94b74c1504e 100644
--- a/src/plugins/qmlprofiler/qmlprofilertool.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp
@@ -662,18 +662,6 @@ bool QmlProfilerTool::checkForUnsavedNotes()
QMessageBox::Yes, QMessageBox::No) == QMessageBox::Yes;
}
-void QmlProfilerTool::restoreFeatureVisibility()
-{
- // Restore the shown/hidden state of features to what the user selected. When clearing data the
- // the model manager sets its features to 0, and models get automatically shown, for the mockup.
- quint64 features = 0;
- foreach (const QAction *action, d->m_displayFeaturesMenu->actions()) {
- if (action->isChecked())
- features |= (1ULL << action->data().toUInt());
- }
- d->m_profilerModelManager->setVisibleFeatures(features);
-}
-
void QmlProfilerTool::clientsDisconnected()
{
if (d->m_toolBusy) {
@@ -745,7 +733,6 @@ void QmlProfilerTool::setRecordedFeatures(quint64 features)
void QmlProfilerTool::initialize()
{
- restoreFeatureVisibility();
setButtonsEnabled(false); // Other buttons disabled
}