Commit c884f3e0 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk

ProjectExplorer: Remove redundant namespace qualifications

Change-Id: Id9034e31f3f61c38894111951534dd0d59b746dc
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent c86ef46f
...@@ -307,26 +307,26 @@ Abi::Abi(const Architecture &a, const OS &o, ...@@ -307,26 +307,26 @@ Abi::Abi(const Architecture &a, const OS &o,
m_architecture(a), m_os(o), m_osFlavor(of), m_binaryFormat(f), m_wordWidth(w) m_architecture(a), m_os(o), m_osFlavor(of), m_binaryFormat(f), m_wordWidth(w)
{ {
switch (m_os) { switch (m_os) {
case ProjectExplorer::Abi::UnknownOS: case Abi::UnknownOS:
m_osFlavor = UnknownFlavor; m_osFlavor = UnknownFlavor;
break; break;
case ProjectExplorer::Abi::LinuxOS: case Abi::LinuxOS:
if (m_osFlavor < GenericLinuxFlavor || m_osFlavor > AndroidLinuxFlavor) if (m_osFlavor < GenericLinuxFlavor || m_osFlavor > AndroidLinuxFlavor)
m_osFlavor = UnknownFlavor; m_osFlavor = UnknownFlavor;
break; break;
case ProjectExplorer::Abi::BsdOS: case Abi::BsdOS:
if (m_osFlavor < FreeBsdFlavor || m_osFlavor > OpenBsdFlavor) if (m_osFlavor < FreeBsdFlavor || m_osFlavor > OpenBsdFlavor)
m_osFlavor = UnknownFlavor; m_osFlavor = UnknownFlavor;
break; break;
case ProjectExplorer::Abi::MacOS: case Abi::MacOS:
if (m_osFlavor < GenericMacFlavor || m_osFlavor > GenericMacFlavor) if (m_osFlavor < GenericMacFlavor || m_osFlavor > GenericMacFlavor)
m_osFlavor = UnknownFlavor; m_osFlavor = UnknownFlavor;
break; break;
case ProjectExplorer::Abi::UnixOS: case Abi::UnixOS:
if (m_osFlavor < GenericUnixFlavor || m_osFlavor > SolarisUnixFlavor) if (m_osFlavor < GenericUnixFlavor || m_osFlavor > SolarisUnixFlavor)
m_osFlavor = UnknownFlavor; m_osFlavor = UnknownFlavor;
break; break;
case ProjectExplorer::Abi::WindowsOS: case Abi::WindowsOS:
if (m_osFlavor < WindowsMsvc2005Flavor || m_osFlavor > WindowsCEFlavor) if (m_osFlavor < WindowsMsvc2005Flavor || m_osFlavor > WindowsCEFlavor)
m_osFlavor = UnknownFlavor; m_osFlavor = UnknownFlavor;
break; break;
...@@ -628,37 +628,37 @@ QString Abi::toString(const OS &o) ...@@ -628,37 +628,37 @@ QString Abi::toString(const OS &o)
QString Abi::toString(const OSFlavor &of) QString Abi::toString(const OSFlavor &of)
{ {
switch (of) { switch (of) {
case ProjectExplorer::Abi::GenericLinuxFlavor: case Abi::GenericLinuxFlavor:
return QLatin1String("generic"); return QLatin1String("generic");
case ProjectExplorer::Abi::AndroidLinuxFlavor: case Abi::AndroidLinuxFlavor:
return QLatin1String("android"); return QLatin1String("android");
case ProjectExplorer::Abi::FreeBsdFlavor: case Abi::FreeBsdFlavor:
return QLatin1String("freebsd"); return QLatin1String("freebsd");
case ProjectExplorer::Abi::NetBsdFlavor: case Abi::NetBsdFlavor:
return QLatin1String("netbsd"); return QLatin1String("netbsd");
case ProjectExplorer::Abi::OpenBsdFlavor: case Abi::OpenBsdFlavor:
return QLatin1String("openbsd"); return QLatin1String("openbsd");
case ProjectExplorer::Abi::GenericMacFlavor: case Abi::GenericMacFlavor:
return QLatin1String("generic"); return QLatin1String("generic");
case ProjectExplorer::Abi::GenericUnixFlavor: case Abi::GenericUnixFlavor:
return QLatin1String("generic"); return QLatin1String("generic");
case ProjectExplorer::Abi::SolarisUnixFlavor: case Abi::SolarisUnixFlavor:
return QLatin1String("solaris"); return QLatin1String("solaris");
case ProjectExplorer::Abi::WindowsMsvc2005Flavor: case Abi::WindowsMsvc2005Flavor:
return QLatin1String("msvc2005"); return QLatin1String("msvc2005");
case ProjectExplorer::Abi::WindowsMsvc2008Flavor: case Abi::WindowsMsvc2008Flavor:
return QLatin1String("msvc2008"); return QLatin1String("msvc2008");
case ProjectExplorer::Abi::WindowsMsvc2010Flavor: case Abi::WindowsMsvc2010Flavor:
return QLatin1String("msvc2010"); return QLatin1String("msvc2010");
case ProjectExplorer::Abi::WindowsMsvc2012Flavor: case Abi::WindowsMsvc2012Flavor:
return QLatin1String("msvc2012"); return QLatin1String("msvc2012");
case ProjectExplorer::Abi::WindowsMsvc2013Flavor: case Abi::WindowsMsvc2013Flavor:
return QLatin1String("msvc2013"); return QLatin1String("msvc2013");
case ProjectExplorer::Abi::WindowsMSysFlavor: case Abi::WindowsMSysFlavor:
return QLatin1String("msys"); return QLatin1String("msys");
case ProjectExplorer::Abi::WindowsCEFlavor: case Abi::WindowsCEFlavor:
return QLatin1String("ce"); return QLatin1String("ce");
case ProjectExplorer::Abi::UnknownFlavor: // fall through! case Abi::UnknownFlavor: // fall through!
default: default:
return QLatin1String("unknown"); return QLatin1String("unknown");
} }
......
...@@ -116,17 +116,17 @@ AbstractProcessStep::~AbstractProcessStep() ...@@ -116,17 +116,17 @@ AbstractProcessStep::~AbstractProcessStep()
Derived classes need to call this function. Derived classes need to call this function.
*/ */
void AbstractProcessStep::setOutputParser(ProjectExplorer::IOutputParser *parser) void AbstractProcessStep::setOutputParser(IOutputParser *parser)
{ {
delete m_outputParserChain; delete m_outputParserChain;
m_outputParserChain = new AnsiFilterParser; m_outputParserChain = new AnsiFilterParser;
m_outputParserChain->appendOutputParser(parser); m_outputParserChain->appendOutputParser(parser);
if (m_outputParserChain) { if (m_outputParserChain) {
connect(m_outputParserChain, SIGNAL(addOutput(QString,ProjectExplorer::BuildStep::OutputFormat)), connect(m_outputParserChain, &IOutputParser::addOutput,
this, SLOT(outputAdded(QString,ProjectExplorer::BuildStep::OutputFormat))); this, &AbstractProcessStep::outputAdded);
connect(m_outputParserChain, SIGNAL(addTask(ProjectExplorer::Task)), connect(m_outputParserChain, &IOutputParser::addTask,
this, SLOT(taskAdded(ProjectExplorer::Task))); this, &AbstractProcessStep::taskAdded);
} }
} }
...@@ -134,7 +134,7 @@ void AbstractProcessStep::setOutputParser(ProjectExplorer::IOutputParser *parser ...@@ -134,7 +134,7 @@ void AbstractProcessStep::setOutputParser(ProjectExplorer::IOutputParser *parser
Appends the given output parser to the existing chain of parsers. Appends the given output parser to the existing chain of parsers.
*/ */
void AbstractProcessStep::appendOutputParser(ProjectExplorer::IOutputParser *parser) void AbstractProcessStep::appendOutputParser(IOutputParser *parser)
{ {
if (!parser) if (!parser)
return; return;
...@@ -144,7 +144,7 @@ void AbstractProcessStep::appendOutputParser(ProjectExplorer::IOutputParser *par ...@@ -144,7 +144,7 @@ void AbstractProcessStep::appendOutputParser(ProjectExplorer::IOutputParser *par
return; return;
} }
ProjectExplorer::IOutputParser *AbstractProcessStep::outputParser() const IOutputParser *AbstractProcessStep::outputParser() const
{ {
return m_outputParserChain; return m_outputParserChain;
} }
...@@ -382,7 +382,7 @@ void AbstractProcessStep::checkForCancel() ...@@ -382,7 +382,7 @@ void AbstractProcessStep::checkForCancel()
} }
} }
void AbstractProcessStep::taskAdded(const ProjectExplorer::Task &task) void AbstractProcessStep::taskAdded(const Task &task)
{ {
// Do not bother to report issues if we do not care about the results of // Do not bother to report issues if we do not care about the results of
// the buildstep anyway: // the buildstep anyway:
...@@ -407,7 +407,7 @@ void AbstractProcessStep::taskAdded(const ProjectExplorer::Task &task) ...@@ -407,7 +407,7 @@ void AbstractProcessStep::taskAdded(const ProjectExplorer::Task &task)
QList<QFileInfo> possibleFiles; QList<QFileInfo> possibleFiles;
QString fileName = QFileInfo(filePath).fileName(); QString fileName = QFileInfo(filePath).fileName();
foreach (const QString &file, project()->files(ProjectExplorer::Project::AllFiles)) { foreach (const QString &file, project()->files(Project::AllFiles)) {
QFileInfo candidate(file); QFileInfo candidate(file);
if (candidate.fileName() == fileName) if (candidate.fileName() == fileName)
possibleFiles << candidate; possibleFiles << candidate;
...@@ -437,7 +437,7 @@ void AbstractProcessStep::taskAdded(const ProjectExplorer::Task &task) ...@@ -437,7 +437,7 @@ void AbstractProcessStep::taskAdded(const ProjectExplorer::Task &task)
emit addTask(editable); emit addTask(editable);
} }
void AbstractProcessStep::outputAdded(const QString &string, ProjectExplorer::BuildStep::OutputFormat format) void AbstractProcessStep::outputAdded(const QString &string, BuildStep::OutputFormat format)
{ {
emit addOutput(string, format, BuildStep::DontAppendNewline); emit addOutput(string, format, BuildStep::DontAppendNewline);
} }
......
...@@ -62,9 +62,9 @@ public: ...@@ -62,9 +62,9 @@ public:
bool ignoreReturnValue(); bool ignoreReturnValue();
void setIgnoreReturnValue(bool b); void setIgnoreReturnValue(bool b);
void setOutputParser(ProjectExplorer::IOutputParser *parser); void setOutputParser(IOutputParser *parser);
void appendOutputParser(ProjectExplorer::IOutputParser *parser); void appendOutputParser(IOutputParser *parser);
ProjectExplorer::IOutputParser *outputParser() const; IOutputParser *outputParser() const;
void emitFaultyConfigurationMessage(); void emitFaultyConfigurationMessage();
...@@ -89,9 +89,9 @@ private slots: ...@@ -89,9 +89,9 @@ private slots:
void cleanUp(); void cleanUp();
void taskAdded(const ProjectExplorer::Task &task); void taskAdded(const Task &task);
void outputAdded(const QString &string, ProjectExplorer::BuildStep::OutputFormat format); void outputAdded(const QString &string, BuildStep::OutputFormat format);
private: private:
QTimer *m_timer; QTimer *m_timer;
...@@ -99,7 +99,7 @@ private: ...@@ -99,7 +99,7 @@ private:
ProcessParameters m_param; ProcessParameters m_param;
bool m_ignoreReturnValue; bool m_ignoreReturnValue;
Utils::QtcProcess *m_process; Utils::QtcProcess *m_process;
ProjectExplorer::IOutputParser *m_outputParserChain; IOutputParser *m_outputParserChain;
bool m_killProcess; bool m_killProcess;
bool m_skipFlush; bool m_skipFlush;
}; };
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
namespace ProjectExplorer { namespace ProjectExplorer {
class AnsiFilterParser : public ProjectExplorer::IOutputParser class AnsiFilterParser : public IOutputParser
{ {
Q_OBJECT Q_OBJECT
......
...@@ -150,7 +150,7 @@ AppOutputPane::AppOutputPane() : ...@@ -150,7 +150,7 @@ AppOutputPane::AppOutputPane() :
setObjectName(QLatin1String("AppOutputPane")); // Used in valgrind engine setObjectName(QLatin1String("AppOutputPane")); // Used in valgrind engine
// Rerun // Rerun
m_reRunButton->setIcon(QIcon(QLatin1String(ProjectExplorer::Constants::ICON_RUN_SMALL))); m_reRunButton->setIcon(QIcon(QLatin1String(Constants::ICON_RUN_SMALL)));
m_reRunButton->setToolTip(tr("Re-run this run-configuration")); m_reRunButton->setToolTip(tr("Re-run this run-configuration"));
m_reRunButton->setAutoRaise(true); m_reRunButton->setAutoRaise(true);
m_reRunButton->setEnabled(false); m_reRunButton->setEnabled(false);
...@@ -177,7 +177,7 @@ AppOutputPane::AppOutputPane() : ...@@ -177,7 +177,7 @@ AppOutputPane::AppOutputPane() :
// Attach // Attach
m_attachButton->setToolTip(msgAttachDebuggerTooltip()); m_attachButton->setToolTip(msgAttachDebuggerTooltip());
m_attachButton->setEnabled(false); m_attachButton->setEnabled(false);
m_attachButton->setIcon(QIcon(QLatin1String(ProjectExplorer::Constants::ICON_DEBUG_SMALL))); m_attachButton->setIcon(QIcon(QLatin1String(Constants::ICON_DEBUG_SMALL)));
m_attachButton->setAutoRaise(true); m_attachButton->setAutoRaise(true);
connect(m_attachButton, SIGNAL(clicked()), connect(m_attachButton, SIGNAL(clicked()),
...@@ -430,7 +430,7 @@ void AppOutputPane::attachToRunControl() ...@@ -430,7 +430,7 @@ void AppOutputPane::attachToRunControl()
{ {
const int index = currentIndex(); const int index = currentIndex();
QTC_ASSERT(index != -1, return); QTC_ASSERT(index != -1, return);
ProjectExplorer::RunControl *rc = m_runControlTabs.at(index).runControl; RunControl *rc = m_runControlTabs.at(index).runControl;
QTC_ASSERT(rc->isRunning(), return); QTC_ASSERT(rc->isRunning(), return);
ExtensionSystem::Invoker<void>(debuggerCore(), "attachExternalApplication", rc); ExtensionSystem::Invoker<void>(debuggerCore(), "attachExternalApplication", rc);
} }
...@@ -546,7 +546,7 @@ void AppOutputPane::enableButtons(const RunControl *rc /* = 0 */, bool isRunning ...@@ -546,7 +546,7 @@ void AppOutputPane::enableButtons(const RunControl *rc /* = 0 */, bool isRunning
} }
} else { } else {
m_reRunButton->setEnabled(false); m_reRunButton->setEnabled(false);
m_reRunButton->setIcon(QIcon(QLatin1String(ProjectExplorer::Constants::ICON_RUN_SMALL))); m_reRunButton->setIcon(QIcon(QLatin1String(Constants::ICON_RUN_SMALL)));
m_attachButton->setEnabled(false); m_attachButton->setEnabled(false);
m_attachButton->setToolTip(msgAttachDebuggerTooltip()); m_attachButton->setToolTip(msgAttachDebuggerTooltip());
m_stopAction->setEnabled(false); m_stopAction->setEnabled(false);
...@@ -591,7 +591,7 @@ void AppOutputPane::slotRunControlStarted() ...@@ -591,7 +591,7 @@ void AppOutputPane::slotRunControlStarted()
void AppOutputPane::slotRunControlFinished() void AppOutputPane::slotRunControlFinished()
{ {
ProjectExplorer::RunControl *rc = qobject_cast<RunControl *>(sender()); RunControl *rc = qobject_cast<RunControl *>(sender());
QMetaObject::invokeMethod(this, "slotRunControlFinished2", Qt::QueuedConnection, QMetaObject::invokeMethod(this, "slotRunControlFinished2", Qt::QueuedConnection,
Q_ARG(ProjectExplorer::RunControl *, rc)); Q_ARG(ProjectExplorer::RunControl *, rc));
rc->outputFormatter()->flush(); rc->outputFormatter()->flush();
......
...@@ -152,7 +152,7 @@ void BuildConfiguration::setBuildDirectory(const Utils::FileName &dir) ...@@ -152,7 +152,7 @@ void BuildConfiguration::setBuildDirectory(const Utils::FileName &dir)
QList<NamedWidget *> BuildConfiguration::createSubConfigWidgets() QList<NamedWidget *> BuildConfiguration::createSubConfigWidgets()
{ {
return QList<NamedWidget *>() << new ProjectExplorer::BuildEnvironmentWidget(this); return QList<NamedWidget *>() << new BuildEnvironmentWidget(this);
} }
Utils::AbstractMacroExpander *BuildConfiguration::macroExpander() Utils::AbstractMacroExpander *BuildConfiguration::macroExpander()
...@@ -218,8 +218,8 @@ bool BuildConfiguration::fromMap(const QVariantMap &map) ...@@ -218,8 +218,8 @@ bool BuildConfiguration::fromMap(const QVariantMap &map)
} }
// We currently assume there to be at least a clean and build list! // We currently assume there to be at least a clean and build list!
QTC_CHECK(knownStepLists().contains(Core::Id(ProjectExplorer::Constants::BUILDSTEPS_BUILD))); QTC_CHECK(knownStepLists().contains(Core::Id(Constants::BUILDSTEPS_BUILD)));
QTC_CHECK(knownStepLists().contains(Core::Id(ProjectExplorer::Constants::BUILDSTEPS_CLEAN))); QTC_CHECK(knownStepLists().contains(Core::Id(Constants::BUILDSTEPS_CLEAN)));
return ProjectConfiguration::fromMap(map); return ProjectConfiguration::fromMap(map);
} }
......
...@@ -59,7 +59,7 @@ public: ...@@ -59,7 +59,7 @@ public:
Utils::FileName buildDirectory() const; Utils::FileName buildDirectory() const;
Utils::FileName rawBuildDirectory() const; Utils::FileName rawBuildDirectory() const;
virtual ProjectExplorer::NamedWidget *createConfigWidget() = 0; virtual NamedWidget *createConfigWidget() = 0;
virtual QList<NamedWidget *> createSubConfigWidgets(); virtual QList<NamedWidget *> createSubConfigWidgets();
// Maybe the BuildConfiguration is not the best place for the environment // Maybe the BuildConfiguration is not the best place for the environment
......
...@@ -160,7 +160,7 @@ QModelIndex BuildConfigurationModel::indexFor(BuildConfiguration *rc) ...@@ -160,7 +160,7 @@ QModelIndex BuildConfigurationModel::indexFor(BuildConfiguration *rc)
return index(idx, 0); return index(idx, 0);
} }
void BuildConfigurationModel::addedBuildConfiguration(ProjectExplorer::BuildConfiguration *bc) void BuildConfigurationModel::addedBuildConfiguration(BuildConfiguration *bc)
{ {
// Find the right place to insert // Find the right place to insert
BuildConfigurationComparer compare; BuildConfigurationComparer compare;
...@@ -179,7 +179,7 @@ void BuildConfigurationModel::addedBuildConfiguration(ProjectExplorer::BuildConf ...@@ -179,7 +179,7 @@ void BuildConfigurationModel::addedBuildConfiguration(ProjectExplorer::BuildConf
this, SLOT(displayNameChanged())); this, SLOT(displayNameChanged()));
} }
void BuildConfigurationModel::removedBuildConfiguration(ProjectExplorer::BuildConfiguration *bc) void BuildConfigurationModel::removedBuildConfiguration(BuildConfiguration *bc)
{ {
int i = m_buildConfigurations.indexOf(bc); int i = m_buildConfigurations.indexOf(bc);
beginRemoveRows(QModelIndex(), i, i); beginRemoveRows(QModelIndex(), i, i);
......
...@@ -340,7 +340,7 @@ void BuildManager::showBuildResults() ...@@ -340,7 +340,7 @@ void BuildManager::showBuildResults()
//toggleTaskWindow(); //toggleTaskWindow();
} }
void BuildManager::addToTaskWindow(const ProjectExplorer::Task &task) void BuildManager::addToTaskWindow(const Task &task)
{ {
d->m_outputWindow->registerPositionOf(task); d->m_outputWindow->registerPositionOf(task);
// Distribute to all others // Distribute to all others
......
...@@ -56,8 +56,8 @@ public: ...@@ -56,8 +56,8 @@ public:
~BuildSettingsWidget(); ~BuildSettingsWidget();
void clearWidgets(); void clearWidgets();
void addSubWidget(ProjectExplorer::NamedWidget *widget); void addSubWidget(NamedWidget *widget);
QList<ProjectExplorer::NamedWidget *> subWidgets() const; QList<NamedWidget *> subWidgets() const;
private slots: private slots:
void updateBuildSettings(); void updateBuildSettings();
......
...@@ -182,7 +182,7 @@ static QColor mix_colors(const QColor &a, const QColor &b) ...@@ -182,7 +182,7 @@ static QColor mix_colors(const QColor &a, const QColor &b)
(a.blue() + 2* b.blue()) / 3, (a.alpha() + 2 * b.alpha()) / 3); (a.blue() + 2* b.blue()) / 3, (a.alpha() + 2 * b.alpha()) / 3);
} }
void CompileOutputWindow::appendText(const QString &text, ProjectExplorer::BuildStep::OutputFormat format) void CompileOutputWindow::appendText(const QString &text, BuildStep::OutputFormat format)
{ {
QPalette p = m_outputWindow->palette(); QPalette p = m_outputWindow->palette();
QTextCharFormat textFormat; QTextCharFormat textFormat;
......
...@@ -67,7 +67,7 @@ public: ...@@ -67,7 +67,7 @@ public:
int priorityInStatusBar() const; int priorityInStatusBar() const;
void clearContents(); void clearContents();
void visibilityChanged(bool visible); void visibilityChanged(bool visible);
void appendText(const QString &text, ProjectExplorer::BuildStep::OutputFormat format); void appendText(const QString &text, BuildStep::OutputFormat format);
bool canFocus() const; bool canFocus() const;
bool hasFocus() const; bool hasFocus() const;
void setFocus(); void setFocus();
......
...@@ -47,13 +47,13 @@ ConfigTaskHandler::ConfigTaskHandler(const Task &pattern, Core::Id group, Core:: ...@@ -47,13 +47,13 @@ ConfigTaskHandler::ConfigTaskHandler(const Task &pattern, Core::Id group, Core::
m_targetPage(page) m_targetPage(page)
{ } { }
bool ConfigTaskHandler::canHandle(const ProjectExplorer::Task &task) const bool ConfigTaskHandler::canHandle(const Task &task) const
{ {
return task.description == m_pattern.description return task.description == m_pattern.description
&& task.category == m_pattern.category; && task.category == m_pattern.category;
} }
void ConfigTaskHandler::handle(const ProjectExplorer::Task &task) void ConfigTaskHandler::handle(const Task &task)
{ {
Q_UNUSED(task); Q_UNUSED(task);
Core::ICore::showOptionsDialog(m_targetGroup, m_targetPage); Core::ICore::showOptionsDialog(m_targetGroup, m_targetPage);
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
using namespace ProjectExplorer::Internal; using namespace ProjectExplorer::Internal;
void CopyTaskHandler::handle(const ProjectExplorer::Task &task) void CopyTaskHandler::handle(const Task &task)
{ {
QString type; QString type;
switch (task.type) { switch (task.type) {
......
...@@ -66,7 +66,7 @@ void CustomParserConfigDialog::setExampleSettings() ...@@ -66,7 +66,7 @@ void CustomParserConfigDialog::setExampleSettings()
ui->errorMessage->setText(QLatin1String("#error /home/user/src/test.c:891: Unknown identifier `test`")); ui->errorMessage->setText(QLatin1String("#error /home/user/src/test.c:891: Unknown identifier `test`"));
} }
void CustomParserConfigDialog::setSettings(const ProjectExplorer::CustomParserSettings &settings) void CustomParserConfigDialog::setSettings(const CustomParserSettings &settings)
{ {
if (settings.errorPattern.isEmpty()) { if (settings.errorPattern.isEmpty()) {
setExampleSettings(); setExampleSettings();
...@@ -79,9 +79,9 @@ void CustomParserConfigDialog::setSettings(const ProjectExplorer::CustomParserSe ...@@ -79,9 +79,9 @@ void CustomParserConfigDialog::setSettings(const ProjectExplorer::CustomParserSe
setMessageCap(settings.messageCap); setMessageCap(settings.messageCap);
} }
ProjectExplorer::CustomParserSettings CustomParserConfigDialog::settings() const CustomParserSettings CustomParserConfigDialog::settings() const
{ {
ProjectExplorer::CustomParserSettings result; CustomParserSettings result;
result.errorPattern = errorPattern(); result.errorPattern = errorPattern();
result.fileNameCap = fileNameCap(); result.fileNameCap = fileNameCap();
result.lineNumberCap = lineNumberCap(); result.lineNumberCap = lineNumberCap();
......
...@@ -48,8 +48,8 @@ public: ...@@ -48,8 +48,8 @@ public:
~CustomParserConfigDialog(); ~CustomParserConfigDialog();
void setExampleSettings(); void setExampleSettings();
void setSettings(const ProjectExplorer::CustomParserSettings &settings); void setSettings(const CustomParserSettings &settings);
ProjectExplorer::CustomParserSettings settings() const; CustomParserSettings settings() const;
void setErrorPattern(const QString