forked from qt-creator/qt-creator
Support QStringArgBuilder
With QStringArgBuilder, QString::arg() doesn't return exactly QString, which means we need to help the ?: operator to choose which return value it should have. Change-Id: I578383ac45d0bf9c6700d2f09bdfc126a81e54d7 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -594,7 +594,7 @@ void WatchTreeView::fillFormatMenu(QMenu *formatMenu, const QModelIndex &mi)
|
||||
QString msg = (individualFormat == AutomaticFormat && typeFormat != AutomaticFormat)
|
||||
? tr("Use Format for Type (Currently %1)")
|
||||
.arg(WatchHandler::nameForFormat(typeFormat))
|
||||
: tr("Use Display Format Based on Type") + QLatin1Char(' ');
|
||||
: QString(tr("Use Display Format Based on Type") + QLatin1Char(' '));
|
||||
|
||||
QAction *clearIndividualFormatAction = formatMenu->addAction(spacer + msg);
|
||||
clearIndividualFormatAction->setCheckable(true);
|
||||
|
Reference in New Issue
Block a user