mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Modernize: Use override where possible
Also use override instead of Q_DECL_OVERRIDE
This commit is contained in:
parent
5bee1889e1
commit
464b13f382
|
@ -74,7 +74,7 @@ public:
|
|||
const KFileItem& fileInfo,
|
||||
const QUrl& baseUrl);
|
||||
|
||||
virtual ~DolphinContextMenu();
|
||||
~DolphinContextMenu() override;
|
||||
|
||||
void setCustomActions(const QList<QAction*>& actions);
|
||||
|
||||
|
@ -89,8 +89,8 @@ public:
|
|||
Command open();
|
||||
|
||||
protected:
|
||||
virtual void keyPressEvent(QKeyEvent *ev) Q_DECL_OVERRIDE;
|
||||
virtual void keyReleaseEvent(QKeyEvent *ev) Q_DECL_OVERRIDE;
|
||||
void keyPressEvent(QKeyEvent *ev) override;
|
||||
void keyReleaseEvent(QKeyEvent *ev) override;
|
||||
|
||||
private:
|
||||
void openTrashContextMenu();
|
||||
|
|
|
@ -36,15 +36,15 @@ class DolphinDockTitleBar : public QWidget
|
|||
|
||||
public:
|
||||
explicit DolphinDockTitleBar(QWidget* parent = nullptr) : QWidget(parent) {}
|
||||
virtual ~DolphinDockTitleBar() {}
|
||||
~DolphinDockTitleBar() override {}
|
||||
|
||||
QSize minimumSizeHint() const Q_DECL_OVERRIDE
|
||||
QSize minimumSizeHint() const override
|
||||
{
|
||||
const int border = style()->pixelMetric(QStyle::PM_DockWidgetTitleBarButtonMargin);
|
||||
return QSize(border, border);
|
||||
}
|
||||
|
||||
QSize sizeHint() const Q_DECL_OVERRIDE
|
||||
QSize sizeHint() const override
|
||||
{
|
||||
return minimumSizeHint();
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ class DolphinDockWidget : public QDockWidget
|
|||
public:
|
||||
explicit DolphinDockWidget(const QString& title, QWidget* parent = 0, Qt::WindowFlags flags = 0);
|
||||
explicit DolphinDockWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0);
|
||||
virtual ~DolphinDockWidget();
|
||||
~DolphinDockWidget() override;
|
||||
|
||||
/**
|
||||
* @param lock If \a lock is true, the title bar of the dock-widget will get hidden so
|
||||
|
|
|
@ -64,7 +64,7 @@ class DolphinMainWindow: public KXmlGuiWindow
|
|||
|
||||
public:
|
||||
DolphinMainWindow();
|
||||
virtual ~DolphinMainWindow();
|
||||
~DolphinMainWindow() override;
|
||||
|
||||
/**
|
||||
* Returns the currently active view.
|
||||
|
@ -152,16 +152,16 @@ signals:
|
|||
|
||||
protected:
|
||||
/** @see QWidget::showEvent() */
|
||||
virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
|
||||
/** @see QMainWindow::closeEvent() */
|
||||
virtual void closeEvent(QCloseEvent* event) Q_DECL_OVERRIDE;
|
||||
void closeEvent(QCloseEvent* event) override;
|
||||
|
||||
/** @see KMainWindow::saveProperties() */
|
||||
virtual void saveProperties(KConfigGroup& group) Q_DECL_OVERRIDE;
|
||||
void saveProperties(KConfigGroup& group) override;
|
||||
|
||||
/** @see KMainWindow::readProperties() */
|
||||
virtual void readProperties(const KConfigGroup& group) Q_DECL_OVERRIDE;
|
||||
void readProperties(const KConfigGroup& group) override;
|
||||
|
||||
private slots:
|
||||
/**
|
||||
|
@ -499,8 +499,8 @@ private:
|
|||
{
|
||||
public:
|
||||
UndoUiInterface();
|
||||
virtual ~UndoUiInterface();
|
||||
virtual void jobError(KIO::Job* job) Q_DECL_OVERRIDE;
|
||||
~UndoUiInterface() override;
|
||||
void jobError(KIO::Job* job) override;
|
||||
};
|
||||
|
||||
KNewFileMenu* m_newFileMenu;
|
||||
|
|
|
@ -41,14 +41,14 @@ class DOLPHIN_EXPORT DolphinNewFileMenu : public KNewFileMenu
|
|||
|
||||
public:
|
||||
DolphinNewFileMenu(KActionCollection* collection, QObject* parent);
|
||||
virtual ~DolphinNewFileMenu();
|
||||
~DolphinNewFileMenu() override;
|
||||
|
||||
signals:
|
||||
void errorMessage(const QString& error);
|
||||
|
||||
protected slots:
|
||||
/** @see KNewFileMenu::slotResult() */
|
||||
virtual void slotResult(KJob* job) Q_DECL_OVERRIDE;
|
||||
void slotResult(KJob* job) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -54,7 +54,7 @@ class DolphinPart : public KParts::ReadOnlyPart
|
|||
|
||||
public:
|
||||
explicit DolphinPart(QWidget* parentWidget, QObject* parent, const QVariantList& args);
|
||||
~DolphinPart();
|
||||
~DolphinPart() override;
|
||||
|
||||
static KAboutData* createAboutData();
|
||||
|
||||
|
@ -62,7 +62,7 @@ public:
|
|||
* Standard KParts::ReadOnlyPart openUrl method.
|
||||
* Called by Konqueror to view a directory in DolphinPart.
|
||||
*/
|
||||
virtual bool openUrl(const QUrl& url) Q_DECL_OVERRIDE;
|
||||
bool openUrl(const QUrl& url) override;
|
||||
|
||||
/// see the supportsUndo property
|
||||
bool supportsUndo() const { return true; }
|
||||
|
@ -98,7 +98,7 @@ protected:
|
|||
/**
|
||||
* We reimplement openUrl so no need to implement openFile.
|
||||
*/
|
||||
virtual bool openFile() override { return true; }
|
||||
bool openFile() override { return true; }
|
||||
|
||||
Q_SIGNALS:
|
||||
/**
|
||||
|
@ -223,7 +223,7 @@ private Q_SLOTS:
|
|||
void setFilesToSelect(const QList<QUrl> &files);
|
||||
QList<QUrl> filesToSelect() const { return QList<QUrl>(); } // silence moc
|
||||
|
||||
virtual bool eventFilter(QObject*, QEvent*) Q_DECL_OVERRIDE;
|
||||
bool eventFilter(QObject*, QEvent*) override;
|
||||
|
||||
private:
|
||||
void createActions();
|
||||
|
|
|
@ -33,8 +33,8 @@ class DolphinPartBrowserExtension : public KParts::BrowserExtension
|
|||
Q_OBJECT
|
||||
public:
|
||||
DolphinPartBrowserExtension( DolphinPart* part );
|
||||
virtual void restoreState(QDataStream &stream) Q_DECL_OVERRIDE;
|
||||
virtual void saveState(QDataStream &stream) Q_DECL_OVERRIDE;
|
||||
void restoreState(QDataStream &stream) override;
|
||||
void saveState(QDataStream &stream) override;
|
||||
|
||||
public Q_SLOTS:
|
||||
void cut();
|
||||
|
@ -54,10 +54,10 @@ class DolphinPartFileInfoExtension : public KParts::FileInfoExtension
|
|||
public:
|
||||
DolphinPartFileInfoExtension(DolphinPart* part);
|
||||
|
||||
virtual QueryModes supportedQueryModes() const Q_DECL_OVERRIDE;
|
||||
virtual bool hasSelection() const Q_DECL_OVERRIDE;
|
||||
QueryModes supportedQueryModes() const override;
|
||||
bool hasSelection() const override;
|
||||
|
||||
virtual KFileItemList queryFor(QueryMode mode) const Q_DECL_OVERRIDE;
|
||||
KFileItemList queryFor(QueryMode mode) const override;
|
||||
|
||||
private:
|
||||
DolphinPart* m_part;
|
||||
|
@ -69,10 +69,10 @@ class DolphinPartListingFilterExtension : public KParts::ListingFilterExtension
|
|||
|
||||
public:
|
||||
DolphinPartListingFilterExtension(DolphinPart* part);
|
||||
virtual FilterModes supportedFilterModes() const Q_DECL_OVERRIDE;
|
||||
virtual bool supportsMultipleFilters(FilterMode mode) const Q_DECL_OVERRIDE;
|
||||
virtual QVariant filter(FilterMode mode) const Q_DECL_OVERRIDE;
|
||||
virtual void setFilter(FilterMode mode, const QVariant& filter) Q_DECL_OVERRIDE;
|
||||
FilterModes supportedFilterModes() const override;
|
||||
bool supportsMultipleFilters(FilterMode mode) const override;
|
||||
QVariant filter(FilterMode mode) const override;
|
||||
void setFilter(FilterMode mode, const QVariant& filter) override;
|
||||
|
||||
private:
|
||||
DolphinPart* m_part;
|
||||
|
@ -84,7 +84,7 @@ class DolphinPartListingNotificationExtension : public KParts::ListingNotificati
|
|||
|
||||
public:
|
||||
DolphinPartListingNotificationExtension(DolphinPart* part);
|
||||
virtual NotificationEventTypes supportedNotificationEventTypes() const Q_DECL_OVERRIDE;
|
||||
NotificationEventTypes supportedNotificationEventTypes() const override;
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotNewItems(const KFileItemList&);
|
||||
|
|
|
@ -35,18 +35,18 @@ signals:
|
|||
void tabDetachRequested(int index);
|
||||
|
||||
protected:
|
||||
virtual void dragEnterEvent(QDragEnterEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void dragLeaveEvent(QDragLeaveEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void dragMoveEvent(QDragMoveEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void dropEvent(QDropEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void mousePressEvent(QMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void mouseReleaseEvent(QMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void mouseDoubleClickEvent(QMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
void dragEnterEvent(QDragEnterEvent* event) override;
|
||||
void dragLeaveEvent(QDragLeaveEvent* event) override;
|
||||
void dragMoveEvent(QDragMoveEvent* event) override;
|
||||
void dropEvent(QDropEvent* event) override;
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
void mouseDoubleClickEvent(QMouseEvent* event) override;
|
||||
|
||||
/**
|
||||
* Opens a context menu for the tab on the \a event position.
|
||||
*/
|
||||
virtual void contextMenuEvent(QContextMenuEvent* event) Q_DECL_OVERRIDE;
|
||||
void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
|
||||
private slots:
|
||||
void slotAutoActivationTimeout();
|
||||
|
|
|
@ -174,8 +174,8 @@ private slots:
|
|||
void currentTabChanged(int index);
|
||||
|
||||
protected:
|
||||
virtual void tabInserted(int index) Q_DECL_OVERRIDE;
|
||||
virtual void tabRemoved(int index) Q_DECL_OVERRIDE;
|
||||
void tabInserted(int index) override;
|
||||
void tabRemoved(int index) override;
|
||||
|
||||
private:
|
||||
/**
|
||||
|
|
|
@ -70,7 +70,7 @@ public:
|
|||
};
|
||||
|
||||
DolphinViewContainer(const QUrl& url, QWidget* parent);
|
||||
virtual ~DolphinViewContainer();
|
||||
~DolphinViewContainer() override;
|
||||
|
||||
/**
|
||||
* Returns the current active URL, where all actions are applied.
|
||||
|
|
|
@ -38,7 +38,7 @@ class FilterBar : public QWidget
|
|||
|
||||
public:
|
||||
explicit FilterBar(QWidget* parent = 0);
|
||||
virtual ~FilterBar();
|
||||
~FilterBar() override;
|
||||
|
||||
/** Called by view container to hide this **/
|
||||
void closeFilterBar();
|
||||
|
@ -74,8 +74,8 @@ signals:
|
|||
void focusViewRequest();
|
||||
|
||||
protected:
|
||||
virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void keyReleaseEvent(QKeyEvent* event) Q_DECL_OVERRIDE;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
void keyReleaseEvent(QKeyEvent* event) override;
|
||||
|
||||
private:
|
||||
QLineEdit* m_filterInput;
|
||||
|
|
|
@ -42,7 +42,7 @@ class DOLPHIN_EXPORT KFileItemListView : public KStandardItemListView
|
|||
|
||||
public:
|
||||
KFileItemListView(QGraphicsWidget* parent = 0);
|
||||
virtual ~KFileItemListView();
|
||||
~KFileItemListView() override;
|
||||
|
||||
void setPreviewsShown(bool show);
|
||||
bool previewsShown() const;
|
||||
|
@ -72,27 +72,27 @@ public:
|
|||
*/
|
||||
QStringList enabledPlugins() const;
|
||||
|
||||
virtual QPixmap createDragPixmap(const KItemSet& indexes) const Q_DECL_OVERRIDE;
|
||||
QPixmap createDragPixmap(const KItemSet& indexes) const override;
|
||||
|
||||
protected:
|
||||
virtual KItemListWidgetCreatorBase* defaultWidgetCreator() const Q_DECL_OVERRIDE;
|
||||
virtual void initializeItemListWidget(KItemListWidget* item) Q_DECL_OVERRIDE;
|
||||
KItemListWidgetCreatorBase* defaultWidgetCreator() const override;
|
||||
void initializeItemListWidget(KItemListWidget* item) override;
|
||||
virtual void onPreviewsShownChanged(bool shown);
|
||||
virtual void onItemLayoutChanged(ItemLayout current, ItemLayout previous) Q_DECL_OVERRIDE;
|
||||
virtual void onModelChanged(KItemModelBase* current, KItemModelBase* previous) Q_DECL_OVERRIDE;
|
||||
virtual void onScrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous) Q_DECL_OVERRIDE;
|
||||
virtual void onItemSizeChanged(const QSizeF& current, const QSizeF& previous) Q_DECL_OVERRIDE;
|
||||
virtual void onScrollOffsetChanged(qreal current, qreal previous) Q_DECL_OVERRIDE;
|
||||
virtual void onVisibleRolesChanged(const QList<QByteArray>& current, const QList<QByteArray>& previous) Q_DECL_OVERRIDE;
|
||||
virtual void onStyleOptionChanged(const KItemListStyleOption& current, const KItemListStyleOption& previous) Q_DECL_OVERRIDE;
|
||||
virtual void onSupportsItemExpandingChanged(bool supportsExpanding) Q_DECL_OVERRIDE;
|
||||
virtual void onTransactionBegin() Q_DECL_OVERRIDE;
|
||||
virtual void onTransactionEnd() Q_DECL_OVERRIDE;
|
||||
virtual void resizeEvent(QGraphicsSceneResizeEvent* event) Q_DECL_OVERRIDE;
|
||||
void onItemLayoutChanged(ItemLayout current, ItemLayout previous) override;
|
||||
void onModelChanged(KItemModelBase* current, KItemModelBase* previous) override;
|
||||
void onScrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous) override;
|
||||
void onItemSizeChanged(const QSizeF& current, const QSizeF& previous) override;
|
||||
void onScrollOffsetChanged(qreal current, qreal previous) override;
|
||||
void onVisibleRolesChanged(const QList<QByteArray>& current, const QList<QByteArray>& previous) override;
|
||||
void onStyleOptionChanged(const KItemListStyleOption& current, const KItemListStyleOption& previous) override;
|
||||
void onSupportsItemExpandingChanged(bool supportsExpanding) override;
|
||||
void onTransactionBegin() override;
|
||||
void onTransactionEnd() override;
|
||||
void resizeEvent(QGraphicsSceneResizeEvent* event) override;
|
||||
|
||||
protected slots:
|
||||
virtual void slotItemsRemoved(const KItemRangeList& itemRanges) Q_DECL_OVERRIDE;
|
||||
virtual void slotSortRoleChanged(const QByteArray& current, const QByteArray& previous) Q_DECL_OVERRIDE;
|
||||
void slotItemsRemoved(const KItemRangeList& itemRanges) override;
|
||||
void slotSortRoleChanged(const QByteArray& current, const QByteArray& previous) override;
|
||||
|
||||
private slots:
|
||||
void triggerVisibleIndexRangeUpdate();
|
||||
|
|
|
@ -28,13 +28,13 @@ class DOLPHIN_EXPORT KFileItemListWidgetInformant : public KStandardItemListWidg
|
|||
{
|
||||
public:
|
||||
KFileItemListWidgetInformant();
|
||||
virtual ~KFileItemListWidgetInformant();
|
||||
~KFileItemListWidgetInformant() override;
|
||||
|
||||
protected:
|
||||
virtual QString itemText(int index, const KItemListView* view) const Q_DECL_OVERRIDE;
|
||||
virtual bool itemIsLink(int index, const KItemListView* view) const Q_DECL_OVERRIDE;
|
||||
virtual QString roleText(const QByteArray& role, const QHash<QByteArray, QVariant>& values) const Q_DECL_OVERRIDE;
|
||||
virtual QFont customizedFontForLinks(const QFont& baseFont) const Q_DECL_OVERRIDE;
|
||||
QString itemText(int index, const KItemListView* view) const override;
|
||||
bool itemIsLink(int index, const KItemListView* view) const override;
|
||||
QString roleText(const QByteArray& role, const QHash<QByteArray, QVariant>& values) const override;
|
||||
QFont customizedFontForLinks(const QFont& baseFont) const override;
|
||||
};
|
||||
|
||||
class DOLPHIN_EXPORT KFileItemListWidget : public KStandardItemListWidget
|
||||
|
@ -43,19 +43,19 @@ class DOLPHIN_EXPORT KFileItemListWidget : public KStandardItemListWidget
|
|||
|
||||
public:
|
||||
KFileItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent);
|
||||
virtual ~KFileItemListWidget();
|
||||
~KFileItemListWidget() override;
|
||||
|
||||
static KItemListWidgetInformant* createInformant();
|
||||
|
||||
protected:
|
||||
virtual bool isRoleRightAligned(const QByteArray& role) const Q_DECL_OVERRIDE;
|
||||
virtual bool isHidden() const Q_DECL_OVERRIDE;
|
||||
virtual QFont customizedFont(const QFont& baseFont) const Q_DECL_OVERRIDE;
|
||||
bool isRoleRightAligned(const QByteArray& role) const override;
|
||||
bool isHidden() const override;
|
||||
QFont customizedFont(const QFont& baseFont) const override;
|
||||
|
||||
/**
|
||||
* @return Selection length without MIME-type extension
|
||||
*/
|
||||
virtual int selectionLength(const QString& text) const Q_DECL_OVERRIDE;
|
||||
int selectionLength(const QString& text) const override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -51,7 +51,7 @@ class DOLPHIN_EXPORT KFileItemModel : public KItemModelBase
|
|||
|
||||
public:
|
||||
explicit KFileItemModel(QObject* parent = 0);
|
||||
virtual ~KFileItemModel();
|
||||
~KFileItemModel() override;
|
||||
|
||||
/**
|
||||
* Loads the directory specified by \a url. The signals
|
||||
|
@ -73,7 +73,7 @@ public:
|
|||
* the root-parent of all items.
|
||||
* @see rootItem()
|
||||
*/
|
||||
QUrl directory() const Q_DECL_OVERRIDE;
|
||||
QUrl directory() const override;
|
||||
|
||||
/**
|
||||
* Cancels the loading of a directory which has been started by either
|
||||
|
@ -81,9 +81,9 @@ public:
|
|||
*/
|
||||
void cancelDirectoryLoading();
|
||||
|
||||
virtual int count() const Q_DECL_OVERRIDE;
|
||||
virtual QHash<QByteArray, QVariant> data(int index) const Q_DECL_OVERRIDE;
|
||||
virtual bool setData(int index, const QHash<QByteArray, QVariant>& values) Q_DECL_OVERRIDE;
|
||||
int count() const override;
|
||||
QHash<QByteArray, QVariant> data(int index) const override;
|
||||
bool setData(int index, const QHash<QByteArray, QVariant>& values) override;
|
||||
|
||||
/**
|
||||
* Sets a separate sorting with directories first (true) or a mixed
|
||||
|
@ -102,15 +102,15 @@ public:
|
|||
void setShowDirectoriesOnly(bool enabled);
|
||||
bool showDirectoriesOnly() const;
|
||||
|
||||
virtual QMimeData* createMimeData(const KItemSet& indexes) const Q_DECL_OVERRIDE;
|
||||
QMimeData* createMimeData(const KItemSet& indexes) const override;
|
||||
|
||||
virtual int indexForKeyboardSearch(const QString& text, int startFromIndex = 0) const Q_DECL_OVERRIDE;
|
||||
int indexForKeyboardSearch(const QString& text, int startFromIndex = 0) const override;
|
||||
|
||||
virtual bool supportsDropping(int index) const Q_DECL_OVERRIDE;
|
||||
bool supportsDropping(int index) const override;
|
||||
|
||||
virtual QString roleDescription(const QByteArray& role) const Q_DECL_OVERRIDE;
|
||||
QString roleDescription(const QByteArray& role) const override;
|
||||
|
||||
virtual QList<QPair<int, QVariant> > groups() const Q_DECL_OVERRIDE;
|
||||
QList<QPair<int, QVariant> > groups() const override;
|
||||
|
||||
/**
|
||||
* @return The file-item for the index \a index. If the index is in a valid
|
||||
|
@ -156,10 +156,10 @@ public:
|
|||
void setRoles(const QSet<QByteArray>& roles);
|
||||
QSet<QByteArray> roles() const;
|
||||
|
||||
virtual bool setExpanded(int index, bool expanded) Q_DECL_OVERRIDE;
|
||||
virtual bool isExpanded(int index) const Q_DECL_OVERRIDE;
|
||||
virtual bool isExpandable(int index) const Q_DECL_OVERRIDE;
|
||||
virtual int expandedParentsCount(int index) const Q_DECL_OVERRIDE;
|
||||
bool setExpanded(int index, bool expanded) override;
|
||||
bool isExpanded(int index) const override;
|
||||
bool isExpandable(int index) const override;
|
||||
int expandedParentsCount(int index) const override;
|
||||
|
||||
QSet<QUrl> expandedDirectories() const;
|
||||
|
||||
|
@ -258,9 +258,9 @@ signals:
|
|||
void urlIsFileError(const QUrl& url);
|
||||
|
||||
protected:
|
||||
virtual void onGroupedSortingChanged(bool current) Q_DECL_OVERRIDE;
|
||||
virtual void onSortRoleChanged(const QByteArray& current, const QByteArray& previous) Q_DECL_OVERRIDE;
|
||||
virtual void onSortOrderChanged(Qt::SortOrder current, Qt::SortOrder previous) Q_DECL_OVERRIDE;
|
||||
void onGroupedSortingChanged(bool current) override;
|
||||
void onSortRoleChanged(const QByteArray& current, const QByteArray& previous) override;
|
||||
void onSortOrderChanged(Qt::SortOrder current, Qt::SortOrder previous) override;
|
||||
|
||||
private slots:
|
||||
/**
|
||||
|
|
|
@ -95,7 +95,7 @@ class DOLPHIN_EXPORT KFileItemModelRolesUpdater : public QObject
|
|||
|
||||
public:
|
||||
explicit KFileItemModelRolesUpdater(KFileItemModel* model, QObject* parent = 0);
|
||||
virtual ~KFileItemModelRolesUpdater();
|
||||
~KFileItemModelRolesUpdater() override;
|
||||
|
||||
void setIconSize(const QSize& size);
|
||||
QSize iconSize() const;
|
||||
|
|
|
@ -48,7 +48,7 @@ class KItemListContainerViewport : public QGraphicsView
|
|||
public:
|
||||
KItemListContainerViewport(QGraphicsScene* scene, QWidget* parent);
|
||||
protected:
|
||||
void wheelEvent(QWheelEvent* event) Q_DECL_OVERRIDE;
|
||||
void wheelEvent(QWheelEvent* event) override;
|
||||
};
|
||||
|
||||
KItemListContainerViewport::KItemListContainerViewport(QGraphicsScene* scene, QWidget* parent) :
|
||||
|
|
|
@ -51,18 +51,18 @@ public:
|
|||
* @param parent Optional parent widget.
|
||||
*/
|
||||
explicit KItemListContainer(KItemListController* controller, QWidget* parent = 0);
|
||||
virtual ~KItemListContainer();
|
||||
~KItemListContainer() override;
|
||||
KItemListController* controller() const;
|
||||
|
||||
void setEnabledFrame(bool enable);
|
||||
bool enabledFrame() const;
|
||||
|
||||
protected:
|
||||
virtual void keyPressEvent(QKeyEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void resizeEvent(QResizeEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void scrollContentsBy(int dx, int dy) Q_DECL_OVERRIDE;
|
||||
virtual void wheelEvent(QWheelEvent* event) Q_DECL_OVERRIDE;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
void resizeEvent(QResizeEvent* event) override;
|
||||
void scrollContentsBy(int dx, int dy) override;
|
||||
void wheelEvent(QWheelEvent* event) override;
|
||||
|
||||
private slots:
|
||||
void slotScrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous);
|
||||
|
|
|
@ -89,7 +89,7 @@ public:
|
|||
* @param parent Optional parent object.
|
||||
*/
|
||||
KItemListController(KItemModelBase* model, KItemListView* view, QObject* parent = 0);
|
||||
virtual ~KItemListController();
|
||||
~KItemListController() override;
|
||||
|
||||
void setModel(KItemModelBase* model);
|
||||
KItemModelBase* model() const;
|
||||
|
|
|
@ -43,7 +43,7 @@ class DOLPHIN_EXPORT KItemListGroupHeader : public QGraphicsWidget
|
|||
|
||||
public:
|
||||
KItemListGroupHeader(QGraphicsWidget* parent = 0);
|
||||
virtual ~KItemListGroupHeader();
|
||||
~KItemListGroupHeader() override;
|
||||
|
||||
void setRole(const QByteArray& role);
|
||||
QByteArray role() const;
|
||||
|
@ -65,7 +65,7 @@ public:
|
|||
void setItemIndex(int index);
|
||||
int itemIndex() const;
|
||||
|
||||
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) Q_DECL_OVERRIDE;
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override;
|
||||
|
||||
protected:
|
||||
virtual void paintRole(QPainter* painter, const QRectF& roleBounds, const QColor& color) = 0;
|
||||
|
@ -101,7 +101,7 @@ protected:
|
|||
*/
|
||||
virtual void itemIndexChanged(int current, int previous);
|
||||
|
||||
virtual void resizeEvent(QGraphicsSceneResizeEvent* event) Q_DECL_OVERRIDE;
|
||||
void resizeEvent(QGraphicsSceneResizeEvent* event) override;
|
||||
|
||||
virtual QPalette::ColorRole normalTextColorRole() const;
|
||||
virtual QPalette::ColorRole normalBaseColorRole() const;
|
||||
|
|
|
@ -38,7 +38,7 @@ class DOLPHIN_EXPORT KItemListHeader : public QObject
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
virtual ~KItemListHeader();
|
||||
~KItemListHeader() override;
|
||||
|
||||
/**
|
||||
* If set to true, KItemListView will automatically adjust the
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
};
|
||||
|
||||
KItemListSelectionManager(QObject* parent = 0);
|
||||
virtual ~KItemListSelectionManager();
|
||||
~KItemListSelectionManager() override;
|
||||
|
||||
void setCurrentItem(int current);
|
||||
int currentItem() const;
|
||||
|
|
|
@ -68,7 +68,7 @@ class DOLPHIN_EXPORT KItemListView : public QGraphicsWidget
|
|||
|
||||
public:
|
||||
KItemListView(QGraphicsWidget* parent = 0);
|
||||
virtual ~KItemListView();
|
||||
~KItemListView() override;
|
||||
|
||||
/**
|
||||
* Offset of the scrollbar that represents the scroll-orientation
|
||||
|
@ -165,7 +165,7 @@ public:
|
|||
|
||||
const KItemListStyleOption& styleOption() const;
|
||||
|
||||
virtual void setGeometry(const QRectF& rect) Q_DECL_OVERRIDE;
|
||||
void setGeometry(const QRectF& rect) override;
|
||||
|
||||
/**
|
||||
* @return The page step which should be used by the vertical scroll bar.
|
||||
|
@ -285,7 +285,7 @@ public:
|
|||
*/
|
||||
void editRole(int index, const QByteArray& role);
|
||||
|
||||
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) Q_DECL_OVERRIDE;
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override;
|
||||
|
||||
signals:
|
||||
void scrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous);
|
||||
|
@ -325,7 +325,7 @@ signals:
|
|||
void roleEditingFinished(int index, const QByteArray& role, const QVariant& value);
|
||||
|
||||
protected:
|
||||
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value) Q_DECL_OVERRIDE;
|
||||
QVariant itemChange(GraphicsItemChange change, const QVariant &value) override;
|
||||
void setItemSize(const QSizeF& size);
|
||||
void setStyleOption(const KItemListStyleOption& option);
|
||||
|
||||
|
@ -382,13 +382,13 @@ protected:
|
|||
virtual void onTransactionBegin();
|
||||
virtual void onTransactionEnd();
|
||||
|
||||
virtual bool event(QEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void mousePressEvent(QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void dropEvent(QGraphicsSceneDragDropEvent* event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent* event) override;
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent* event) override;
|
||||
void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override;
|
||||
void dragEnterEvent(QGraphicsSceneDragDropEvent* event) override;
|
||||
void dragMoveEvent(QGraphicsSceneDragDropEvent* event) override;
|
||||
void dragLeaveEvent(QGraphicsSceneDragDropEvent* event) override;
|
||||
void dropEvent(QGraphicsSceneDragDropEvent* event) override;
|
||||
|
||||
QList<KItemListWidget*> visibleItemListWidgets() const;
|
||||
|
||||
|
@ -803,7 +803,7 @@ private:
|
|||
class DOLPHIN_EXPORT KItemListWidgetCreatorBase : public KItemListCreatorBase
|
||||
{
|
||||
public:
|
||||
virtual ~KItemListWidgetCreatorBase();
|
||||
~KItemListWidgetCreatorBase() override;
|
||||
|
||||
virtual KItemListWidget* create(KItemListView* view) = 0;
|
||||
|
||||
|
@ -824,15 +824,15 @@ class KItemListWidgetCreator : public KItemListWidgetCreatorBase
|
|||
{
|
||||
public:
|
||||
KItemListWidgetCreator();
|
||||
virtual ~KItemListWidgetCreator();
|
||||
~KItemListWidgetCreator() override;
|
||||
|
||||
virtual KItemListWidget* create(KItemListView* view) Q_DECL_OVERRIDE;
|
||||
KItemListWidget* create(KItemListView* view) override;
|
||||
|
||||
virtual void calculateItemSizeHints(QVector<qreal>& logicalHeightHints, qreal& logicalWidthHint, const KItemListView* view) const Q_DECL_OVERRIDE;
|
||||
void calculateItemSizeHints(QVector<qreal>& logicalHeightHints, qreal& logicalWidthHint, const KItemListView* view) const override;
|
||||
|
||||
virtual qreal preferredRoleColumnWidth(const QByteArray& role,
|
||||
qreal preferredRoleColumnWidth(const QByteArray& role,
|
||||
int index,
|
||||
const KItemListView* view) const Q_DECL_OVERRIDE;
|
||||
const KItemListView* view) const override;
|
||||
private:
|
||||
KItemListWidgetInformant* m_informant;
|
||||
};
|
||||
|
@ -885,7 +885,7 @@ qreal KItemListWidgetCreator<T>::preferredRoleColumnWidth(const QByteArray& role
|
|||
class DOLPHIN_EXPORT KItemListGroupHeaderCreatorBase : public KItemListCreatorBase
|
||||
{
|
||||
public:
|
||||
virtual ~KItemListGroupHeaderCreatorBase();
|
||||
~KItemListGroupHeaderCreatorBase() override;
|
||||
virtual KItemListGroupHeader* create(KItemListView* view) = 0;
|
||||
virtual void recycle(KItemListGroupHeader* header);
|
||||
};
|
||||
|
@ -894,8 +894,8 @@ template <class T>
|
|||
class KItemListGroupHeaderCreator : public KItemListGroupHeaderCreatorBase
|
||||
{
|
||||
public:
|
||||
virtual ~KItemListGroupHeaderCreator();
|
||||
virtual KItemListGroupHeader* create(KItemListView* view) Q_DECL_OVERRIDE;
|
||||
~KItemListGroupHeaderCreator() override;
|
||||
KItemListGroupHeader* create(KItemListView* view) override;
|
||||
};
|
||||
|
||||
template <class T>
|
||||
|
|
|
@ -36,44 +36,44 @@ class DOLPHIN_EXPORT KItemListViewAccessible: public QAccessibleObject, public Q
|
|||
{
|
||||
public:
|
||||
explicit KItemListViewAccessible(KItemListView* view);
|
||||
~KItemListViewAccessible();
|
||||
~KItemListViewAccessible() override;
|
||||
|
||||
void* interface_cast(QAccessible::InterfaceType type) Q_DECL_OVERRIDE;
|
||||
void* interface_cast(QAccessible::InterfaceType type) override;
|
||||
|
||||
QAccessible::Role role() const Q_DECL_OVERRIDE;
|
||||
QAccessible::State state() const Q_DECL_OVERRIDE;
|
||||
QString text(QAccessible::Text t) const Q_DECL_OVERRIDE;
|
||||
QRect rect() const Q_DECL_OVERRIDE;
|
||||
QAccessible::Role role() const override;
|
||||
QAccessible::State state() const override;
|
||||
QString text(QAccessible::Text t) const override;
|
||||
QRect rect() const override;
|
||||
|
||||
QAccessibleInterface* child(int index) const Q_DECL_OVERRIDE;
|
||||
int childCount() const Q_DECL_OVERRIDE;
|
||||
int indexOfChild(const QAccessibleInterface*) const Q_DECL_OVERRIDE;
|
||||
QAccessibleInterface* childAt(int x, int y) const Q_DECL_OVERRIDE;
|
||||
QAccessibleInterface* parent() const Q_DECL_OVERRIDE;
|
||||
QAccessibleInterface* child(int index) const override;
|
||||
int childCount() const override;
|
||||
int indexOfChild(const QAccessibleInterface*) const override;
|
||||
QAccessibleInterface* childAt(int x, int y) const override;
|
||||
QAccessibleInterface* parent() const override;
|
||||
|
||||
// Table interface
|
||||
virtual QAccessibleInterface* cellAt(int row, int column) const Q_DECL_OVERRIDE;
|
||||
virtual QAccessibleInterface* caption() const Q_DECL_OVERRIDE;
|
||||
virtual QAccessibleInterface* summary() const Q_DECL_OVERRIDE;
|
||||
virtual QString columnDescription(int column) const Q_DECL_OVERRIDE;
|
||||
virtual QString rowDescription(int row) const Q_DECL_OVERRIDE;
|
||||
virtual int columnCount() const Q_DECL_OVERRIDE;
|
||||
virtual int rowCount() const Q_DECL_OVERRIDE;
|
||||
QAccessibleInterface* cellAt(int row, int column) const override;
|
||||
QAccessibleInterface* caption() const override;
|
||||
QAccessibleInterface* summary() const override;
|
||||
QString columnDescription(int column) const override;
|
||||
QString rowDescription(int row) const override;
|
||||
int columnCount() const override;
|
||||
int rowCount() const override;
|
||||
|
||||
// Selection
|
||||
virtual int selectedCellCount() const Q_DECL_OVERRIDE;
|
||||
virtual int selectedColumnCount() const Q_DECL_OVERRIDE;
|
||||
virtual int selectedRowCount() const Q_DECL_OVERRIDE;
|
||||
virtual QList<QAccessibleInterface*> selectedCells() const Q_DECL_OVERRIDE;
|
||||
virtual QList<int> selectedColumns() const Q_DECL_OVERRIDE;
|
||||
virtual QList<int> selectedRows() const Q_DECL_OVERRIDE;
|
||||
virtual bool isColumnSelected(int column) const Q_DECL_OVERRIDE;
|
||||
virtual bool isRowSelected(int row) const Q_DECL_OVERRIDE;
|
||||
virtual bool selectRow(int row) Q_DECL_OVERRIDE;
|
||||
virtual bool selectColumn(int column) Q_DECL_OVERRIDE;
|
||||
virtual bool unselectRow(int row) Q_DECL_OVERRIDE;
|
||||
virtual bool unselectColumn(int column) Q_DECL_OVERRIDE;
|
||||
virtual void modelChange(QAccessibleTableModelChangeEvent*) Q_DECL_OVERRIDE;
|
||||
int selectedCellCount() const override;
|
||||
int selectedColumnCount() const override;
|
||||
int selectedRowCount() const override;
|
||||
QList<QAccessibleInterface*> selectedCells() const override;
|
||||
QList<int> selectedColumns() const override;
|
||||
QList<int> selectedRows() const override;
|
||||
bool isColumnSelected(int column) const override;
|
||||
bool isRowSelected(int row) const override;
|
||||
bool selectRow(int row) override;
|
||||
bool selectColumn(int column) override;
|
||||
bool unselectRow(int row) override;
|
||||
bool unselectColumn(int column) override;
|
||||
void modelChange(QAccessibleTableModelChangeEvent*) override;
|
||||
|
||||
KItemListView* view() const;
|
||||
|
||||
|
@ -94,32 +94,32 @@ class DOLPHIN_EXPORT KItemListAccessibleCell: public QAccessibleInterface, publi
|
|||
public:
|
||||
KItemListAccessibleCell(KItemListView* view, int m_index);
|
||||
|
||||
void* interface_cast(QAccessible::InterfaceType type) Q_DECL_OVERRIDE;
|
||||
QObject* object() const Q_DECL_OVERRIDE;
|
||||
bool isValid() const Q_DECL_OVERRIDE;
|
||||
QAccessible::Role role() const Q_DECL_OVERRIDE;
|
||||
QAccessible::State state() const Q_DECL_OVERRIDE;
|
||||
QRect rect() const Q_DECL_OVERRIDE;
|
||||
QString text(QAccessible::Text t) const Q_DECL_OVERRIDE;
|
||||
void setText(QAccessible::Text t, const QString& text) Q_DECL_OVERRIDE;
|
||||
void* interface_cast(QAccessible::InterfaceType type) override;
|
||||
QObject* object() const override;
|
||||
bool isValid() const override;
|
||||
QAccessible::Role role() const override;
|
||||
QAccessible::State state() const override;
|
||||
QRect rect() const override;
|
||||
QString text(QAccessible::Text t) const override;
|
||||
void setText(QAccessible::Text t, const QString& text) override;
|
||||
|
||||
QAccessibleInterface* child(int index) const Q_DECL_OVERRIDE;
|
||||
int childCount() const Q_DECL_OVERRIDE;
|
||||
QAccessibleInterface* childAt(int x, int y) const Q_DECL_OVERRIDE;
|
||||
int indexOfChild(const QAccessibleInterface*) const Q_DECL_OVERRIDE;
|
||||
QAccessibleInterface* child(int index) const override;
|
||||
int childCount() const override;
|
||||
QAccessibleInterface* childAt(int x, int y) const override;
|
||||
int indexOfChild(const QAccessibleInterface*) const override;
|
||||
|
||||
QAccessibleInterface* parent() const Q_DECL_OVERRIDE;
|
||||
QAccessibleInterface* parent() const override;
|
||||
bool isExpandable() const;
|
||||
|
||||
// Cell Interface
|
||||
virtual int columnExtent() const Q_DECL_OVERRIDE;
|
||||
virtual QList<QAccessibleInterface*> columnHeaderCells() const Q_DECL_OVERRIDE;
|
||||
virtual int columnIndex() const Q_DECL_OVERRIDE;
|
||||
virtual int rowExtent() const Q_DECL_OVERRIDE;
|
||||
virtual QList<QAccessibleInterface*> rowHeaderCells() const Q_DECL_OVERRIDE;
|
||||
virtual int rowIndex() const Q_DECL_OVERRIDE;
|
||||
virtual bool isSelected() const Q_DECL_OVERRIDE;
|
||||
virtual QAccessibleInterface* table() const Q_DECL_OVERRIDE;
|
||||
int columnExtent() const override;
|
||||
QList<QAccessibleInterface*> columnHeaderCells() const override;
|
||||
int columnIndex() const override;
|
||||
int rowExtent() const override;
|
||||
QList<QAccessibleInterface*> rowHeaderCells() const override;
|
||||
int rowIndex() const override;
|
||||
bool isSelected() const override;
|
||||
QAccessibleInterface* table() const override;
|
||||
|
||||
inline int index() const;
|
||||
|
||||
|
@ -132,11 +132,11 @@ class DOLPHIN_EXPORT KItemListContainerAccessible : public QAccessibleWidget
|
|||
{
|
||||
public:
|
||||
explicit KItemListContainerAccessible(KItemListContainer* container);
|
||||
virtual ~KItemListContainerAccessible();
|
||||
~KItemListContainerAccessible() override;
|
||||
|
||||
QAccessibleInterface* child(int index) const Q_DECL_OVERRIDE;
|
||||
int childCount() const Q_DECL_OVERRIDE;
|
||||
int indexOfChild(const QAccessibleInterface* child) const Q_DECL_OVERRIDE;
|
||||
QAccessibleInterface* child(int index) const override;
|
||||
int childCount() const override;
|
||||
int indexOfChild(const QAccessibleInterface* child) const override;
|
||||
|
||||
private:
|
||||
const KItemListContainer* container() const;
|
||||
|
|
|
@ -69,7 +69,7 @@ class DOLPHIN_EXPORT KItemListWidget : public QGraphicsWidget
|
|||
|
||||
public:
|
||||
KItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent);
|
||||
virtual ~KItemListWidget();
|
||||
~KItemListWidget() override;
|
||||
|
||||
void setIndex(int index);
|
||||
int index() const;
|
||||
|
@ -82,7 +82,7 @@ public:
|
|||
* to show the data of the custom model provided by KItemListWidget::data().
|
||||
* @reimp
|
||||
*/
|
||||
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) Q_DECL_OVERRIDE;
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override;
|
||||
|
||||
void setVisibleRoles(const QList<QByteArray>& roles);
|
||||
QList<QByteArray> visibleRoles() const;
|
||||
|
@ -142,7 +142,7 @@ public:
|
|||
* or KItemListWidget::expansionToggleRect().
|
||||
* @reimp
|
||||
*/
|
||||
virtual bool contains(const QPointF& point) const override;
|
||||
bool contains(const QPointF& point) const override;
|
||||
|
||||
/**
|
||||
* @return Rectangle for the area that shows the icon.
|
||||
|
@ -203,7 +203,7 @@ protected:
|
|||
virtual void alternateBackgroundChanged(bool enabled);
|
||||
virtual void siblingsInformationChanged(const QBitArray& current, const QBitArray& previous);
|
||||
virtual void editedRoleChanged(const QByteArray& current, const QByteArray& previous);
|
||||
virtual void resizeEvent(QGraphicsSceneResizeEvent* event) Q_DECL_OVERRIDE;
|
||||
void resizeEvent(QGraphicsSceneResizeEvent* event) override;
|
||||
|
||||
/**
|
||||
* @return The current opacity of the hover-animation. When implementing a custom painting-code for a hover-state
|
||||
|
|
|
@ -57,7 +57,7 @@ class DOLPHIN_EXPORT KItemModelBase : public QObject
|
|||
public:
|
||||
KItemModelBase(QObject* parent = 0);
|
||||
explicit KItemModelBase(const QByteArray& sortRole, QObject* parent = 0);
|
||||
virtual ~KItemModelBase();
|
||||
~KItemModelBase() override;
|
||||
|
||||
/** @return The number of items. */
|
||||
virtual int count() const = 0;
|
||||
|
|
|
@ -33,16 +33,16 @@ class DOLPHIN_EXPORT KStandardItemListGroupHeader : public KItemListGroupHeader
|
|||
|
||||
public:
|
||||
KStandardItemListGroupHeader(QGraphicsWidget* parent = 0);
|
||||
virtual ~KStandardItemListGroupHeader();
|
||||
~KStandardItemListGroupHeader() override;
|
||||
|
||||
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) Q_DECL_OVERRIDE;
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override;
|
||||
|
||||
protected:
|
||||
virtual void paintRole(QPainter* painter, const QRectF& roleBounds, const QColor& color) Q_DECL_OVERRIDE;
|
||||
virtual void paintSeparator(QPainter* painter, const QColor& color) Q_DECL_OVERRIDE;
|
||||
virtual void roleChanged(const QByteArray ¤t, const QByteArray &previous) Q_DECL_OVERRIDE;
|
||||
virtual void dataChanged(const QVariant& current, const QVariant& previous) Q_DECL_OVERRIDE;
|
||||
virtual void resizeEvent(QGraphicsSceneResizeEvent* event) Q_DECL_OVERRIDE;
|
||||
void paintRole(QPainter* painter, const QRectF& roleBounds, const QColor& color) override;
|
||||
void paintSeparator(QPainter* painter, const QColor& color) override;
|
||||
void roleChanged(const QByteArray ¤t, const QByteArray &previous) override;
|
||||
void dataChanged(const QVariant& current, const QVariant& previous) override;
|
||||
void resizeEvent(QGraphicsSceneResizeEvent* event) override;
|
||||
|
||||
private:
|
||||
void updateCache();
|
||||
|
|
|
@ -53,21 +53,21 @@ public:
|
|||
};
|
||||
|
||||
KStandardItemListView(QGraphicsWidget* parent = 0);
|
||||
virtual ~KStandardItemListView();
|
||||
~KStandardItemListView() override;
|
||||
|
||||
void setItemLayout(ItemLayout layout);
|
||||
ItemLayout itemLayout() const;
|
||||
|
||||
protected:
|
||||
virtual KItemListWidgetCreatorBase* defaultWidgetCreator() const Q_DECL_OVERRIDE;
|
||||
virtual KItemListGroupHeaderCreatorBase* defaultGroupHeaderCreator() const Q_DECL_OVERRIDE;
|
||||
virtual void initializeItemListWidget(KItemListWidget* item) Q_DECL_OVERRIDE;
|
||||
virtual bool itemSizeHintUpdateRequired(const QSet<QByteArray>& changedRoles) const Q_DECL_OVERRIDE;
|
||||
KItemListWidgetCreatorBase* defaultWidgetCreator() const override;
|
||||
KItemListGroupHeaderCreatorBase* defaultGroupHeaderCreator() const override;
|
||||
void initializeItemListWidget(KItemListWidget* item) override;
|
||||
bool itemSizeHintUpdateRequired(const QSet<QByteArray>& changedRoles) const override;
|
||||
virtual bool itemLayoutSupportsItemExpanding(ItemLayout layout) const;
|
||||
virtual void onItemLayoutChanged(ItemLayout current, ItemLayout previous);
|
||||
virtual void onScrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous) Q_DECL_OVERRIDE;
|
||||
virtual void onSupportsItemExpandingChanged(bool supportsExpanding) Q_DECL_OVERRIDE;
|
||||
virtual void polishEvent() Q_DECL_OVERRIDE;
|
||||
void onScrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous) override;
|
||||
void onSupportsItemExpandingChanged(bool supportsExpanding) override;
|
||||
void polishEvent() override;
|
||||
|
||||
private:
|
||||
void applyDefaultStyleOption(int iconSize, int padding, int horizontalMargin, int verticalMargin);
|
||||
|
|
|
@ -36,13 +36,13 @@ class DOLPHIN_EXPORT KStandardItemListWidgetInformant : public KItemListWidgetIn
|
|||
{
|
||||
public:
|
||||
KStandardItemListWidgetInformant();
|
||||
virtual ~KStandardItemListWidgetInformant();
|
||||
~KStandardItemListWidgetInformant() override;
|
||||
|
||||
virtual void calculateItemSizeHints(QVector<qreal>& logicalHeightHints, qreal& logicalWidthHint, const KItemListView* view) const Q_DECL_OVERRIDE;
|
||||
void calculateItemSizeHints(QVector<qreal>& logicalHeightHints, qreal& logicalWidthHint, const KItemListView* view) const override;
|
||||
|
||||
virtual qreal preferredRoleColumnWidth(const QByteArray& role,
|
||||
qreal preferredRoleColumnWidth(const QByteArray& role,
|
||||
int index,
|
||||
const KItemListView* view) const Q_DECL_OVERRIDE;
|
||||
const KItemListView* view) const override;
|
||||
protected:
|
||||
/**
|
||||
* @return The value of the "text" role. The default implementation returns
|
||||
|
@ -96,7 +96,7 @@ public:
|
|||
};
|
||||
|
||||
KStandardItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent);
|
||||
virtual ~KStandardItemListWidget();
|
||||
~KStandardItemListWidget() override;
|
||||
|
||||
void setLayout(Layout layout);
|
||||
Layout layout() const;
|
||||
|
@ -104,15 +104,15 @@ public:
|
|||
void setSupportsItemExpanding(bool supportsItemExpanding);
|
||||
bool supportsItemExpanding() const;
|
||||
|
||||
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override;
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override;
|
||||
|
||||
virtual QRectF iconRect() const Q_DECL_OVERRIDE;
|
||||
virtual QRectF textRect() const Q_DECL_OVERRIDE;
|
||||
virtual QRectF textFocusRect() const Q_DECL_OVERRIDE;
|
||||
virtual QRectF selectionRect() const Q_DECL_OVERRIDE;
|
||||
virtual QRectF expansionToggleRect() const Q_DECL_OVERRIDE;
|
||||
virtual QRectF selectionToggleRect() const Q_DECL_OVERRIDE;
|
||||
virtual QPixmap createDragPixmap(const QStyleOptionGraphicsItem* option, QWidget* widget = 0) Q_DECL_OVERRIDE;
|
||||
QRectF iconRect() const override;
|
||||
QRectF textRect() const override;
|
||||
QRectF textFocusRect() const override;
|
||||
QRectF selectionRect() const override;
|
||||
QRectF expansionToggleRect() const override;
|
||||
QRectF selectionToggleRect() const override;
|
||||
QPixmap createDragPixmap(const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override;
|
||||
|
||||
static KItemListWidgetInformant* createInformant();
|
||||
|
||||
|
@ -172,18 +172,18 @@ protected:
|
|||
*/
|
||||
virtual int selectionLength(const QString& text) const;
|
||||
|
||||
virtual void dataChanged(const QHash<QByteArray, QVariant>& current, const QSet<QByteArray>& roles = QSet<QByteArray>()) Q_DECL_OVERRIDE;
|
||||
virtual void visibleRolesChanged(const QList<QByteArray>& current, const QList<QByteArray>& previous) Q_DECL_OVERRIDE;
|
||||
virtual void columnWidthChanged(const QByteArray& role, qreal current, qreal previous) Q_DECL_OVERRIDE;
|
||||
virtual void styleOptionChanged(const KItemListStyleOption& current, const KItemListStyleOption& previous) Q_DECL_OVERRIDE;
|
||||
virtual void hoveredChanged(bool hovered) Q_DECL_OVERRIDE;
|
||||
virtual void selectedChanged(bool selected) Q_DECL_OVERRIDE;
|
||||
virtual void siblingsInformationChanged(const QBitArray& current, const QBitArray& previous) Q_DECL_OVERRIDE;
|
||||
virtual void editedRoleChanged(const QByteArray& current, const QByteArray& previous) Q_DECL_OVERRIDE;
|
||||
virtual void resizeEvent(QGraphicsSceneResizeEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void hideEvent(QHideEvent* event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||
void dataChanged(const QHash<QByteArray, QVariant>& current, const QSet<QByteArray>& roles = QSet<QByteArray>()) override;
|
||||
void visibleRolesChanged(const QList<QByteArray>& current, const QList<QByteArray>& previous) override;
|
||||
void columnWidthChanged(const QByteArray& role, qreal current, qreal previous) override;
|
||||
void styleOptionChanged(const KItemListStyleOption& current, const KItemListStyleOption& previous) override;
|
||||
void hoveredChanged(bool hovered) override;
|
||||
void selectedChanged(bool selected) override;
|
||||
void siblingsInformationChanged(const QBitArray& current, const QBitArray& previous) override;
|
||||
void editedRoleChanged(const QByteArray& current, const QByteArray& previous) override;
|
||||
void resizeEvent(QGraphicsSceneResizeEvent* event) override;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
void hideEvent(QHideEvent* event) override;
|
||||
bool event(QEvent *event) override;
|
||||
|
||||
public slots:
|
||||
void finishRoleEditing();
|
||||
|
|
|
@ -41,7 +41,7 @@ class DOLPHIN_EXPORT KStandardItemModel : public KItemModelBase
|
|||
|
||||
public:
|
||||
explicit KStandardItemModel(QObject* parent = 0);
|
||||
virtual ~KStandardItemModel();
|
||||
~KStandardItemModel() override;
|
||||
|
||||
/**
|
||||
* Inserts the item \a item at the index \a index. If the index
|
||||
|
@ -69,14 +69,14 @@ public:
|
|||
*/
|
||||
void appendItem(KStandardItem* item);
|
||||
|
||||
virtual int count() const Q_DECL_OVERRIDE;
|
||||
virtual QHash<QByteArray, QVariant> data(int index) const Q_DECL_OVERRIDE;
|
||||
virtual bool setData(int index, const QHash<QByteArray, QVariant>& values) Q_DECL_OVERRIDE;
|
||||
virtual QMimeData* createMimeData(const KItemSet& indexes) const Q_DECL_OVERRIDE;
|
||||
virtual int indexForKeyboardSearch(const QString& text, int startFromIndex = 0) const Q_DECL_OVERRIDE;
|
||||
virtual bool supportsDropping(int index) const Q_DECL_OVERRIDE;
|
||||
virtual QString roleDescription(const QByteArray& role) const Q_DECL_OVERRIDE;
|
||||
virtual QList<QPair<int, QVariant> > groups() const Q_DECL_OVERRIDE;
|
||||
int count() const override;
|
||||
QHash<QByteArray, QVariant> data(int index) const override;
|
||||
bool setData(int index, const QHash<QByteArray, QVariant>& values) override;
|
||||
QMimeData* createMimeData(const KItemSet& indexes) const override;
|
||||
int indexForKeyboardSearch(const QString& text, int startFromIndex = 0) const override;
|
||||
bool supportsDropping(int index) const override;
|
||||
QString roleDescription(const QByteArray& role) const override;
|
||||
QList<QPair<int, QVariant> > groups() const override;
|
||||
|
||||
virtual void clear();
|
||||
protected:
|
||||
|
|
|
@ -36,7 +36,7 @@ class KDirectoryContentsCounter : public QObject
|
|||
|
||||
public:
|
||||
explicit KDirectoryContentsCounter(KFileItemModel* model, QObject* parent = 0);
|
||||
~KDirectoryContentsCounter();
|
||||
~KDirectoryContentsCounter() override;
|
||||
|
||||
/**
|
||||
* Requests the number of items inside the directory \a path. The actual
|
||||
|
|
|
@ -46,7 +46,7 @@ signals:
|
|||
void cutItemsChanged();
|
||||
|
||||
protected:
|
||||
virtual ~KFileItemClipboard();
|
||||
~KFileItemClipboard() override;
|
||||
|
||||
private slots:
|
||||
void updateCutItems();
|
||||
|
|
|
@ -35,7 +35,7 @@ class DOLPHIN_EXPORT KFileItemModelDirLister : public KDirLister
|
|||
|
||||
public:
|
||||
KFileItemModelDirLister(QObject* parent = 0);
|
||||
virtual ~KFileItemModelDirLister();
|
||||
~KFileItemModelDirLister() override;
|
||||
|
||||
signals:
|
||||
/** Is emitted whenever an error has occurred. */
|
||||
|
@ -48,7 +48,7 @@ signals:
|
|||
void urlIsFileError(const QUrl& url);
|
||||
|
||||
protected:
|
||||
void handleError(KIO::Job* job) Q_DECL_OVERRIDE;
|
||||
void handleError(KIO::Job* job) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -39,7 +39,7 @@ class DOLPHIN_EXPORT KItemListHeaderWidget : public QGraphicsWidget
|
|||
|
||||
public:
|
||||
KItemListHeaderWidget(QGraphicsWidget* parent = 0);
|
||||
virtual ~KItemListHeaderWidget();
|
||||
~KItemListHeaderWidget() override;
|
||||
|
||||
void setModel(KItemModelBase* model);
|
||||
KItemModelBase* model() const;
|
||||
|
@ -64,7 +64,7 @@ public:
|
|||
|
||||
qreal minimumColumnWidth() const;
|
||||
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) Q_DECL_OVERRIDE;
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override;
|
||||
|
||||
signals:
|
||||
/**
|
||||
|
@ -104,13 +104,13 @@ signals:
|
|||
void sortRoleChanged(const QByteArray& current, const QByteArray& previous);
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
void mouseMoveEvent(QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
void hoverEnterEvent(QGraphicsSceneHoverEvent* event) Q_DECL_OVERRIDE;
|
||||
void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) Q_DECL_OVERRIDE;
|
||||
void hoverMoveEvent(QGraphicsSceneHoverEvent* event) Q_DECL_OVERRIDE;
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent* event) override;
|
||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override;
|
||||
void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override;
|
||||
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) override;
|
||||
void hoverEnterEvent(QGraphicsSceneHoverEvent* event) override;
|
||||
void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override;
|
||||
void hoverMoveEvent(QGraphicsSceneHoverEvent* event) override;
|
||||
|
||||
private slots:
|
||||
void slotSortRoleChanged(const QByteArray& current, const QByteArray& previous);
|
||||
|
|
|
@ -42,7 +42,7 @@ class DOLPHIN_EXPORT KItemListKeyboardSearchManager : public QObject
|
|||
public:
|
||||
|
||||
KItemListKeyboardSearchManager(QObject* parent = 0);
|
||||
virtual ~KItemListKeyboardSearchManager();
|
||||
~KItemListKeyboardSearchManager() override;
|
||||
|
||||
/**
|
||||
* Add \a keys to the text buffer used for searching.
|
||||
|
|
|
@ -39,20 +39,20 @@ class DOLPHIN_EXPORT KItemListRoleEditor : public KTextEdit
|
|||
|
||||
public:
|
||||
explicit KItemListRoleEditor(QWidget* parent);
|
||||
virtual ~KItemListRoleEditor();
|
||||
~KItemListRoleEditor() override;
|
||||
|
||||
void setRole(const QByteArray& role);
|
||||
QByteArray role() const;
|
||||
|
||||
bool eventFilter(QObject* watched, QEvent* event) Q_DECL_OVERRIDE;
|
||||
bool eventFilter(QObject* watched, QEvent* event) override;
|
||||
|
||||
signals:
|
||||
void roleEditingFinished(const QByteArray& role, const QVariant& value);
|
||||
void roleEditingCanceled(const QByteArray& role, const QVariant& value);
|
||||
|
||||
protected:
|
||||
bool event(QEvent* event) Q_DECL_OVERRIDE;
|
||||
void keyPressEvent(QKeyEvent* event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent* event) override;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
|
||||
private slots:
|
||||
/**
|
||||
|
|
|
@ -33,7 +33,7 @@ class DOLPHIN_EXPORT KItemListRubberBand : public QObject
|
|||
|
||||
public:
|
||||
explicit KItemListRubberBand(QObject* parent = 0);
|
||||
virtual ~KItemListRubberBand();
|
||||
~KItemListRubberBand() override;
|
||||
|
||||
void setStartPosition(const QPointF& pos);
|
||||
QPointF startPosition() const;
|
||||
|
|
|
@ -35,17 +35,17 @@ class DOLPHIN_EXPORT KItemListSelectionToggle : public QGraphicsWidget
|
|||
|
||||
public:
|
||||
KItemListSelectionToggle(QGraphicsItem* parent);
|
||||
virtual ~KItemListSelectionToggle();
|
||||
~KItemListSelectionToggle() override;
|
||||
|
||||
void setChecked(bool checked);
|
||||
bool isChecked() const;
|
||||
|
||||
void setHovered(bool hovered);
|
||||
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) Q_DECL_OVERRIDE;
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override;
|
||||
|
||||
protected:
|
||||
void resizeEvent(QGraphicsSceneResizeEvent* event) Q_DECL_OVERRIDE;
|
||||
void resizeEvent(QGraphicsSceneResizeEvent* event) override;
|
||||
|
||||
private:
|
||||
void updatePixmap();
|
||||
|
|
|
@ -40,7 +40,7 @@ class DOLPHIN_EXPORT KItemListSmoothScroller : public QObject
|
|||
public:
|
||||
explicit KItemListSmoothScroller(QScrollBar* scrollBar,
|
||||
QObject* parent = 0);
|
||||
virtual ~KItemListSmoothScroller();
|
||||
~KItemListSmoothScroller() override;
|
||||
|
||||
void setScrollBar(QScrollBar* scrollBar);
|
||||
QScrollBar* scrollBar() const;
|
||||
|
@ -83,7 +83,7 @@ public:
|
|||
void handleWheelEvent(QWheelEvent* event);
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject* obj, QEvent* event) Q_DECL_OVERRIDE;
|
||||
bool eventFilter(QObject* obj, QEvent* event) override;
|
||||
|
||||
private slots:
|
||||
void slotAnimationStateChanged(QAbstractAnimation::State newState,
|
||||
|
|
|
@ -49,7 +49,7 @@ public:
|
|||
};
|
||||
|
||||
KItemListViewAnimation(QObject* parent = 0);
|
||||
virtual ~KItemListViewAnimation();
|
||||
~KItemListViewAnimation() override;
|
||||
|
||||
void setScrollOrientation(Qt::Orientation orientation);
|
||||
Qt::Orientation scrollOrientation() const;
|
||||
|
|
|
@ -51,7 +51,7 @@ class DOLPHIN_EXPORT KItemListViewLayouter : public QObject
|
|||
|
||||
public:
|
||||
KItemListViewLayouter(KItemListSizeHintResolver* sizeHintResolver, QObject* parent = 0);
|
||||
virtual ~KItemListViewLayouter();
|
||||
~KItemListViewLayouter() override;
|
||||
|
||||
void setScrollOrientation(Qt::Orientation orientation);
|
||||
Qt::Orientation scrollOrientation() const;
|
||||
|
|
|
@ -31,10 +31,10 @@ class FoldersItemListWidget : public KFileItemListWidget
|
|||
|
||||
public:
|
||||
FoldersItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent);
|
||||
virtual ~FoldersItemListWidget();
|
||||
~FoldersItemListWidget() override;
|
||||
|
||||
protected:
|
||||
virtual QPalette::ColorRole normalTextColorRole() const Q_DECL_OVERRIDE;
|
||||
QPalette::ColorRole normalTextColorRole() const override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -91,7 +91,7 @@ void FoldersPanel::setLimitFoldersPanelToHome(bool enable)
|
|||
|
||||
bool FoldersPanel::limitFoldersPanelToHome() const
|
||||
{
|
||||
return FoldersPanelSettings::limitFoldersPanelToHome();
|
||||
return limitFoldersPanelToHome();
|
||||
}
|
||||
|
||||
void FoldersPanel::setAutoScrolling(bool enable)
|
||||
|
@ -325,7 +325,7 @@ void FoldersPanel::loadTree(const QUrl& url)
|
|||
QUrl baseUrl;
|
||||
if (url.isLocalFile()) {
|
||||
const bool isInHomeFolder = Dolphin::homeUrl().isParentOf(url) || (Dolphin::homeUrl() == url);
|
||||
if (FoldersPanelSettings::limitFoldersPanelToHome() && isInHomeFolder) {
|
||||
if (limitFoldersPanelToHome() && isInHomeFolder) {
|
||||
baseUrl = Dolphin::homeUrl();
|
||||
} else {
|
||||
// Use the root directory as base for local URLs (#150941)
|
||||
|
|
|
@ -40,7 +40,7 @@ class FoldersPanel : public Panel
|
|||
|
||||
public:
|
||||
explicit FoldersPanel(QWidget* parent = nullptr);
|
||||
virtual ~FoldersPanel();
|
||||
~FoldersPanel() override;
|
||||
|
||||
void setShowHiddenFiles(bool show);
|
||||
void setLimitFoldersPanelToHome(bool enable);
|
||||
|
@ -59,13 +59,13 @@ signals:
|
|||
|
||||
protected:
|
||||
/** @see Panel::urlChanged() */
|
||||
virtual bool urlChanged() Q_DECL_OVERRIDE;
|
||||
bool urlChanged() override;
|
||||
|
||||
/** @see QWidget::showEvent() */
|
||||
virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
|
||||
/** @see QWidget::keyPressEvent() */
|
||||
virtual void keyPressEvent(QKeyEvent* event) Q_DECL_OVERRIDE;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
|
||||
private slots:
|
||||
void slotItemActivated(int index);
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
TreeViewContextMenu(FoldersPanel* parent,
|
||||
const KFileItem& fileInfo);
|
||||
|
||||
virtual ~TreeViewContextMenu();
|
||||
~TreeViewContextMenu() override;
|
||||
|
||||
/** Opens the context menu modal. */
|
||||
void open();
|
||||
|
|
|
@ -44,7 +44,7 @@ class FileMetaDataConfigurationDialog : public QDialog
|
|||
|
||||
public:
|
||||
explicit FileMetaDataConfigurationDialog(QWidget* parent = 0);
|
||||
virtual ~FileMetaDataConfigurationDialog();
|
||||
~FileMetaDataConfigurationDialog() override;
|
||||
|
||||
/**
|
||||
* Sets the items, for which the visibility of the meta data should
|
||||
|
|
|
@ -37,7 +37,7 @@ class InformationPanel : public Panel
|
|||
|
||||
public:
|
||||
explicit InformationPanel(QWidget* parent = nullptr);
|
||||
virtual ~InformationPanel();
|
||||
~InformationPanel() override;
|
||||
|
||||
signals:
|
||||
void urlActivated(const QUrl& url);
|
||||
|
@ -59,16 +59,16 @@ public slots:
|
|||
|
||||
protected:
|
||||
/** @see Panel::urlChanged() */
|
||||
virtual bool urlChanged() Q_DECL_OVERRIDE;
|
||||
bool urlChanged() override;
|
||||
|
||||
/** @see QWidget::showEvent() */
|
||||
virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
|
||||
/** @see QWidget::resizeEvent() */
|
||||
virtual void resizeEvent(QResizeEvent* event) Q_DECL_OVERRIDE;
|
||||
void resizeEvent(QResizeEvent* event) override;
|
||||
|
||||
/** @see QWidget::contextMenuEvent() */
|
||||
virtual void contextMenuEvent(QContextMenuEvent* event) Q_DECL_OVERRIDE;
|
||||
void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
|
||||
private slots:
|
||||
/**
|
||||
|
|
|
@ -58,7 +58,7 @@ class InformationPanelContent : public QWidget
|
|||
|
||||
public:
|
||||
explicit InformationPanelContent(QWidget* parent = 0);
|
||||
virtual ~InformationPanelContent();
|
||||
~InformationPanelContent() override;
|
||||
|
||||
/**
|
||||
* Shows the meta information for the item \p item.
|
||||
|
@ -85,7 +85,7 @@ signals:
|
|||
|
||||
protected:
|
||||
/** @see QObject::eventFilter() */
|
||||
virtual bool eventFilter(QObject* obj, QEvent* event) Q_DECL_OVERRIDE;
|
||||
bool eventFilter(QObject* obj, QEvent* event) override;
|
||||
|
||||
private slots:
|
||||
/**
|
||||
|
|
|
@ -52,7 +52,7 @@ class EmbeddedVideoPlayer : public Phonon::VideoWidget
|
|||
updateGeometry();
|
||||
}
|
||||
|
||||
QSize sizeHint() const Q_DECL_OVERRIDE
|
||||
QSize sizeHint() const override
|
||||
{
|
||||
return m_sizeHint.isValid() ? m_sizeHint : Phonon::VideoWidget::sizeHint();
|
||||
}
|
||||
|
|
|
@ -63,8 +63,8 @@ class PhononWidget : public QWidget
|
|||
void hasVideoChanged(bool hasVideo);
|
||||
|
||||
protected:
|
||||
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
|
||||
virtual void hideEvent(QHideEvent *event) Q_DECL_OVERRIDE;
|
||||
void showEvent(QShowEvent *event) override;
|
||||
void hideEvent(QHideEvent *event) override;
|
||||
|
||||
private slots:
|
||||
void stateChanged(Phonon::State);
|
||||
|
|
|
@ -62,7 +62,7 @@ public:
|
|||
explicit PixmapViewer(QWidget* parent,
|
||||
Transition transition = DefaultTransition);
|
||||
|
||||
virtual ~PixmapViewer();
|
||||
~PixmapViewer() override;
|
||||
void setPixmap(const QPixmap& pixmap);
|
||||
QPixmap pixmap() const;
|
||||
|
||||
|
@ -71,10 +71,10 @@ public:
|
|||
* of the parent widget. Per default no size hint is given.
|
||||
*/
|
||||
void setSizeHint(const QSize& size);
|
||||
virtual QSize sizeHint() const Q_DECL_OVERRIDE;
|
||||
QSize sizeHint() const override;
|
||||
|
||||
protected:
|
||||
virtual void paintEvent(QPaintEvent* event) Q_DECL_OVERRIDE;
|
||||
void paintEvent(QPaintEvent* event) override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void checkPendingPixmaps();
|
||||
|
|
|
@ -36,7 +36,7 @@ class Panel : public QWidget
|
|||
|
||||
public:
|
||||
explicit Panel(QWidget* parent = 0);
|
||||
virtual ~Panel();
|
||||
~Panel() override;
|
||||
|
||||
/** Returns the current set URL of the active Dolphin view. */
|
||||
QUrl url() const;
|
||||
|
@ -49,7 +49,7 @@ public:
|
|||
void setCustomContextMenuActions(const QList<QAction*>& actions);
|
||||
QList<QAction*> customContextMenuActions() const;
|
||||
|
||||
virtual QSize sizeHint() const Q_DECL_OVERRIDE;
|
||||
QSize sizeHint() const override;
|
||||
|
||||
public slots:
|
||||
/**
|
||||
|
|
|
@ -49,7 +49,7 @@ public:
|
|||
};
|
||||
|
||||
explicit PlacesItem(const KBookmark& bookmark, PlacesItem* parent = 0);
|
||||
virtual ~PlacesItem();
|
||||
~PlacesItem() override;
|
||||
|
||||
void setUrl(const QUrl& url);
|
||||
QUrl url() const;
|
||||
|
@ -82,12 +82,12 @@ public:
|
|||
PlacesItemSignalHandler* signalHandler() const;
|
||||
|
||||
protected:
|
||||
virtual void onDataValueChanged(const QByteArray& role,
|
||||
void onDataValueChanged(const QByteArray& role,
|
||||
const QVariant& current,
|
||||
const QVariant& previous) Q_DECL_OVERRIDE;
|
||||
const QVariant& previous) override;
|
||||
|
||||
virtual void onDataChanged(const QHash<QByteArray, QVariant>& current,
|
||||
const QHash<QByteArray, QVariant>& previous) Q_DECL_OVERRIDE;
|
||||
void onDataChanged(const QHash<QByteArray, QVariant>& current,
|
||||
const QHash<QByteArray, QVariant>& previous) override;
|
||||
|
||||
private:
|
||||
PlacesItem(const PlacesItem& item);
|
||||
|
|
|
@ -39,7 +39,7 @@ class PlacesItemEditDialog: public QDialog
|
|||
|
||||
public:
|
||||
explicit PlacesItemEditDialog(QWidget* parent = 0);
|
||||
virtual ~PlacesItemEditDialog();
|
||||
~PlacesItemEditDialog() override;
|
||||
|
||||
void setIcon(const QString& icon);
|
||||
QString icon() const;
|
||||
|
@ -54,7 +54,7 @@ public:
|
|||
bool allowGlobal() const;
|
||||
|
||||
protected:
|
||||
virtual bool event(QEvent* event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent* event) override;
|
||||
|
||||
private slots:
|
||||
void slotUrlChanged(const QString& text);
|
||||
|
|
|
@ -28,12 +28,12 @@ class PlacesItemListGroupHeader : public KStandardItemListGroupHeader
|
|||
|
||||
public:
|
||||
PlacesItemListGroupHeader(QGraphicsWidget* parent = 0);
|
||||
virtual ~PlacesItemListGroupHeader();
|
||||
~PlacesItemListGroupHeader() override;
|
||||
|
||||
protected:
|
||||
virtual void paintSeparator(QPainter* painter, const QColor& color) Q_DECL_OVERRIDE;
|
||||
void paintSeparator(QPainter* painter, const QColor& color) override;
|
||||
|
||||
virtual QPalette::ColorRole normalTextColorRole() const Q_DECL_OVERRIDE;
|
||||
QPalette::ColorRole normalTextColorRole() const override;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
@ -32,11 +32,11 @@ class PlacesItemListWidget : public KStandardItemListWidget
|
|||
|
||||
public:
|
||||
PlacesItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent);
|
||||
virtual ~PlacesItemListWidget();
|
||||
~PlacesItemListWidget() override;
|
||||
|
||||
protected:
|
||||
virtual bool isHidden() const Q_DECL_OVERRIDE;
|
||||
virtual QPalette::ColorRole normalTextColorRole() const Q_DECL_OVERRIDE;
|
||||
bool isHidden() const override;
|
||||
QPalette::ColorRole normalTextColorRole() const override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -51,7 +51,7 @@ class PlacesItemModel: public KStandardItemModel
|
|||
|
||||
public:
|
||||
explicit PlacesItemModel(QObject* parent = 0);
|
||||
virtual ~PlacesItemModel();
|
||||
~PlacesItemModel() override;
|
||||
|
||||
/**
|
||||
* @return A new instance of a places item with the given
|
||||
|
@ -107,9 +107,9 @@ public:
|
|||
bool storageSetupNeeded(int index) const;
|
||||
void requestStorageSetup(int index);
|
||||
|
||||
virtual QMimeData* createMimeData(const KItemSet& indexes) const Q_DECL_OVERRIDE;
|
||||
QMimeData* createMimeData(const KItemSet& indexes) const override;
|
||||
|
||||
virtual bool supportsDropping(int index) const Q_DECL_OVERRIDE;
|
||||
bool supportsDropping(int index) const override;
|
||||
|
||||
void dropMimeDataBefore(int index, const QMimeData* mimeData);
|
||||
|
||||
|
@ -121,7 +121,7 @@ public:
|
|||
*/
|
||||
static QUrl convertedUrl(const QUrl& url);
|
||||
|
||||
virtual void clear() Q_DECL_OVERRIDE;
|
||||
void clear() override;
|
||||
|
||||
void proceedWithTearDown();
|
||||
|
||||
|
@ -132,7 +132,7 @@ public:
|
|||
*/
|
||||
void saveBookmarks();
|
||||
|
||||
bool isDir(int index) const Q_DECL_OVERRIDE;
|
||||
bool isDir(int index) const override;
|
||||
signals:
|
||||
void errorMessage(const QString& message);
|
||||
void storageSetupDone(int index, bool success);
|
||||
|
@ -140,9 +140,9 @@ signals:
|
|||
void storageTearDownExternallyRequested(const QString& mountPath);
|
||||
|
||||
protected:
|
||||
virtual void onItemInserted(int index) Q_DECL_OVERRIDE;
|
||||
virtual void onItemRemoved(int index, KStandardItem* removedItem) Q_DECL_OVERRIDE;
|
||||
virtual void onItemChanged(int index, const QSet<QByteArray>& changedRoles) Q_DECL_OVERRIDE;
|
||||
void onItemInserted(int index) override;
|
||||
void onItemRemoved(int index, KStandardItem* removedItem) override;
|
||||
void onItemChanged(int index, const QSet<QByteArray>& changedRoles) override;
|
||||
|
||||
private slots:
|
||||
void slotDeviceAdded(const QString& udi);
|
||||
|
|
|
@ -48,7 +48,7 @@ class PlacesItemSignalHandler: public QObject
|
|||
|
||||
public:
|
||||
explicit PlacesItemSignalHandler(PlacesItem* item, QObject* parent = nullptr);
|
||||
virtual ~PlacesItemSignalHandler();
|
||||
~PlacesItemSignalHandler() override;
|
||||
|
||||
public slots:
|
||||
/**
|
||||
|
|
|
@ -40,7 +40,7 @@ class PlacesPanel : public Panel
|
|||
|
||||
public:
|
||||
explicit PlacesPanel(QWidget* parent);
|
||||
virtual ~PlacesPanel();
|
||||
~PlacesPanel() override;
|
||||
void proceedWithTearDown();
|
||||
|
||||
signals:
|
||||
|
@ -51,11 +51,11 @@ signals:
|
|||
void storageTearDownExternallyRequested(const QString& mountPath);
|
||||
|
||||
protected:
|
||||
virtual bool urlChanged() Q_DECL_OVERRIDE;
|
||||
virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
|
||||
bool urlChanged() override;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
|
||||
public slots:
|
||||
virtual void readSettings() Q_DECL_OVERRIDE;
|
||||
void readSettings() override;
|
||||
|
||||
private slots:
|
||||
void slotItemActivated(int index);
|
||||
|
|
|
@ -46,7 +46,7 @@ class TerminalPanel : public Panel
|
|||
|
||||
public:
|
||||
explicit TerminalPanel(QWidget* parent = nullptr);
|
||||
virtual ~TerminalPanel();
|
||||
~TerminalPanel() override;
|
||||
|
||||
/**
|
||||
* @brief This function is used to set the terminal panels's cwd to
|
||||
|
@ -68,9 +68,9 @@ signals:
|
|||
void changeUrl(const QUrl& url);
|
||||
|
||||
protected:
|
||||
virtual bool urlChanged() Q_DECL_OVERRIDE;
|
||||
bool urlChanged() override;
|
||||
|
||||
virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
|
||||
private slots:
|
||||
void slotMostLocalUrlResult(KJob* job);
|
||||
|
|
|
@ -48,7 +48,7 @@ class DolphinFacetsWidget : public QWidget
|
|||
|
||||
public:
|
||||
explicit DolphinFacetsWidget(QWidget* parent = nullptr);
|
||||
virtual ~DolphinFacetsWidget();
|
||||
~DolphinFacetsWidget() override;
|
||||
|
||||
QString ratingTerm() const;
|
||||
QString facetType() const;
|
||||
|
|
|
@ -47,7 +47,7 @@ class DolphinSearchBox : public QWidget {
|
|||
|
||||
public:
|
||||
explicit DolphinSearchBox(QWidget* parent = 0);
|
||||
virtual ~DolphinSearchBox();
|
||||
~DolphinSearchBox() override;
|
||||
|
||||
/**
|
||||
* Sets the text that should be used as input for
|
||||
|
@ -99,11 +99,11 @@ public:
|
|||
bool isActive() const;
|
||||
|
||||
protected:
|
||||
virtual bool event(QEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void hideEvent(QHideEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual void keyReleaseEvent(QKeyEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual bool eventFilter(QObject* obj, QEvent* event) Q_DECL_OVERRIDE;
|
||||
bool event(QEvent* event) override;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
void hideEvent(QHideEvent* event) override;
|
||||
void keyReleaseEvent(QKeyEvent* event) override;
|
||||
bool eventFilter(QObject* obj, QEvent* event) override;
|
||||
|
||||
signals:
|
||||
/**
|
||||
|
|
|
@ -34,11 +34,11 @@ class AdditionalInfoDialog : public QDialog
|
|||
|
||||
public:
|
||||
AdditionalInfoDialog(QWidget* parent, const QList<QByteArray>& visibleRoles);
|
||||
virtual ~AdditionalInfoDialog();
|
||||
~AdditionalInfoDialog() override;
|
||||
QList<QByteArray> visibleRoles() const;
|
||||
|
||||
public slots:
|
||||
void accept() Q_DECL_OVERRIDE;
|
||||
void accept() override;
|
||||
|
||||
private:
|
||||
QList<QByteArray> m_visibleRoles;
|
||||
|
|
|
@ -60,11 +60,11 @@ public:
|
|||
* sub directories.
|
||||
*/
|
||||
ApplyViewPropsJob(const QUrl& dir, const ViewProperties& viewProps);
|
||||
virtual ~ApplyViewPropsJob();
|
||||
~ApplyViewPropsJob() override;
|
||||
int progress() const;
|
||||
|
||||
private slots:
|
||||
virtual void slotResult(KJob* job) Q_DECL_OVERRIDE;
|
||||
void slotResult(KJob* job) override;
|
||||
void slotEntries(KIO::Job*, const KIO::UDSEntryList&);
|
||||
|
||||
private:
|
||||
|
|
|
@ -37,7 +37,7 @@ class DolphinSettingsDialog : public KPageDialog
|
|||
|
||||
public:
|
||||
explicit DolphinSettingsDialog(const QUrl& url, QWidget* parent = 0);
|
||||
virtual ~DolphinSettingsDialog();
|
||||
~DolphinSettingsDialog() override;
|
||||
|
||||
signals:
|
||||
void settingsChanged();
|
||||
|
|
|
@ -37,13 +37,13 @@ class BehaviorSettingsPage : public SettingsPageBase
|
|||
|
||||
public:
|
||||
BehaviorSettingsPage(const QUrl &url, QWidget* parent);
|
||||
virtual ~BehaviorSettingsPage();
|
||||
~BehaviorSettingsPage() override;
|
||||
|
||||
/** @see SettingsPageBase::applySettings() */
|
||||
virtual void applySettings() Q_DECL_OVERRIDE;
|
||||
void applySettings() override;
|
||||
|
||||
/** @see SettingsPageBase::restoreDefaults() */
|
||||
virtual void restoreDefaults() Q_DECL_OVERRIDE;
|
||||
void restoreDefaults() override;
|
||||
|
||||
private:
|
||||
void loadSettings();
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
ConfigurePreviewPluginDialog(const QString& pluginName,
|
||||
const QString& desktopEntryName,
|
||||
QWidget* parent);
|
||||
virtual ~ConfigurePreviewPluginDialog() = default;
|
||||
~ConfigurePreviewPluginDialog() override = default;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -32,13 +32,13 @@ class ConfirmationsSettingsPage : public SettingsPageBase
|
|||
|
||||
public:
|
||||
ConfirmationsSettingsPage(QWidget* parent);
|
||||
virtual ~ConfirmationsSettingsPage();
|
||||
~ConfirmationsSettingsPage() override;
|
||||
|
||||
/** @see SettingsPageBase::applySettings() */
|
||||
virtual void applySettings() Q_DECL_OVERRIDE;
|
||||
void applySettings() override;
|
||||
|
||||
/** @see SettingsPageBase::restoreDefaults() */
|
||||
virtual void restoreDefaults() Q_DECL_OVERRIDE;
|
||||
void restoreDefaults() override;
|
||||
|
||||
private:
|
||||
void loadSettings();
|
||||
|
|
|
@ -41,13 +41,13 @@ class GeneralSettingsPage : public SettingsPageBase
|
|||
|
||||
public:
|
||||
GeneralSettingsPage(const QUrl& url, QWidget* parent);
|
||||
virtual ~GeneralSettingsPage();
|
||||
~GeneralSettingsPage() override;
|
||||
|
||||
/** @see SettingsPageBase::applySettings() */
|
||||
virtual void applySettings() Q_DECL_OVERRIDE;
|
||||
void applySettings() override;
|
||||
|
||||
/** @see SettingsPageBase::restoreDefaults() */
|
||||
virtual void restoreDefaults() Q_DECL_OVERRIDE;
|
||||
void restoreDefaults() override;
|
||||
|
||||
private:
|
||||
QList<SettingsPageBase*> m_pages;
|
||||
|
|
|
@ -35,20 +35,20 @@ class PreviewsSettingsPage : public SettingsPageBase
|
|||
|
||||
public:
|
||||
PreviewsSettingsPage(QWidget* parent);
|
||||
virtual ~PreviewsSettingsPage();
|
||||
~PreviewsSettingsPage() override;
|
||||
|
||||
/**
|
||||
* Applies the general settings for the view modes
|
||||
* The settings are persisted automatically when
|
||||
* closing Dolphin.
|
||||
*/
|
||||
virtual void applySettings() Q_DECL_OVERRIDE;
|
||||
void applySettings() override;
|
||||
|
||||
/** Restores the settings to default values. */
|
||||
virtual void restoreDefaults() Q_DECL_OVERRIDE;
|
||||
void restoreDefaults() override;
|
||||
|
||||
protected:
|
||||
virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
|
||||
private slots:
|
||||
void configureService(const QModelIndex& index);
|
||||
|
|
|
@ -32,13 +32,13 @@ class StatusBarSettingsPage : public SettingsPageBase
|
|||
|
||||
public:
|
||||
StatusBarSettingsPage(QWidget* parent);
|
||||
virtual ~StatusBarSettingsPage();
|
||||
~StatusBarSettingsPage() override;
|
||||
|
||||
/** @see SettingsPageBase::applySettings() */
|
||||
virtual void applySettings() Q_DECL_OVERRIDE;
|
||||
void applySettings() override;
|
||||
|
||||
/** @see SettingsPageBase::restoreDefaults() */
|
||||
virtual void restoreDefaults() Q_DECL_OVERRIDE;
|
||||
void restoreDefaults() override;
|
||||
|
||||
private:
|
||||
void loadSettings();
|
||||
|
|
|
@ -34,10 +34,10 @@ class DolphinGeneralConfigModule : public KCModule
|
|||
|
||||
public:
|
||||
DolphinGeneralConfigModule(QWidget* parent, const QVariantList& args);
|
||||
virtual ~DolphinGeneralConfigModule();
|
||||
~DolphinGeneralConfigModule() override;
|
||||
|
||||
virtual void save() Q_DECL_OVERRIDE;
|
||||
virtual void defaults() Q_DECL_OVERRIDE;
|
||||
void save() override;
|
||||
void defaults() override;
|
||||
|
||||
private:
|
||||
QList<SettingsPageBase*> m_pages;
|
||||
|
|
|
@ -33,10 +33,10 @@ class DolphinNavigationConfigModule : public KCModule
|
|||
|
||||
public:
|
||||
DolphinNavigationConfigModule(QWidget* parent, const QVariantList& args);
|
||||
virtual ~DolphinNavigationConfigModule();
|
||||
~DolphinNavigationConfigModule() override;
|
||||
|
||||
virtual void save() Q_DECL_OVERRIDE;
|
||||
virtual void defaults() Q_DECL_OVERRIDE;
|
||||
void save() override;
|
||||
void defaults() override;
|
||||
|
||||
private:
|
||||
NavigationSettingsPage* m_navigation;
|
||||
|
|
|
@ -33,10 +33,10 @@ class DolphinServicesConfigModule : public KCModule
|
|||
|
||||
public:
|
||||
DolphinServicesConfigModule(QWidget* parent, const QVariantList& args);
|
||||
virtual ~DolphinServicesConfigModule();
|
||||
~DolphinServicesConfigModule() override;
|
||||
|
||||
virtual void save() Q_DECL_OVERRIDE;
|
||||
virtual void defaults() Q_DECL_OVERRIDE;
|
||||
void save() override;
|
||||
void defaults() override;
|
||||
|
||||
private:
|
||||
ServicesSettingsPage* m_services;
|
||||
|
|
|
@ -33,10 +33,10 @@ class DolphinViewModesConfigModule : public KCModule
|
|||
|
||||
public:
|
||||
DolphinViewModesConfigModule(QWidget* parent, const QVariantList& args);
|
||||
virtual ~DolphinViewModesConfigModule();
|
||||
~DolphinViewModesConfigModule() override;
|
||||
|
||||
virtual void save() Q_DECL_OVERRIDE;
|
||||
virtual void defaults() Q_DECL_OVERRIDE;
|
||||
void save() override;
|
||||
void defaults() override;
|
||||
|
||||
private:
|
||||
void reparseConfiguration();
|
||||
|
|
|
@ -32,13 +32,13 @@ class NavigationSettingsPage : public SettingsPageBase
|
|||
|
||||
public:
|
||||
NavigationSettingsPage(QWidget* parent);
|
||||
virtual ~NavigationSettingsPage();
|
||||
~NavigationSettingsPage() override;
|
||||
|
||||
/** @see SettingsPageBase::applySettings() */
|
||||
virtual void applySettings() Q_DECL_OVERRIDE;
|
||||
void applySettings() override;
|
||||
|
||||
/** @see SettingsPageBase::restoreDefaults() */
|
||||
virtual void restoreDefaults() Q_DECL_OVERRIDE;
|
||||
void restoreDefaults() override;
|
||||
|
||||
private:
|
||||
void loadSettings();
|
||||
|
|
|
@ -34,19 +34,19 @@ class ServiceItemDelegate : public KWidgetItemDelegate
|
|||
|
||||
public:
|
||||
explicit ServiceItemDelegate(QAbstractItemView* itemView, QObject* parent = 0);
|
||||
virtual ~ServiceItemDelegate();
|
||||
~ServiceItemDelegate() override;
|
||||
|
||||
virtual QSize sizeHint(const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const override;
|
||||
|
||||
virtual void paint(QPainter* painter, const QStyleOptionViewItem& option,
|
||||
const QModelIndex& index) const Q_DECL_OVERRIDE;
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem& option,
|
||||
const QModelIndex& index) const override;
|
||||
|
||||
virtual QList<QWidget*> createItemWidgets(const QModelIndex&) const Q_DECL_OVERRIDE;
|
||||
QList<QWidget*> createItemWidgets(const QModelIndex&) const override;
|
||||
|
||||
virtual void updateItemWidgets(const QList<QWidget*> widgets,
|
||||
void updateItemWidgets(const QList<QWidget*> widgets,
|
||||
const QStyleOptionViewItem& option,
|
||||
const QPersistentModelIndex& index) const Q_DECL_OVERRIDE;
|
||||
const QPersistentModelIndex& index) const override;
|
||||
|
||||
signals:
|
||||
void requestServiceConfiguration(const QModelIndex& index);
|
||||
|
|
|
@ -45,12 +45,12 @@ public:
|
|||
};
|
||||
|
||||
explicit ServiceModel(QObject* parent = 0);
|
||||
virtual ~ServiceModel();
|
||||
~ServiceModel() override;
|
||||
|
||||
virtual bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex()) Q_DECL_OVERRIDE;
|
||||
virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
|
||||
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
|
||||
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||
bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex()) override;
|
||||
bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) override;
|
||||
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
|
||||
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
|
||||
private:
|
||||
struct ServiceItem
|
||||
|
|
|
@ -36,16 +36,16 @@ class ServicesSettingsPage : public SettingsPageBase
|
|||
|
||||
public:
|
||||
ServicesSettingsPage(QWidget* parent);
|
||||
virtual ~ServicesSettingsPage();
|
||||
~ServicesSettingsPage() override;
|
||||
|
||||
/** @see SettingsPageBase::applySettings() */
|
||||
virtual void applySettings() Q_DECL_OVERRIDE;
|
||||
void applySettings() override;
|
||||
|
||||
/** @see SettingsPageBase::restoreDefaults() */
|
||||
virtual void restoreDefaults() Q_DECL_OVERRIDE;
|
||||
void restoreDefaults() override;
|
||||
|
||||
protected:
|
||||
virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
|
||||
private slots:
|
||||
/**
|
||||
|
|
|
@ -32,7 +32,7 @@ class SettingsPageBase : public QWidget
|
|||
|
||||
public:
|
||||
explicit SettingsPageBase(QWidget* parent = 0);
|
||||
virtual ~SettingsPageBase();
|
||||
~SettingsPageBase() override;
|
||||
|
||||
/**
|
||||
* Must be implemented by a derived class to
|
||||
|
|
|
@ -37,13 +37,13 @@ class StartupSettingsPage : public SettingsPageBase
|
|||
|
||||
public:
|
||||
StartupSettingsPage(const QUrl& url, QWidget* parent);
|
||||
virtual ~StartupSettingsPage();
|
||||
~StartupSettingsPage() override;
|
||||
|
||||
/** @see SettingsPageBase::applySettings() */
|
||||
virtual void applySettings() Q_DECL_OVERRIDE;
|
||||
void applySettings() override;
|
||||
|
||||
/** @see SettingsPageBase::restoreDefaults() */
|
||||
virtual void restoreDefaults() Q_DECL_OVERRIDE;
|
||||
void restoreDefaults() override;
|
||||
|
||||
private slots:
|
||||
void slotSettingsChanged();
|
||||
|
|
|
@ -31,13 +31,13 @@ class TrashSettingsPage : public SettingsPageBase
|
|||
|
||||
public:
|
||||
TrashSettingsPage(QWidget* parent);
|
||||
virtual ~TrashSettingsPage();
|
||||
~TrashSettingsPage() override;
|
||||
|
||||
/** @see SettingsPageBase::applySettings() */
|
||||
virtual void applySettings() Q_DECL_OVERRIDE;
|
||||
void applySettings() override;
|
||||
|
||||
/** @see SettingsPageBase::restoreDefaults() */
|
||||
virtual void restoreDefaults() Q_DECL_OVERRIDE;
|
||||
void restoreDefaults() override;
|
||||
|
||||
private:
|
||||
void loadSettings();
|
||||
|
|
|
@ -41,7 +41,7 @@ public:
|
|||
};
|
||||
|
||||
DolphinFontRequester(QWidget* parent);
|
||||
virtual ~DolphinFontRequester();
|
||||
~DolphinFontRequester() override;
|
||||
|
||||
void setMode(Mode mode);
|
||||
Mode mode() const;
|
||||
|
|
|
@ -37,13 +37,13 @@ class ViewSettingsPage : public SettingsPageBase
|
|||
|
||||
public:
|
||||
ViewSettingsPage(QWidget* parent);
|
||||
virtual ~ViewSettingsPage();
|
||||
~ViewSettingsPage() override;
|
||||
|
||||
/** @see SettingsPageBase::applySettings() */
|
||||
virtual void applySettings() Q_DECL_OVERRIDE;
|
||||
void applySettings() override;
|
||||
|
||||
/** @see SettingsPageBase::restoreDefaults() */
|
||||
virtual void restoreDefaults() Q_DECL_OVERRIDE;
|
||||
void restoreDefaults() override;
|
||||
|
||||
private:
|
||||
QList<ViewSettingsTab*> m_tabs;
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
};
|
||||
|
||||
explicit ViewSettingsTab(Mode mode, QWidget* parent = 0);
|
||||
virtual ~ViewSettingsTab();
|
||||
~ViewSettingsTab() override;
|
||||
|
||||
void applySettings();
|
||||
void restoreDefaultSettings();
|
||||
|
|
|
@ -45,10 +45,10 @@ class DOLPHIN_EXPORT ViewPropertiesDialog : public QDialog
|
|||
|
||||
public:
|
||||
explicit ViewPropertiesDialog(DolphinView* dolphinView);
|
||||
virtual ~ViewPropertiesDialog();
|
||||
~ViewPropertiesDialog() override;
|
||||
|
||||
public slots:
|
||||
void accept() Q_DECL_OVERRIDE;
|
||||
void accept() override;
|
||||
|
||||
private slots:
|
||||
void slotApply();
|
||||
|
|
|
@ -53,13 +53,13 @@ public:
|
|||
const QUrl& dir,
|
||||
const ViewProperties& viewProps);
|
||||
|
||||
virtual ~ViewPropsProgressInfo();
|
||||
~ViewPropsProgressInfo() override;
|
||||
|
||||
protected:
|
||||
virtual void closeEvent(QCloseEvent* event) Q_DECL_OVERRIDE;
|
||||
void closeEvent(QCloseEvent* event) override;
|
||||
|
||||
public slots:
|
||||
void reject() Q_DECL_OVERRIDE;
|
||||
void reject() override;
|
||||
|
||||
private slots:
|
||||
void updateProgress();
|
||||
|
|
|
@ -43,7 +43,7 @@ class DolphinStatusBar : public QWidget
|
|||
|
||||
public:
|
||||
DolphinStatusBar(QWidget* parent);
|
||||
virtual ~DolphinStatusBar();
|
||||
~DolphinStatusBar() override;
|
||||
|
||||
QString text() const;
|
||||
|
||||
|
@ -101,8 +101,8 @@ signals:
|
|||
void zoomLevelChanged(int zoomLevel);
|
||||
|
||||
protected:
|
||||
virtual void contextMenuEvent(QContextMenuEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual bool eventFilter(QObject* obj, QEvent* event) Q_DECL_OVERRIDE;
|
||||
void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
bool eventFilter(QObject* obj, QEvent* event) override;
|
||||
|
||||
private slots:
|
||||
void showZoomSliderToolTip(int zoomLevel);
|
||||
|
|
|
@ -54,7 +54,7 @@ class MountPointObserver : public QObject
|
|||
Q_OBJECT
|
||||
|
||||
explicit MountPointObserver(const QUrl& url, QObject* parent = 0);
|
||||
virtual ~MountPointObserver() {}
|
||||
~MountPointObserver() override {}
|
||||
|
||||
public:
|
||||
/**
|
||||
|
|
|
@ -31,7 +31,7 @@ class MountPointObserverCache : public QObject
|
|||
Q_OBJECT
|
||||
|
||||
MountPointObserverCache();
|
||||
virtual ~MountPointObserverCache();
|
||||
~MountPointObserverCache() override;
|
||||
|
||||
public:
|
||||
static MountPointObserverCache* instance();
|
||||
|
|
|
@ -33,7 +33,7 @@ class SpaceInfoObserver : public QObject
|
|||
|
||||
public:
|
||||
explicit SpaceInfoObserver(const QUrl& url, QObject* parent = 0);
|
||||
virtual ~SpaceInfoObserver();
|
||||
~SpaceInfoObserver() override;
|
||||
|
||||
quint64 size() const;
|
||||
quint64 available() const;
|
||||
|
|
|
@ -41,15 +41,15 @@ class StatusBarSpaceInfo : public KCapacityBar
|
|||
|
||||
public:
|
||||
explicit StatusBarSpaceInfo(QWidget* parent = 0);
|
||||
virtual ~StatusBarSpaceInfo();
|
||||
~StatusBarSpaceInfo() override;
|
||||
|
||||
void setUrl(const QUrl& url);
|
||||
QUrl url() const;
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
|
||||
void hideEvent(QHideEvent* event) Q_DECL_OVERRIDE;
|
||||
void mousePressEvent(QMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
void hideEvent(QHideEvent* event) override;
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
|
||||
private slots:
|
||||
void slotValuesChanged();
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
int styleHint(StyleHint hint,
|
||||
const QStyleOption* option = nullptr,
|
||||
const QWidget* widget = nullptr,
|
||||
QStyleHintReturn* returnData = nullptr) const Q_DECL_OVERRIDE
|
||||
QStyleHintReturn* returnData = nullptr) const override
|
||||
{
|
||||
switch (hint) {
|
||||
case QStyle::SH_ItemView_ActivateItemOnSingleClick:
|
||||
|
|
|
@ -30,8 +30,8 @@ class DummyModel : public KItemModelBase
|
|||
public:
|
||||
DummyModel();
|
||||
void setCount(int count);
|
||||
int count() const Q_DECL_OVERRIDE;
|
||||
QHash<QByteArray, QVariant> data(int index) const Q_DECL_OVERRIDE;
|
||||
int count() const override;
|
||||
QHash<QByteArray, QVariant> data(int index) const override;
|
||||
|
||||
private:
|
||||
int m_count;
|
||||
|
|
|
@ -37,10 +37,10 @@ class DOLPHIN_EXPORT DolphinFileItemListWidget : public KFileItemListWidget
|
|||
|
||||
public:
|
||||
DolphinFileItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent);
|
||||
virtual ~DolphinFileItemListWidget();
|
||||
~DolphinFileItemListWidget() override;
|
||||
|
||||
protected:
|
||||
virtual void refreshCache() Q_DECL_OVERRIDE;
|
||||
void refreshCache() override;
|
||||
|
||||
private:
|
||||
static QPixmap overlayForState(KVersionControlPlugin::ItemVersion version, int size);
|
||||
|
|
|
@ -40,7 +40,7 @@ class DOLPHIN_EXPORT DolphinItemListView : public KFileItemListView
|
|||
|
||||
public:
|
||||
explicit DolphinItemListView(QGraphicsWidget* parent = 0);
|
||||
virtual ~DolphinItemListView();
|
||||
~DolphinItemListView() override;
|
||||
|
||||
void setZoomLevel(int level);
|
||||
int zoomLevel() const;
|
||||
|
@ -49,14 +49,14 @@ public:
|
|||
void writeSettings();
|
||||
|
||||
protected:
|
||||
virtual KItemListWidgetCreatorBase* defaultWidgetCreator() const Q_DECL_OVERRIDE;
|
||||
virtual bool itemLayoutSupportsItemExpanding(ItemLayout layout) const Q_DECL_OVERRIDE;
|
||||
virtual void onItemLayoutChanged(ItemLayout current, ItemLayout previous) Q_DECL_OVERRIDE;
|
||||
virtual void onPreviewsShownChanged(bool shown) Q_DECL_OVERRIDE;
|
||||
virtual void onVisibleRolesChanged(const QList<QByteArray>& current,
|
||||
const QList<QByteArray>& previous) Q_DECL_OVERRIDE;
|
||||
KItemListWidgetCreatorBase* defaultWidgetCreator() const override;
|
||||
bool itemLayoutSupportsItemExpanding(ItemLayout layout) const override;
|
||||
void onItemLayoutChanged(ItemLayout current, ItemLayout previous) override;
|
||||
void onPreviewsShownChanged(bool shown) override;
|
||||
void onVisibleRolesChanged(const QList<QByteArray>& current,
|
||||
const QList<QByteArray>& previous) override;
|
||||
|
||||
virtual void updateFont() Q_DECL_OVERRIDE;
|
||||
void updateFont() override;
|
||||
|
||||
private:
|
||||
void updateGridSize();
|
||||
|
|
|
@ -48,7 +48,7 @@ signals:
|
|||
|
||||
private:
|
||||
DolphinNewFileMenuObserver();
|
||||
virtual ~DolphinNewFileMenuObserver();
|
||||
~DolphinNewFileMenuObserver() override;
|
||||
|
||||
friend class DolphinNewFileMenuObserverSingleton;
|
||||
};
|
||||
|
|
|
@ -40,7 +40,7 @@ class DOLPHIN_EXPORT DolphinRemoteEncoding: public QObject
|
|||
Q_OBJECT
|
||||
public:
|
||||
DolphinRemoteEncoding(QObject* parent, DolphinViewActionHandler* actionHandler);
|
||||
~DolphinRemoteEncoding();
|
||||
~DolphinRemoteEncoding() override;
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotAboutToOpenUrl();
|
||||
|
|
|
@ -93,7 +93,7 @@ public:
|
|||
*/
|
||||
DolphinView(const QUrl& url, QWidget* parent);
|
||||
|
||||
virtual ~DolphinView();
|
||||
~DolphinView() override;
|
||||
|
||||
/**
|
||||
* Returns the current active URL, where all actions are applied.
|
||||
|
@ -370,7 +370,7 @@ public slots:
|
|||
void stopLoading();
|
||||
|
||||
/** Activates the view if the item list container gets focus. */
|
||||
virtual bool eventFilter(QObject* watched, QEvent* event) Q_DECL_OVERRIDE;
|
||||
bool eventFilter(QObject* watched, QEvent* event) override;
|
||||
|
||||
signals:
|
||||
/**
|
||||
|
@ -552,10 +552,10 @@ signals:
|
|||
|
||||
protected:
|
||||
/** Changes the zoom level if Control is pressed during a wheel event. */
|
||||
virtual void wheelEvent(QWheelEvent* event) Q_DECL_OVERRIDE;
|
||||
void wheelEvent(QWheelEvent* event) override;
|
||||
|
||||
virtual void hideEvent(QHideEvent* event) Q_DECL_OVERRIDE;
|
||||
virtual bool event(QEvent* event) Q_DECL_OVERRIDE;
|
||||
void hideEvent(QHideEvent* event) override;
|
||||
bool event(QEvent* event) override;
|
||||
|
||||
private slots:
|
||||
/**
|
||||
|
|
|
@ -39,7 +39,7 @@ class DOLPHIN_EXPORT RenameDialog : public QDialog
|
|||
|
||||
public:
|
||||
explicit RenameDialog(QWidget* parent, const KFileItemList& items);
|
||||
virtual ~RenameDialog();
|
||||
~RenameDialog() override;
|
||||
|
||||
signals:
|
||||
void renamingFinished(const QList<QUrl>& urls);
|
||||
|
|
|
@ -46,7 +46,7 @@ class DolphinFileMetaDataWidget : public QWidget
|
|||
|
||||
public:
|
||||
DolphinFileMetaDataWidget(QWidget* parent = 0);
|
||||
virtual ~DolphinFileMetaDataWidget();
|
||||
~DolphinFileMetaDataWidget() override;
|
||||
|
||||
void setPreview(const QPixmap& pixmap);
|
||||
QPixmap preview() const;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue