diff options
Diffstat (limited to 'src/plugins/debugger/unstartedappwatcherdialog.cpp')
-rw-r--r-- | src/plugins/debugger/unstartedappwatcherdialog.cpp | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/src/plugins/debugger/unstartedappwatcherdialog.cpp b/src/plugins/debugger/unstartedappwatcherdialog.cpp index 95c59eea5a..3a44d30c4d 100644 --- a/src/plugins/debugger/unstartedappwatcherdialog.cpp +++ b/src/plugins/debugger/unstartedappwatcherdialog.cpp @@ -27,6 +27,7 @@ #include "debuggeritem.h" #include "debuggerkitinformation.h" +#include "debuggertr.h" #include <utils/pathchooser.h> @@ -55,8 +56,7 @@ using namespace ProjectExplorer; using namespace Utils; -namespace Debugger { -namespace Internal { +namespace Debugger::Internal { static bool isLocal(RunConfiguration *runConfiguration) { @@ -89,7 +89,7 @@ static bool isLocal(RunConfiguration *runConfiguration) UnstartedAppWatcherDialog::UnstartedAppWatcherDialog(QWidget *parent) : QDialog(parent) { - setWindowTitle(tr("Attach to Process Not Yet Started")); + setWindowTitle(Tr::tr("Attach to Process Not Yet Started")); m_kitChooser = new KitChooser(this); m_kitChooser->setKitPredicate([](const Kit *k) { @@ -114,7 +114,7 @@ UnstartedAppWatcherDialog::UnstartedAppWatcherDialog(QWidget *parent) m_pathChooser->setHistoryCompleter("LocalExecutable", true); m_pathChooser->setMinimumWidth(400); - auto resetExecutable = new QPushButton(tr("Reset")); + auto resetExecutable = new QPushButton(Tr::tr("Reset")); resetExecutable->setEnabled(false); pathLayout->addWidget(m_pathChooser); pathLayout->addWidget(resetExecutable); @@ -130,14 +130,14 @@ UnstartedAppWatcherDialog::UnstartedAppWatcherDialog(QWidget *parent) } } - m_hideOnAttachCheckBox = new QCheckBox(tr("Reopen dialog when application finishes"), this); - m_hideOnAttachCheckBox->setToolTip(tr("Reopens this dialog when application finishes.")); + m_hideOnAttachCheckBox = new QCheckBox(Tr::tr("Reopen dialog when application finishes"), this); + m_hideOnAttachCheckBox->setToolTip(Tr::tr("Reopens this dialog when application finishes.")); m_hideOnAttachCheckBox->setChecked(false); m_hideOnAttachCheckBox->setVisible(true); - m_continueOnAttachCheckBox = new QCheckBox(tr("Continue on attach"), this); - m_continueOnAttachCheckBox->setToolTip(tr("Debugger does not stop the" + m_continueOnAttachCheckBox = new QCheckBox(Tr::tr("Continue on attach"), this); + m_continueOnAttachCheckBox->setToolTip(Tr::tr("Debugger does not stop the" " application after attach.")); m_continueOnAttachCheckBox->setChecked(true); @@ -147,15 +147,15 @@ UnstartedAppWatcherDialog::UnstartedAppWatcherDialog(QWidget *parent) m_waitingLabel->setAlignment(Qt::AlignCenter); auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Close, this); - m_watchingPushButton = buttonBox->addButton(tr("Start Watching"), QDialogButtonBox::ActionRole); + m_watchingPushButton = buttonBox->addButton(Tr::tr("Start Watching"), QDialogButtonBox::ActionRole); m_watchingPushButton->setCheckable(true); m_watchingPushButton->setChecked(false); m_watchingPushButton->setEnabled(false); m_watchingPushButton->setDefault(true); auto mainLayout = new QFormLayout(this); - mainLayout->addRow(new QLabel(tr("Kit: "), this), m_kitChooser); - mainLayout->addRow(new QLabel(tr("Executable: "), this), pathLayout); + mainLayout->addRow(new QLabel(Tr::tr("Kit: "), this), m_kitChooser); + mainLayout->addRow(new QLabel(Tr::tr("Executable: "), this), pathLayout); mainLayout->addRow(m_hideOnAttachCheckBox); mainLayout->addRow(m_continueOnAttachCheckBox); mainLayout->addRow(m_waitingLabel); @@ -244,7 +244,7 @@ void UnstartedAppWatcherDialog::pidFound(const ProcessInfo &p) void UnstartedAppWatcherDialog::startStopWatching(bool start) { setWaitingState(start ? WatchingState : NotWatchingState); - m_watchingPushButton->setText(start ? tr("Stop Watching") : tr("Start Watching")); + m_watchingPushButton->setText(start ? Tr::tr("Stop Watching") : Tr::tr("Start Watching")); startStopTimer(start); } @@ -325,7 +325,7 @@ void UnstartedAppWatcherDialog::setWaitingState(UnstartedAppWacherState state) { switch (state) { case InvalidWacherState: - m_waitingLabel->setText(tr("Select valid executable.")); + m_waitingLabel->setText(Tr::tr("Select valid executable.")); m_watchingPushButton->setEnabled(false); m_watchingPushButton->setChecked(false); m_pathChooser->setEnabled(true); @@ -333,7 +333,7 @@ void UnstartedAppWatcherDialog::setWaitingState(UnstartedAppWacherState state) break; case NotWatchingState: - m_waitingLabel->setText(tr("Not watching.")); + m_waitingLabel->setText(Tr::tr("Not watching.")); m_watchingPushButton->setEnabled(true); m_watchingPushButton->setChecked(false); m_pathChooser->setEnabled(true); @@ -341,7 +341,7 @@ void UnstartedAppWatcherDialog::setWaitingState(UnstartedAppWacherState state) break; case WatchingState: - m_waitingLabel->setText(tr("Waiting for process to start...")); + m_waitingLabel->setText(Tr::tr("Waiting for process to start...")); m_watchingPushButton->setEnabled(true); m_watchingPushButton->setChecked(true); m_pathChooser->setEnabled(false); @@ -349,7 +349,7 @@ void UnstartedAppWatcherDialog::setWaitingState(UnstartedAppWacherState state) break; case FoundState: - m_waitingLabel->setText(tr("Attach")); + m_waitingLabel->setText(Tr::tr("Attach")); m_watchingPushButton->setEnabled(false); m_watchingPushButton->setChecked(true); m_pathChooser->setEnabled(false); @@ -358,5 +358,4 @@ void UnstartedAppWatcherDialog::setWaitingState(UnstartedAppWacherState state) } } -} // namespace Internal -} // namespace Debugger +} // Debugger::Internal |