summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprofiler/qml/MainView.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-03-26 11:25:10 +0100
committerUlf Hermann <ulf.hermann@digia.com>2014-03-31 10:40:56 +0200
commit13c8478d8252385ef5097f5742705f6327ed3af0 (patch)
tree1884c5717351fb93e43bc92473dec50c6a54bf15 /src/plugins/qmlprofiler/qml/MainView.qml
parentfb6bd13d3b6e8e5ade2b3bdd1e2751ffa17cf401 (diff)
downloadqt-creator-13c8478d8252385ef5097f5742705f6327ed3af0.tar.gz
QmlProfiler: Apply some coding style
Change-Id: I34d74254cf677c14538d937a596ff72054f89300 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qml/MainView.qml')
-rw-r--r--src/plugins/qmlprofiler/qml/MainView.qml8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/qmlprofiler/qml/MainView.qml b/src/plugins/qmlprofiler/qml/MainView.qml
index 84633e0102..bce1391503 100644
--- a/src/plugins/qmlprofiler/qml/MainView.qml
+++ b/src/plugins/qmlprofiler/qml/MainView.qml
@@ -136,7 +136,7 @@ Rectangle {
zoomControl.setRange(newStart, newStart + windowLength);
}
- function recenterOnItem( modelIndex, itemIndex )
+ function recenterOnItem(modelIndex, itemIndex)
{
if (itemIndex === -1)
return;
@@ -147,7 +147,6 @@ Rectangle {
recenter((qmlProfilerModelProxy.getStartTime(modelIndex, itemIndex) +
qmlProfilerModelProxy.getEndTime(modelIndex, itemIndex)) / 2);
}
-
}
function hideRangeDetails() {
@@ -162,9 +161,8 @@ Rectangle {
function selectNextByHash(hash) {
var eventId = qmlProfilerModelProxy.getEventIdForHash(hash);
- if (eventId !== -1) {
+ if (eventId !== -1)
selectNextById(eventId);
- }
}
function selectNextById(eventId)
@@ -174,7 +172,7 @@ Rectangle {
if (!lockItemSelection) {
lockItemSelection = true;
var modelIndex = qmlProfilerModelProxy.basicModelIndex();
- var itemIndex = view.nextItemFromId( modelIndex, eventId );
+ var itemIndex = view.nextItemFromId(modelIndex, eventId);
// select an item, lock to it, and recenter if necessary
if (view.selectedItem != itemIndex || view.selectedModel != modelIndex) {
view.selectedModel = modelIndex;