diff options
author | hjk <hjk@qt.io> | 2022-03-31 13:24:02 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-03-31 15:42:07 +0000 |
commit | ad2fa94ff194d072fa3103dbfcf972f93c502983 (patch) | |
tree | 8363dfe8ed0ccae1fed2caae23c33043e7088d8f /src/plugins/projectexplorer/appoutputpane.cpp | |
parent | 38a656519947340dc441e1d6c4e0af1b7bb09af9 (diff) |
ProjectExplorer: Regularize namespace setup in appoutputpane.cpp
Change-Id: If87fbed5ec054c6180c43ec8190b9993621daa56
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/appoutputpane.cpp')
-rw-r--r-- | src/plugins/projectexplorer/appoutputpane.cpp | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp index c8ee2003de..d7bba925f1 100644 --- a/src/plugins/projectexplorer/appoutputpane.cpp +++ b/src/plugins/projectexplorer/appoutputpane.cpp @@ -66,11 +66,18 @@ static Q_LOGGING_CATEGORY(appOutputLog, "qtc.projectexplorer.appoutput", QtWarningMsg); -using namespace ProjectExplorer; -using namespace ProjectExplorer::Internal; +namespace ProjectExplorer { +namespace Internal { const char OPTIONS_PAGE_ID[] = "B.ProjectExplorer.AppOutputOptions"; - +const char SETTINGS_KEY[] = "ProjectExplorer/AppOutput/Zoom"; +const char C_APP_OUTPUT[] = "ProjectExplorer.ApplicationOutput"; +const char POP_UP_FOR_RUN_OUTPUT_KEY[] = "ProjectExplorer/Settings/ShowRunOutput"; +const char POP_UP_FOR_DEBUG_OUTPUT_KEY[] = "ProjectExplorer/Settings/ShowDebugOutput"; +const char CLEAN_OLD_OUTPUT_KEY[] = "ProjectExplorer/Settings/CleanOldAppOutput"; +const char MERGE_CHANNELS_KEY[] = "ProjectExplorer/Settings/MergeStdErrAndStdOut"; +const char WRAP_OUTPUT_KEY[] = "ProjectExplorer/Settings/WrapAppOutput"; +const char MAX_LINES_KEY[] = "ProjectExplorer/Settings/MaxAppOutputLines"; static QObject *debuggerPlugin() { @@ -84,20 +91,6 @@ static QString msgAttachDebuggerTooltip(const QString &handleDescription = QStri AppOutputPane::tr("Attach debugger to %1").arg(handleDescription); } -namespace { -const char SETTINGS_KEY[] = "ProjectExplorer/AppOutput/Zoom"; -const char C_APP_OUTPUT[] = "ProjectExplorer.ApplicationOutput"; -const char POP_UP_FOR_RUN_OUTPUT_KEY[] = "ProjectExplorer/Settings/ShowRunOutput"; -const char POP_UP_FOR_DEBUG_OUTPUT_KEY[] = "ProjectExplorer/Settings/ShowDebugOutput"; -const char CLEAN_OLD_OUTPUT_KEY[] = "ProjectExplorer/Settings/CleanOldAppOutput"; -const char MERGE_CHANNELS_KEY[] = "ProjectExplorer/Settings/MergeStdErrAndStdOut"; -const char WRAP_OUTPUT_KEY[] = "ProjectExplorer/Settings/WrapAppOutput"; -const char MAX_LINES_KEY[] = "ProjectExplorer/Settings/MaxAppOutputLines"; -} - -namespace ProjectExplorer { -namespace Internal { - class TabWidget : public QTabWidget { Q_OBJECT |