diff options
author | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2022-02-16 18:07:05 +0100 |
---|---|---|
committer | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2022-02-17 14:23:29 +0000 |
commit | b2d90241fee3e6bdaf8dfb8b587d68c92115da2b (patch) | |
tree | e2e6b2aa1cc264957541323d36b890a0937c397e /src/plugins/coreplugin/loggingviewer.cpp | |
parent | 81c9051feb61a4bdc27f2e8699d5de9ba83acbc0 (diff) | |
download | qt-creator-b2d90241fee3e6bdaf8dfb8b587d68c92115da2b.tar.gz |
Log Viewer: Fix UI text
Also update the string in the documentation.
Task-number: QTCREATORBUG-27055
Change-Id: Idce699a7796e7cb55d8218c105ec851c369cef7b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/loggingviewer.cpp')
-rw-r--r-- | src/plugins/coreplugin/loggingviewer.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/coreplugin/loggingviewer.cpp b/src/plugins/coreplugin/loggingviewer.cpp index 89046e39b2..677bffd455 100644 --- a/src/plugins/coreplugin/loggingviewer.cpp +++ b/src/plugins/coreplugin/loggingviewer.cpp @@ -425,7 +425,7 @@ LoggingViewManagerWidget::LoggingViewManagerWidget(QWidget *parent) buttonsLayout->addWidget(stop); auto qtInternal = new QToolButton; qtInternal->setIcon(Core::Icons::QTLOGO.icon()); - qtInternal->setToolTip(tr("Toggle logging of Qt internal loggings")); + qtInternal->setToolTip(tr("Toggle Qt Internal Logging")); qtInternal->setCheckable(true); qtInternal->setChecked(false); buttonsLayout->addWidget(qtInternal); @@ -616,7 +616,7 @@ void LoggingViewManagerWidget::saveLoggingsToFile() const if (enabled) m_manager->setEnabled(false); const Utils::FilePath fp = Utils::FileUtils::getSaveFilePath(ICore::dialogParent(), - tr("Save logs as")); + tr("Save Logs As")); if (fp.isEmpty()) return; const bool useTS = m_timestamps->isChecked(); @@ -628,7 +628,7 @@ void LoggingViewManagerWidget::saveLoggingsToFile() const if (res == -1) { QMessageBox::critical( ICore::dialogParent(), tr("Error"), - tr("Failed to write logs to '%1'.").arg(fp.toUserOutput())); + tr("Failed to write logs to \"%1\".").arg(fp.toUserOutput())); break; } } @@ -636,14 +636,14 @@ void LoggingViewManagerWidget::saveLoggingsToFile() const } else { QMessageBox::critical( ICore::dialogParent(), tr("Error"), - tr("Failed to open file '%1' for writing logs.").arg(fp.toUserOutput())); + tr("Failed to open file \"%1\" for writing logs.").arg(fp.toUserOutput())); } } void LoggingViewManagerWidget::saveEnabledCategoryPreset() const { Utils::FilePath fp = Utils::FileUtils::getSaveFilePath(ICore::dialogParent(), - tr("Save enabled categories as")); + tr("Save Enabled Categories As")); if (fp.isEmpty()) return; const QList<LoggingCategoryItem> enabled = m_categoryModel->enabledCategories(); @@ -663,13 +663,13 @@ void LoggingViewManagerWidget::saveEnabledCategoryPreset() const if (!fp.writeFileContents(doc.toJson(QJsonDocument::Compact))) QMessageBox::critical( ICore::dialogParent(), tr("Error"), - tr("Failed to write preset file '%1'.").arg(fp.toUserOutput())); + tr("Failed to write preset file \"%1\".").arg(fp.toUserOutput())); } void LoggingViewManagerWidget::loadAndUpdateFromPreset() { Utils::FilePath fp = Utils::FileUtils::getOpenFilePath(ICore::dialogParent(), - tr("Load enabled categories from")); + tr("Load Enabled Categories From")); if (fp.isEmpty()) return; // read file, update categories @@ -677,7 +677,7 @@ void LoggingViewManagerWidget::loadAndUpdateFromPreset() QJsonDocument doc = QJsonDocument::fromJson(fp.fileContents(), &error); if (error.error != QJsonParseError::NoError) { QMessageBox::critical(ICore::dialogParent(), tr("Error"), - tr("Failed to read preset file '%1': %2").arg(fp.toUserOutput()) + tr("Failed to read preset file \"%1\": %2").arg(fp.toUserOutput()) .arg(error.errorString())); return; } |