ProjectExplorer: De-O_OBJECT-ify IPotentialKit

Change-Id: Ic7718b249375ae74bec2092ae7b0be80b6d574ee
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2023-04-18 15:35:32 +02:00
parent fadbc55cdf
commit 0ab7a14731
3 changed files with 25 additions and 27 deletions

View File

@@ -8,23 +8,35 @@
#include <app/app_version.h>
#include <utils/detailswidget.h>
#include <utils/utilsicons.h>
#include <coreplugin/coreicons.h>
#include <coreplugin/icore.h>
#include <projectexplorer/kitmanager.h>
#include <projectexplorer/kit.h>
#include <projectexplorer/kitinformation.h>
#include <qtsupport/qtversionmanager.h>
#include <qtsupport/baseqtversion.h>
#include <utils/detailswidget.h>
#include <utils/utilsicons.h>
#include <QGridLayout>
#include <QLabel>
#include <QPushButton>
using namespace Android;
using namespace Android::Internal;
namespace Android::Internal {
class AndroidPotentialKitWidget : public Utils::DetailsWidget
{
public:
AndroidPotentialKitWidget(QWidget *parent);
private:
void openOptions();
void recheck();
};
QString AndroidPotentialKit::displayName() const
{
@@ -102,3 +114,5 @@ void AndroidPotentialKitWidget::recheck()
}
}
}
} // Android::Internal

View File

@@ -4,14 +4,11 @@
#pragma once
#include <projectexplorer/ipotentialkit.h>
#include <utils/detailswidget.h>
namespace Android {
namespace Internal {
namespace Android::Internal {
class AndroidPotentialKit : public ProjectExplorer::IPotentialKit
{
Q_OBJECT
public:
QString displayName() const override;
void executeFromMenu() override;
@@ -19,15 +16,4 @@ public:
bool isEnabled() const override;
};
class AndroidPotentialKitWidget : public Utils::DetailsWidget
{
Q_OBJECT
public:
AndroidPotentialKitWidget(QWidget *parent);
private:
void openOptions();
void recheck();
};
}
}
} // Android::Internal

View File

@@ -4,18 +4,16 @@
#pragma once
#include <QObject>
#include <QMetaType>
#include "projectexplorer_export.h"
namespace ProjectExplorer {
class PROJECTEXPLORER_EXPORT IPotentialKit : public QObject
class PROJECTEXPLORER_EXPORT IPotentialKit
{
Q_OBJECT
public:
IPotentialKit();
~IPotentialKit() override;
virtual ~IPotentialKit();
virtual QString displayName() const = 0;
virtual void executeFromMenu() = 0;
@@ -23,4 +21,4 @@ public:
virtual bool isEnabled() const = 0;
};
}
} // ProjectExplorer