Commit 0c4ed315 authored by Laurent Montel's avatar Laurent Montel 😁

Use override keyword

parent 2f299ee1
......@@ -43,7 +43,7 @@ class App : public QGuiApplication {
public:
typedef QPair< uint, uint > TriggerKey;
App(int &argc, char* argv[]);
virtual ~App();
~App() override;
void setTriggerKeys(QList< TriggerKey > triggersList);
void setDoGrab(bool doGrab);
bool keyboardGrabbed() { return m_keyboardGrabbed; }
......
......@@ -30,7 +30,7 @@
class EngineManager {
public:
EngineManager();
virtual ~EngineManager();
~EngineManager() override;
void setEngines(IBusEngineDesc** engines);
IBusEngineDesc** engines() { return m_engines; }
......
......@@ -25,7 +25,7 @@
class PropertyManager {
public:
PropertyManager();
virtual ~PropertyManager();
~PropertyManager() override;
void setProperties(IBusPropList* props);
void updateProperty(IBusProperty* prop);
......
......@@ -64,7 +64,7 @@ public:
};
explicit PagerModel(QObject *parent = nullptr);
virtual ~PagerModel();
~PagerModel() override;
QHash<int, QByteArray> roleNames() const override;
......
......@@ -36,7 +36,7 @@ public:
};
explicit WindowModel(PagerModel *parent);
virtual ~WindowModel();
~WindowModel() override;
QHash<int, QByteArray> roleNames() const override;
......
......@@ -51,7 +51,7 @@ class Backend : public QObject, protected QDBusContext
public:
explicit Backend(QObject *parent = nullptr);
virtual ~Backend();
~Backend() override;
bool available() const;
bool hasLauncher(const QString &storageId) const;
......
......@@ -56,7 +56,7 @@ public:
};
explicit DirModel(QObject* parent=nullptr);
virtual ~DirModel();
~DirModel() override;
QHash<int, QByteArray> roleNames() const override;
......
......@@ -47,7 +47,7 @@ class KdePlatformDependent : public QObject, public Attica::PlatformDependent
public:
KdePlatformDependent();
virtual ~KdePlatformDependent();
~KdePlatformDependent() override;
QList<QUrl> getDefaultProviderFiles() const override;
void addDefaultProviderFile(const QUrl& url) override;
void removeDefaultProviderFile(const QUrl& url) override;
......
......@@ -37,7 +37,7 @@ class PanelAgent: public QObject, protected QDBusContext
public:
PanelAgent(QObject *parent);
virtual ~PanelAgent();
~PanelAgent() override;
void configure();
void created();
......
......@@ -40,7 +40,7 @@ class SortedActivitiesModel : public QSortFilterProxyModel {
public:
SortedActivitiesModel(const QVector<KActivities::Info::State> &states, QObject *parent = nullptr);
virtual ~SortedActivitiesModel();
~SortedActivitiesModel() override;
QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const override;
......
......@@ -33,7 +33,7 @@ class KAccessConfig : public KCModule
public:
KAccessConfig(QWidget *parent, const QVariantList&);
virtual ~KAccessConfig();
~KAccessConfig() override;
void load() override;
void save() override;
......
......@@ -36,7 +36,7 @@ class PreviewWidget : public QFrame, Ui::preview
public:
PreviewWidget(QWidget *parent);
virtual ~PreviewWidget();
~PreviewWidget() override;
void setPalette(const KSharedConfigPtr &config,
QPalette::ColorGroup state = QPalette::Active);
......
......@@ -37,7 +37,7 @@ class SetPreviewWidget : public QFrame, Ui::setpreview
public:
SetPreviewWidget(QWidget *parent);
virtual ~SetPreviewWidget();
~SetPreviewWidget() override;
void setPalette(const KSharedConfigPtr &config, KColorScheme::ColorSet);
......
......@@ -46,7 +46,7 @@ class CfgComponent: public QWidget, public Ui::ComponentConfig_UI, public CfgPlu
Q_OBJECT
public:
CfgComponent(QWidget *parent);
virtual ~CfgComponent();
~CfgComponent() override;
void load(KConfig *cfg) override;
void save(KConfig *cfg) override;
void defaults() override;
......@@ -67,7 +67,7 @@ Q_OBJECT
public:
ComponentChooser(QWidget *parent=0);
virtual ~ComponentChooser();
~ComponentChooser() override;
void load();
void save();
void restoreDefault();
......
......@@ -24,7 +24,7 @@ class CfgBrowser: public QWidget, public Ui::BrowserConfig_UI, public CfgPlugin
Q_OBJECT
public:
CfgBrowser(QWidget *parent);
virtual ~CfgBrowser();
~CfgBrowser() override;
void load(KConfig *cfg) override;
void save(KConfig *cfg) override;
void defaults() override;
......
......@@ -26,7 +26,7 @@ class CfgEmailClient: public QWidget, public Ui::EmailClientConfig_UI, public Cf
Q_OBJECT
public:
CfgEmailClient(QWidget *parent);
virtual ~CfgEmailClient();
~CfgEmailClient() override;
void load(KConfig *cfg) override;
void save(KConfig *cfg) override;
void defaults() override;
......
......@@ -29,7 +29,7 @@ class CfgFileManager: public QWidget, public Ui::FileManagerConfig_UI, public Cf
Q_OBJECT
public:
CfgFileManager(QWidget *parent);
virtual ~CfgFileManager();
~CfgFileManager() override;
void load(KConfig *cfg) override;
void save(KConfig *cfg) override;
void defaults() override;
......
......@@ -26,7 +26,7 @@ class CfgTerminalEmulator: public QWidget, public Ui::TerminalEmulatorConfig_UI,
Q_OBJECT
public:
CfgTerminalEmulator(QWidget *parent);
virtual ~CfgTerminalEmulator();
~CfgTerminalEmulator() override;
void load(KConfig *cfg) override;
void save(KConfig *cfg) override;
void defaults() override;
......
......@@ -37,7 +37,7 @@ class IconThemesConfig : public KCModule
public:
IconThemesConfig(QWidget *parent);
virtual ~IconThemesConfig();
~IconThemesConfig() override;
void loadThemes();
bool installThemes(const QStringList &themes, const QString &archiveName);
......
......@@ -30,7 +30,7 @@ template <typename T> class QList;
class KeyboardLayoutActionCollection : public KActionCollection {
public:
KeyboardLayoutActionCollection(QObject* parent, bool configAction);
virtual ~KeyboardLayoutActionCollection();
~KeyboardLayoutActionCollection() override;
QAction* getToggleAction();
// KAction* getAction(const LayoutUnit& layoutUnit);
......
......@@ -40,7 +40,7 @@ class Flags : public QObject
public:
Flags();
virtual ~Flags();
~Flags() override;
const QIcon getIcon(const QString& layout);
const QIcon getIconWithText(const LayoutUnit& layoutUnit, const KeyboardConfig& keyboardConfig);
......
......@@ -32,7 +32,7 @@ Q_OBJECT
public:
KCMKeyboard(QWidget *parent, const QVariantList &);
virtual ~KCMKeyboard();
~KCMKeyboard() override;
void save() override;
void load() override;
......
......@@ -43,7 +43,7 @@ class KCMKeyboardWidget: public QTabWidget
public:
KCMKeyboardWidget(Rules* rules, KeyboardConfig* keyboardConfig,
const QVariantList &args, QWidget* parent=0);
virtual ~KCMKeyboardWidget();
~KCMKeyboardWidget() override;
void updateUI();
void save();
......
......@@ -71,7 +71,7 @@ Q_SIGNALS:
public:
KeyboardDaemon(QObject *parent, const QList<QVariant>&);
virtual ~KeyboardDaemon();
~KeyboardDaemon() override;
};
#endif /* KEYBOARD_DAEMON_H_ */
......@@ -52,7 +52,7 @@ public Q_SLOTS:
public:
LayoutMemory(const KeyboardConfig& keyboardConfig);
virtual ~LayoutMemory();
~LayoutMemory() override;
void configChanged();
......
......@@ -35,7 +35,7 @@ class LayoutsMenu : public QObject
public:
LayoutsMenu(const KeyboardConfig& keyboardConfig, const Rules& rules, Flags& flags);
virtual ~LayoutsMenu();
~LayoutsMenu() override;
QList<QAction*> contextualActions();
static int switchToLayout(const LayoutUnit& layoutUnit, const KeyboardConfig& keyboardConfig);
......
......@@ -64,7 +64,7 @@ protected:
public:
explicit KbPreviewFrame(QWidget *parent = 0);
virtual ~KbPreviewFrame();
~KbPreviewFrame() override;
void paintEvent(QPaintEvent *event) override;
void generateKeyboardLayout(const QString &layout, const QString &layoutVariant, const QString &model);
int getWidth() const;
......
......@@ -35,7 +35,7 @@ public:
ExportSchemeDialog (QStringList components, QWidget *parent=NULL);
virtual ~ExportSchemeDialog();
~ExportSchemeDialog() override;
// Get the list of currently selected components
QStringList selectedComponents() const;
......
......@@ -196,7 +196,7 @@ class CFamilyItem : public CFontModelItem
};
CFamilyItem(CFontList &p, const Family &f, bool sys);
virtual ~CFamilyItem();
~CFamilyItem() override;
bool operator==(const CFamilyItem &other) const { return itsName==other.itsName; }
......
......@@ -62,7 +62,7 @@ class CKCmFontInst : public KCModule
public:
explicit CKCmFontInst(QWidget *parent=NULL, const QVariantList &list=QVariantList());
virtual ~CKCmFontInst();
~CKCmFontInst() override;
public Q_SLOTS:
......
......@@ -41,7 +41,7 @@ class FontInstInterface : public QObject
public:
FontInstInterface();
virtual ~FontInstInterface();
~FontInstInterface() override;
int install(const QString &file, bool toSystem);
int uninstall(const QString &name, bool fromSystem);
......
......@@ -51,7 +51,7 @@ class CKioFonts : public KIO::SlaveBase
};
CKioFonts(const QByteArray &pool, const QByteArray &app);
virtual ~CKioFonts();
~CKioFonts() override;
void listDir(const QUrl &url) override;
void put(const QUrl &url, int permissions, KIO::JobFlags flags) override;
......
......@@ -46,7 +46,7 @@ class CFontPreview : public QWidget
public:
CFontPreview(QWidget *parent);
virtual ~CFontPreview();
~CFontPreview() override;
void paintEvent(QPaintEvent *) override;
void mouseMoveEvent(QMouseEvent *event) override;
......
......@@ -55,7 +55,7 @@ class CFontViewPart : public KParts::ReadOnlyPart
public:
CFontViewPart(QWidget *parentWidget, QObject *parent, const QList<QVariant> &args);
virtual ~CFontViewPart();
~CFontViewPart() override;
bool openUrl(const QUrl &url) override;
......
......@@ -36,7 +36,7 @@ class KCMKNotify : public KCModule
public:
KCMKNotify(QWidget *parent, const QVariantList &);
virtual ~KCMKNotify();
~KCMKNotify() override;
void defaults() override;
void save() override;
......
......@@ -33,7 +33,7 @@ class LaunchFeedback : public KQuickAddons::ConfigModule
public:
explicit LaunchFeedback(QObject* parent = 0, const QVariantList &list = QVariantList());
virtual ~LaunchFeedback();
~LaunchFeedback() override;
int busyCursorCurrentIndex() const;
void setBusyCursorCurrentIndex(int index);
......
......@@ -40,7 +40,7 @@ class DevicePreference : public QWidget, private Ui::DevicePreference
Q_OBJECT
public:
explicit DevicePreference(QWidget *parent = 0);
virtual ~DevicePreference();
~DevicePreference() override;
void load();
void save();
......
......@@ -104,7 +104,7 @@ class KWinWaylandTouchpad : public QObject
public:
KWinWaylandTouchpad(QString dbusName);
virtual ~KWinWaylandTouchpad();
~KWinWaylandTouchpad() override;
bool init();
......
......@@ -53,7 +53,7 @@ class TouchpadConfigXlib : public TouchpadConfigPlugin
public:
explicit TouchpadConfigXlib(TouchpadConfigContainer *parent,
const QVariantList &args = QVariantList());
virtual ~TouchpadConfigXlib();
~TouchpadConfigXlib() override;
static void kcmInit();
......
......@@ -45,7 +45,7 @@ class KCMTranslations : public KCModule
public:
KCMTranslations(QWidget *parent, const QVariantList &);
virtual ~KCMTranslations();
~KCMTranslations() override;
void load() override;
void save() override;
......
......@@ -35,7 +35,7 @@ class DeviceAutomounterKCM : public KCModule, public Ui::DeviceAutomounterKCM
public:
explicit DeviceAutomounterKCM(QWidget *parent = nullptr, const QVariantList &args = QVariantList());
virtual ~DeviceAutomounterKCM();
~DeviceAutomounterKCM() override;
public slots:
void load() override;
......
......@@ -28,7 +28,7 @@ class DeviceAutomounter : public KDEDModule
Q_OBJECT
public:
explicit DeviceAutomounter(QObject *parent = nullptr, const QVariantList &args = QVariantList());
virtual ~DeviceAutomounter();
~DeviceAutomounter() override;
private slots:
void init();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment