Use override consistently

parent 17761be9
......@@ -34,7 +34,7 @@ class KCMNetworkmanagement : public KCModule
Q_OBJECT
public:
explicit KCMNetworkmanagement(QWidget *parent = nullptr, const QVariantList &args = QVariantList());
virtual ~KCMNetworkmanagement();
~KCMNetworkmanagement() override;
public Q_SLOTS:
void defaults() override;
......
......@@ -35,7 +35,7 @@ class BluetoothMonitor: public QObject
Q_OBJECT
public:
explicit BluetoothMonitor(QObject * parent);
~BluetoothMonitor();
~BluetoothMonitor() override;
bool bluetoothConnectionExists(const QString &bdAddr, const QString &service);
void addBluetoothConnection(const QString &bdAddr, const QString &service, const QString &connectionName);
......
......@@ -40,7 +40,7 @@ Q_OBJECT
Q_DECLARE_PRIVATE(ModemMonitor)
public:
explicit ModemMonitor(QObject * parent);
virtual ~ModemMonitor();
~ModemMonitor() override;
public Q_SLOTS:
void unlockModem(const QString &modemUni);
......
......@@ -35,7 +35,7 @@ Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.plasmanetworkmanagement")
public:
explicit Monitor(QObject * parent);
virtual ~Monitor();
~Monitor() override;
public Q_SLOTS:
Q_SCRIPTABLE bool bluetoothConnectionExists(const QString &bdAddr, const QString &service);
......
......@@ -41,7 +41,7 @@ public:
NetworkManager::SecretAgent::GetSecretsFlags flags,
const QString &setting_name,
QWidget *parent = 0);
~PasswordDialog();
~PasswordDialog() override;
bool hasError() const;
NetworkManager::SecretAgent::Error error() const;
......
......@@ -57,7 +57,7 @@ public:
enum ErrorCode {PinCodeTooShort, PinCodesDoNotMatch, PukCodeTooShort};
explicit PinDialog(ModemManager::Modem *modem, const Type type = SimPin, QWidget *parent=0);
~PinDialog();
~PinDialog() override;
Type type() const;
QString pin() const;
......@@ -65,7 +65,7 @@ public:
QString puk() const;
public Q_SLOTS:
void accept();
void accept() override;
private Q_SLOTS:
void chkShowPassToggled(bool on);
......
......@@ -31,7 +31,7 @@ class PortalMonitor : public QObject
Q_OBJECT
public:
explicit PortalMonitor(QObject *parent);
~PortalMonitor();
~PortalMonitor() override;
private Q_SLOTS:
void connectivityChanged(NetworkManager::Connectivity connectivity);
......
......@@ -70,13 +70,13 @@ class Q_DECL_EXPORT SecretAgent : public NetworkManager::SecretAgent
Q_OBJECT
public:
explicit SecretAgent(QObject* parent = 0);
virtual ~SecretAgent();
~SecretAgent() override;
public Q_SLOTS:
virtual NMVariantMapMap GetSecrets(const NMVariantMapMap&, const QDBusObjectPath&, const QString&, const QStringList&, uint) Q_DECL_OVERRIDE;
virtual void SaveSecrets(const NMVariantMapMap &connection, const QDBusObjectPath &connection_path) Q_DECL_OVERRIDE;
virtual void DeleteSecrets(const NMVariantMapMap &, const QDBusObjectPath &) Q_DECL_OVERRIDE;
virtual void CancelGetSecrets(const QDBusObjectPath &, const QString &) Q_DECL_OVERRIDE;
NMVariantMapMap GetSecrets(const NMVariantMapMap&, const QDBusObjectPath&, const QString&, const QStringList&, uint) override;
void SaveSecrets(const NMVariantMapMap &connection, const QDBusObjectPath &connection_path) override;
void DeleteSecrets(const NMVariantMapMap &, const QDBusObjectPath &) override;
void CancelGetSecrets(const QDBusObjectPath &, const QString &) override;
private Q_SLOTS:
void dialogAccepted();
......
......@@ -38,7 +38,7 @@ Q_OBJECT
Q_DECLARE_PRIVATE(NetworkManagementService)
public:
NetworkManagementService(QObject * parent, const QVariantList&);
virtual ~NetworkManagementService();
~NetworkManagementService() override;
public Q_SLOTS:
Q_SCRIPTABLE void init();
......
......@@ -48,7 +48,7 @@ Q_PROPERTY(bool bluetoothDeviceAvailable READ isBluetoothDeviceAvailable NOTIFY
Q_OBJECT
public:
explicit AvailableDevices(QObject* parent = 0);
virtual ~AvailableDevices();
~AvailableDevices() override;
public Q_SLOTS:
bool isWiredDeviceAvailable() const;
......
......@@ -39,7 +39,7 @@ Q_PROPERTY(bool airplaneMode READ airplaneMode WRITE setAirplaneMode NOTIFY airp
Q_OBJECT
public:
explicit ConnectionIcon(QObject* parent = 0);
virtual ~ConnectionIcon();
~ConnectionIcon() override;
bool connecting() const;
QString connectionIcon() const;
......
......@@ -50,7 +50,7 @@ Q_PROPERTY(bool wwanHwEnabled READ isWwanHwEnabled NOTIFY wwanHwEnabled)
Q_OBJECT
public:
explicit EnabledConnections(QObject* parent = 0);
virtual ~EnabledConnections();
~EnabledConnections() override;
bool isNetworkingEnabled() const;
bool isWirelessEnabled() const;
......
......@@ -32,7 +32,7 @@ Q_ENUMS(SecurityType)
public:
explicit Enums(QObject* parent = 0);
virtual ~Enums();
~Enums() override;
enum ConnectionStatus {
UnknownState = 0,
......
......@@ -53,7 +53,7 @@ public:
static SortedConnectionType connectionTypeToSortedType(NetworkManager::ConnectionSettings::ConnectionType type);
explicit NetworkStatus(QObject* parent = 0);
virtual ~NetworkStatus();
~NetworkStatus() override;
QString activeConnections() const;
QString networkStatus() const;
......
......@@ -28,7 +28,7 @@ class QmlPlugins : public QQmlExtensionPlugin
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
virtual void registerTypes(const char * uri);
void registerTypes(const char * uri) override;
};
#endif // PLASMA_NM_QML_PLUGINS_H
......@@ -36,7 +36,7 @@ public:
explicit ConnectionEditorBase(const NetworkManager::ConnectionSettings::Ptr &connection,
QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
explicit ConnectionEditorBase(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
virtual ~ConnectionEditorBase();
~ConnectionEditorBase() override;
// When reimplementing do not forget to call the base method as well to initialize widgets
virtual void setConnection(const NetworkManager::ConnectionSettings::Ptr &connection);
......
......@@ -33,7 +33,7 @@ Q_OBJECT
public:
explicit ConnectionEditorDialog(const NetworkManager::ConnectionSettings::Ptr &connection,
QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
virtual ~ConnectionEditorDialog();
~ConnectionEditorDialog() override;
NMVariantMapMap setting() const;
......
......@@ -37,7 +37,7 @@ Q_OBJECT
public:
explicit ConnectionEditorTabWidget(const NetworkManager::ConnectionSettings::Ptr &connection,
QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
virtual ~ConnectionEditorTabWidget();
~ConnectionEditorTabWidget() override;
void setConnection(const NetworkManager::ConnectionSettings::Ptr &connection) override;
......
......@@ -34,9 +34,9 @@ class ListValidator : public QValidator
{
public:
ListValidator(QObject *parent);
virtual ~ListValidator();
~ListValidator() override;
virtual State validate(QString &text, int &pos) const;
State validate(QString &text, int &pos) const override;
void setInnerValidator(QValidator *validator);
private:
......
......@@ -41,13 +41,13 @@ class Q_DECL_EXPORT BondWidget : public SettingWidget
public:
explicit BondWidget(const QString & masterUuid, const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(),
QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~BondWidget();
~BondWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private Q_SLOTS:
void addBond(QAction * action);
......
......@@ -41,13 +41,13 @@ class Q_DECL_EXPORT BridgeWidget : public SettingWidget
public:
explicit BridgeWidget(const QString & masterUuid, const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(),
QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~BridgeWidget();
~BridgeWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private Q_SLOTS:
void addBridge(QAction * action);
......
......@@ -37,13 +37,13 @@ class Q_DECL_EXPORT BtWidget : public SettingWidget
Q_OBJECT
public:
explicit BtWidget(const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(), QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~BtWidget();
~BtWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private:
Ui::BtWidget * m_ui;
......
......@@ -37,14 +37,14 @@ class Q_DECL_EXPORT CdmaWidget : public SettingWidget
Q_OBJECT
public:
explicit CdmaWidget(const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(), QWidget *parent = 0, Qt::WindowFlags f = 0);
virtual ~CdmaWidget();
~CdmaWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadSecrets(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
void loadSecrets(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private:
Ui::CdmaWidget *m_ui;
......
......@@ -37,7 +37,7 @@ Q_OBJECT
public:
explicit ConnectionWidget(const NetworkManager::ConnectionSettings::Ptr &settings = NetworkManager::ConnectionSettings::Ptr(),
QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~ConnectionWidget();
~ConnectionWidget() override;
void loadConfig(const NetworkManager::ConnectionSettings::Ptr &settings);
......
......@@ -37,14 +37,14 @@ class Q_DECL_EXPORT GsmWidget : public SettingWidget
Q_OBJECT
public:
explicit GsmWidget(const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(), QWidget *parent = 0, Qt::WindowFlags f = 0);
virtual ~GsmWidget();
~GsmWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadSecrets(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
void loadSecrets(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private:
Ui::GsmWidget *m_ui;
......
......@@ -37,13 +37,13 @@ class Q_DECL_EXPORT InfinibandWidget : public SettingWidget
Q_OBJECT
public:
explicit InfinibandWidget(const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(), QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~InfinibandWidget();
~InfinibandWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private:
Ui::InfinibandWidget * m_ui;
......
......@@ -39,13 +39,13 @@ public:
enum MethodIndex { Automatic = 0, AutomaticOnlyIP, LinkLocal, Manual, Shared, Disabled };
explicit IPv4Widget(const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(), QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~IPv4Widget();
~IPv4Widget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private Q_SLOTS:
void slotModeComboChanged(int index);
......
......@@ -39,13 +39,13 @@ public:
enum MethodIndex { Automatic = 0, AutomaticOnlyIP, AutomaticOnlyDHCP, LinkLocal, Manual, Disabled };
explicit IPv6Widget(const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(), QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~IPv6Widget();
~IPv6Widget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private Q_SLOTS:
void slotModeComboChanged(int index);
......
......@@ -37,14 +37,14 @@ class Q_DECL_EXPORT PppoeWidget : public SettingWidget
Q_OBJECT
public:
explicit PppoeWidget(const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(), QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~PppoeWidget();
~PppoeWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadSecrets(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
void loadSecrets(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private:
Ui::PppoeWidget *m_ui;
......
......@@ -37,11 +37,11 @@ class Q_DECL_EXPORT PPPWidget : public SettingWidget
Q_OBJECT
public:
explicit PPPWidget(const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(), QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~PPPWidget();
~PPPWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
private:
Ui::PPPWidget *m_ui;
......
......@@ -38,14 +38,14 @@ class Q_DECL_EXPORT Security8021x: public SettingWidget
Q_OBJECT
public:
Security8021x(const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(), bool wifiMode = true, QWidget *parent = 0, Qt::WindowFlags f = 0);
virtual ~Security8021x();
~Security8021x() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadSecrets(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
void loadSecrets(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private Q_SLOTS:
void altSubjectMatchesButtonClicked();
......
......@@ -41,13 +41,13 @@ class Q_DECL_EXPORT TeamWidget : public SettingWidget
public:
explicit TeamWidget(const QString & masterUuid, const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(),
QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~TeamWidget();
~TeamWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting);
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const;
QVariantMap setting() const override;
virtual bool isValid() const;
bool isValid() const override;
private Q_SLOTS:
void addTeam(QAction * action);
......
......@@ -36,13 +36,13 @@ Q_OBJECT
public:
explicit VlanWidget(const NetworkManager::Setting::Ptr &setting, QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~VlanWidget();
~VlanWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private:
void fillConnections();
......
......@@ -38,13 +38,13 @@ Q_OBJECT
public:
explicit WifiConnectionWidget(const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(), QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~WifiConnectionWidget();
~WifiConnectionWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
Q_SIGNALS:
void ssidChanged(const QString &ssid);
......
......@@ -45,17 +45,17 @@ public:
explicit WifiSecurity(const NetworkManager::Setting::Ptr &setting = NetworkManager::Setting::Ptr(),
const NetworkManager::Security8021xSetting::Ptr &setting8021x = NetworkManager::Security8021xSetting::Ptr(),
QWidget *parent = 0, Qt::WindowFlags f = 0);
virtual ~WifiSecurity();
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadSecrets(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
~WifiSecurity() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
void loadSecrets(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
QVariantMap setting8021x() const;
bool enabled() const;
bool enabled8021x() const;
virtual bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
public Q_SLOTS:
void onSsidChanged(const QString &ssid);
......
......@@ -36,13 +36,13 @@ Q_OBJECT
public:
explicit WiredConnectionWidget(const NetworkManager::Setting::Ptr &setting, QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~WiredConnectionWidget();
~WiredConnectionWidget() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const Q_DECL_OVERRIDE;
QVariantMap setting() const override;
bool isValid() const Q_DECL_OVERRIDE;
bool isValid() const override;
private Q_SLOTS:
void generateRandomClonedMac();
......
......@@ -38,10 +38,10 @@ class Q_DECL_EXPORT WiredSecurity : public SettingWidget
Q_OBJECT
public:
explicit WiredSecurity(const NetworkManager::Security8021xSetting::Ptr &setting8021x = NetworkManager::Security8021xSetting::Ptr(), QWidget* parent = 0, Qt::WindowFlags f = 0);
virtual ~WiredSecurity();
void loadConfig(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
void loadSecrets(const NetworkManager::Setting::Ptr &setting) Q_DECL_OVERRIDE;
QVariantMap setting() const Q_DECL_OVERRIDE;
~WiredSecurity() override;
void loadConfig(const NetworkManager::Setting::Ptr &setting) override;
void loadSecrets(const NetworkManager::Setting::Ptr &setting) override;
QVariantMap setting() const override;
bool enabled8021x() const;
......
......@@ -27,9 +27,9 @@ class Q_DECL_EXPORT SimpleIpV4AddressValidator : public QValidator
{
public:
explicit SimpleIpV4AddressValidator(QObject *parent);
virtual ~SimpleIpV4AddressValidator();
~SimpleIpV4AddressValidator() override;
virtual State validate(QString &, int &) const;
State validate(QString &, int &) const override;
/** Check input value with a regular expression describing simple input mask.
*/
......
......@@ -27,9 +27,9 @@ class Q_DECL_EXPORT SimpleIpV6AddressValidator : public QValidator
{
public:
explicit SimpleIpV6AddressValidator(QObject *parent);
virtual ~SimpleIpV6AddressValidator();
~SimpleIpV6AddressValidator() override;
virtual State validate(QString &, int &) const;
State validate(QString &, int &) const override;
/** Check input value with a regular expression describing simple input mask.
*/
......
......@@ -42,7 +42,7 @@ public:
enum ErrorType {NoError, NotImplemented, Error};
explicit VpnUiPlugin(QObject * parent = 0, const QVariantList& = QVariantList());
virtual ~VpnUiPlugin();
~VpnUiPlugin() override;
virtual SettingWidget * widget(const NetworkManager::VpnSetting::Ptr &setting, QWidget * parent = 0) = 0;
virtual SettingWidget * askUser(const NetworkManager::VpnSetting::Ptr &setting, QWidget * parent = 0) = 0;
......
......@@ -36,7 +36,7 @@ Q_DECLARE_PRIVATE(AdvancedPermissionsWidget)
public:
explicit AdvancedPermissionsWidget(QWidget *parent=0);
AdvancedPermissionsWidget(const QHash<QString,QString>&, QWidget *parent=0);
~AdvancedPermissionsWidget();
~AdvancedPermissionsWidget() override;
QHash<QString,QString> currentUsers() const;
......
......@@ -29,17 +29,17 @@ class Delegate : public QStyledItemDelegate
Q_OBJECT
public:
explicit Delegate(QObject * parent = 0);
virtual ~Delegate();
~Delegate() override;
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option,
const QModelIndex &index) const Q_DECL_OVERRIDE;
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const Q_DECL_OVERRIDE;
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option,
const QModelIndex &index) const override;
void setEditorData(QWidget *editor, const QModelIndex &index) const override;
virtual void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index) const Q_DECL_OVERRIDE;
void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index) const override;
virtual void updateEditorGeometry(QWidget *editor,
const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
void updateEditorGeometry(QWidget *editor,
const QStyleOptionViewItem &option, const QModelIndex &index) const override;
};