Qdb: De-Q_OBJECT-ify RunConfiguration

Change-Id: Ib632cb135915561682f68c0c37e0c3fefe92c0bb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2020-02-13 18:50:35 +01:00
parent 7738d77814
commit 7e363e4168
2 changed files with 33 additions and 34 deletions

View File

@@ -44,9 +44,14 @@ namespace Internal {
// FullCommandLineAspect
FullCommandLineAspect::FullCommandLineAspect(RunConfiguration *rc)
class FullCommandLineAspect : public BaseStringAspect
{
setLabelText(QdbRunConfiguration::tr("Full command line:"));
Q_DECLARE_TR_FUNCTIONS(Qdb::Internal::QdbRunConfiguration);
public:
explicit FullCommandLineAspect(RunConfiguration *rc)
{
setLabelText(tr("Full command line:"));
auto exeAspect = rc->aspect<ExecutableAspect>();
auto argumentsAspect = rc->aspect<ArgumentsAspect>();
@@ -61,10 +66,24 @@ FullCommandLineAspect::FullCommandLineAspect(RunConfiguration *rc)
connect(argumentsAspect, &ArgumentsAspect::argumentsChanged, this, updateCommandLine);
connect(exeAspect, &ExecutableAspect::changed, this, updateCommandLine);
updateCommandLine();
}
}
};
// QdbRunConfiguration
class QdbRunConfiguration : public RunConfiguration
{
Q_DECLARE_TR_FUNCTIONS(Qdb::Internal::QdbRunConfiguration);
public:
QdbRunConfiguration(Target *target, Core::Id id);
private:
Tasks checkForIssues() const override;
QString defaultDisplayName() const;
};
QdbRunConfiguration::QdbRunConfiguration(Target *target, Core::Id id)
: RunConfiguration(target, id)
{

View File

@@ -30,26 +30,6 @@
namespace Qdb {
namespace Internal {
class FullCommandLineAspect : public ProjectExplorer::BaseStringAspect
{
Q_OBJECT
public:
explicit FullCommandLineAspect(ProjectExplorer::RunConfiguration *rc);
};
class QdbRunConfiguration : public ProjectExplorer::RunConfiguration
{
Q_OBJECT
public:
QdbRunConfiguration(ProjectExplorer::Target *target, Core::Id id);
private:
ProjectExplorer::Tasks checkForIssues() const override;
QString defaultDisplayName() const;
};
class QdbRunConfigurationFactory : public ProjectExplorer::RunConfigurationFactory
{
public: