Commit 33658d84 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use override

parent 71fb5097
......@@ -21,14 +21,14 @@ class KDEsuDialog
public:
KDEsuDialog(QByteArray user, QByteArray authUser, bool enableKeep, const QString& icon , bool withIgnoreButton);
~KDEsuDialog();
~KDEsuDialog() override;
enum ResultCodes { AsUser = 10 };
private slots:
void slotUser1();
protected:
bool checkPassword() Q_DECL_OVERRIDE;
bool checkPassword() override;
private:
SuProcess proc;
......
......@@ -46,11 +46,11 @@ class FileTypesView : public KCModule
Q_OBJECT
public:
FileTypesView(QWidget *parent, const QVariantList &args);
~FileTypesView();
~FileTypesView() override;
void load() Q_DECL_OVERRIDE;
void save() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
void load() override;
void save() override;
void defaults() override;
protected Q_SLOTS:
void addType();
......@@ -98,7 +98,8 @@ public:
}
protected:
void drawRow(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE {
void drawRow(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
{
static_cast<TypesListItem *>(itemFromIndex(index))->loadIcon();
QTreeWidget::drawRow(painter, option, index);
......
......@@ -35,12 +35,12 @@ class FileTypeDialog : public QDialog
Q_OBJECT
public:
FileTypeDialog(MimeTypeData* mime);
virtual ~FileTypeDialog();
~FileTypeDialog() override;
void setApplyButtonEnabled(bool);
public Q_SLOTS:
void accept() Q_DECL_OVERRIDE;
void accept() override;
protected Q_SLOTS:
void clientChanged(bool state);
......
......@@ -40,7 +40,7 @@ public:
const QString& value = QString(),
QWidget *parent = 0L );
~KServiceSelectDlg();
~KServiceSelectDlg() override;
/**
* @return the chosen service
......
......@@ -46,7 +46,7 @@ public:
*/
TypesListItem(TypesListItem *parent, const QString& newMimetype);
~TypesListItem();
~TypesListItem() override;
void setIcon( const QString& icon );
......
......@@ -32,7 +32,7 @@ class KStart: public QObject {
public:
KStart();
~KStart(){}
~KStart() override {}
public Q_SLOTS:
void windowAdded(WId);
......
Supports Markdown
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