summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprofiler/qmlprofilereventview.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-04-03 11:15:56 +0200
committerUlf Hermann <ulf.hermann@digia.com>2014-04-09 16:36:04 +0200
commit9e802e3af1e21ecacc607daf9716f690fe0a73bf (patch)
tree1da80b71b2dc07fcdd5ff06c0c8310fc70b7eac2 /src/plugins/qmlprofiler/qmlprofilereventview.h
parent38220ba4bb53ff5b6e2c8f431f0a76e1204d1b19 (diff)
downloadqt-creator-9e802e3af1e21ecacc607daf9716f690fe0a73bf.tar.gz
QmlProfiler: Reduce the amount of useless signals on item selection
By passing signals with identification information of varying accurary between the different views the event being selected could be changed while it was selected. By checking the current selection against the information given in the signal and not reselecting when it matches the situation is improved. Also, the selection methods are given more appropriate names. We hardly ever want to select the "next" event, but rather the "best fitting" one. Task-number: QTCREATORBUG-11945 Change-Id: I659b4929cb88f4c931a0893aa95a3bc92da5a23b Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilereventview.h')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilereventview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilereventview.h b/src/plugins/qmlprofiler/qmlprofilereventview.h
index e7f9eb5097..492fdbf4f4 100644
--- a/src/plugins/qmlprofiler/qmlprofilereventview.h
+++ b/src/plugins/qmlprofiler/qmlprofilereventview.h
@@ -143,6 +143,7 @@ private slots:
void profilerDataModelStateChanged();
private:
+ void selectItem(const QStandardItem *item);
void setHeaderLabels();
void parseModelProxy();