ProjectExplorer: Remove PEPlugin::finishedInitialization() signal

It was only used once in the debugger, connect more directly there.

Change-Id: I96923a308adfd343daeab6574e097f24bf0654d5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2024-02-02 08:48:30 +01:00
parent 91e72756fb
commit be33c807a6
3 changed files with 4 additions and 10 deletions

View File

@@ -44,6 +44,7 @@
#include <coreplugin/navigationwidget.h>
#include <coreplugin/outputpane.h>
#include <coreplugin/rightpane.h>
#include <coreplugin/session.h>
#include <extensionsystem/iplugin.h>
#include <extensionsystem/pluginmanager.h>
@@ -787,9 +788,10 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(const QStringList &arguments)
ICore::addAdditionalContext(debuggerNotRunning);
m_arguments = arguments;
if (!m_arguments.isEmpty())
connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::finishedInitialization,
if (!m_arguments.isEmpty()) {
connect(SessionManager::instance(), &SessionManager::startupSessionRestored,
this, &DebuggerPluginPrivate::parseCommandLineArguments);
}
// Menus
m_menu = ActionManager::createMenu(M_DEBUG_ANALYZER);

View File

@@ -1897,10 +1897,6 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
&ProjectWelcomePage::requestProject,
m_instance,
&ProjectExplorerPlugin::openProjectWelcomePage);
connect(SessionManager::instance(),
&SessionManager::startupSessionRestored,
m_instance,
&ProjectExplorerPlugin::finishedInitialization);
dd->updateWelcomePage();
MacroExpander *expander = Utils::globalMacroExpander();

View File

@@ -24,8 +24,6 @@ namespace Core {
class OutputWindow;
} // Core
namespace Utils { class CommandLine; }
namespace ProjectExplorer {
class CustomParserSettings;
class FolderNode;
@@ -170,8 +168,6 @@ public:
static Core::OutputWindow *buildSystemOutput();
signals:
void finishedInitialization();
// Is emitted when a project has been added/removed,
// or the file list of a specific project has changed.
void fileListChanged();