Commit 246a578a authored by Christiaan Janssen's avatar Christiaan Janssen Committed by hjk

QmlProfiler: capitalization of elapsed time display

Change-Id: I327f3527568283876f7b1c2cae2d7cf71940c00d
Reviewed-on: http://codereview.qt.nokia.com/68Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk
parent 10317564
......@@ -247,10 +247,11 @@ QWidget *QmlProfilerTool::createControlWidget()
d->m_recordButton->setChecked(true);
layout->addWidget(d->m_recordButton);
QLabel *timeLabel = new QLabel(QLatin1Char(' ') + tr("Elapsed: 0 s"));
QLabel *timeLabel = new QLabel(tr("Elapsed: 0 s"));
QPalette palette = timeLabel->palette();
palette.setColor(QPalette::WindowText, Qt::white);
timeLabel->setPalette(palette);
timeLabel->setIndent(10);
connect(this, SIGNAL(setTimeLabel(QString)), timeLabel, SLOT(setText(QString)));
layout->addWidget(timeLabel);
......@@ -336,7 +337,7 @@ void QmlProfilerTool::updateTimer(qreal elapsedSeconds)
{
QString timeString = QString::number(elapsedSeconds,'f',1);
timeString = QString(" ").left(6-timeString.length()) + timeString;
emit setTimeLabel(tr("elapsed: ")+timeString+QLatin1String(" s"));
emit setTimeLabel(tr("Elapsed: %1 s").arg(timeString));
}
void QmlProfilerTool::updateProjectFileList()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment