Build with QT_NO_KEYWORDS

This commit is contained in:
Nicolas Fella 2021-02-08 23:09:59 +01:00 committed by Elvis Angelaccio
parent 7dc863add7
commit f65b0899c3
83 changed files with 144 additions and 147 deletions

View file

@ -15,11 +15,8 @@ add_definitions(
) )
remove_definitions( remove_definitions(
-DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_FROM_BYTEARRAY
-DQT_NO_SIGNALS_SLOTS_KEYWORDS
-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_ASCII
-DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_TO_ASCII
-DQT_NO_FOREACH
-DQT_NO_KEYWORDS
) )
########################################## ##########################################

View file

@ -111,7 +111,7 @@ public:
bool isFoldersPanelEnabled() const; bool isFoldersPanelEnabled() const;
bool isInformationPanelEnabled() const; bool isInformationPanelEnabled() const;
public slots: public Q_SLOTS:
/** /**
* Opens each directory in \p dirs in a separate tab. If \a splitView is set, * Opens each directory in \p dirs in a separate tab. If \a splitView is set,
* 2 directories are collected within one tab. * 2 directories are collected within one tab.
@ -174,7 +174,7 @@ public slots:
*/ */
void openNewTab(const QUrl& url); void openNewTab(const QUrl& url);
signals: Q_SIGNALS:
/** /**
* Is sent if the selection of the currently active view has * Is sent if the selection of the currently active view has
* been changed. * been changed.
@ -216,7 +216,7 @@ protected:
/** Handles QWhatsThisClickedEvent and passes all others on. */ /** Handles QWhatsThisClickedEvent and passes all others on. */
bool eventFilter(QObject*, QEvent*) override; bool eventFilter(QObject*, QEvent*) override;
protected slots: protected Q_SLOTS:
/** /**
* Calls the base method KXmlGuiWindow::saveNewToolbarConfig(). * Calls the base method KXmlGuiWindow::saveNewToolbarConfig().
* Is also used to set toolbar constraints and UrlNavigator position * Is also used to set toolbar constraints and UrlNavigator position
@ -224,7 +224,7 @@ protected slots:
*/ */
void saveNewToolbarConfig() override; void saveNewToolbarConfig() override;
private slots: private Q_SLOTS:
/** /**
* Refreshes the views of the main window by recreating them according to * Refreshes the views of the main window by recreating them according to
* the given Dolphin settings. * the given Dolphin settings.

View file

@ -28,10 +28,10 @@ public:
DolphinNewFileMenu(KActionCollection* collection, QObject* parent); DolphinNewFileMenu(KActionCollection* collection, QObject* parent);
~DolphinNewFileMenu() override; ~DolphinNewFileMenu() override;
signals: Q_SIGNALS:
void errorMessage(const QString& error); void errorMessage(const QString& error);
protected slots: protected Q_SLOTS:
/** @see KNewFileMenu::slotResult() */ /** @see KNewFileMenu::slotResult() */
void slotResult(KJob* job) override; void slotResult(KJob* job) override;
}; };

View file

@ -20,15 +20,15 @@ class DolphinRecentTabsMenu : public KActionMenu
public: public:
explicit DolphinRecentTabsMenu(QObject* parent); explicit DolphinRecentTabsMenu(QObject* parent);
public slots: public Q_SLOTS:
void rememberClosedTab(const QUrl& url, const QByteArray& state); void rememberClosedTab(const QUrl& url, const QByteArray& state);
void undoCloseTab(); void undoCloseTab();
signals: Q_SIGNALS:
void restoreClosedTab(const QByteArray& state); void restoreClosedTab(const QByteArray& state);
void closedTabsCountChanged(unsigned int count); void closedTabsCountChanged(unsigned int count);
private slots: private Q_SLOTS:
void handleAction(QAction* action); void handleAction(QAction* action);
private: private:

View file

@ -16,7 +16,7 @@ class DolphinTabBar : public QTabBar
public: public:
explicit DolphinTabBar(QWidget* parent); explicit DolphinTabBar(QWidget* parent);
signals: Q_SIGNALS:
void openNewActivatedTab(int index); void openNewActivatedTab(int index);
void tabDropEvent(int index, QDropEvent* event); void tabDropEvent(int index, QDropEvent* event);
void tabDetachRequested(int index); void tabDetachRequested(int index);
@ -35,7 +35,7 @@ protected:
*/ */
void contextMenuEvent(QContextMenuEvent* event) override; void contextMenuEvent(QContextMenuEvent* event) override;
private slots: private Q_SLOTS:
void slotAutoActivationTimeout(); void slotAutoActivationTimeout();
private: private:

View file

@ -149,12 +149,12 @@ public:
*/ */
void setActive(bool active); void setActive(bool active);
signals: Q_SIGNALS:
void activeViewChanged(DolphinViewContainer* viewContainer); void activeViewChanged(DolphinViewContainer* viewContainer);
void activeViewUrlChanged(const QUrl& url); void activeViewUrlChanged(const QUrl& url);
void splitterMoved(int pos, int index); void splitterMoved(int pos, int index);
private slots: private Q_SLOTS:
/** /**
* Deletes all zombie viewContainers that were used for the animation * Deletes all zombie viewContainers that were used for the animation
* and resets the minimum size of the others to a sane value. * and resets the minimum size of the others to a sane value.

View file

@ -65,7 +65,7 @@ public:
*/ */
bool isUrlOpen(const QUrl& url) const; bool isUrlOpen(const QUrl& url) const;
signals: Q_SIGNALS:
/** /**
* Is emitted when the active view has been changed, by changing the current * Is emitted when the active view has been changed, by changing the current
* tab or by activating another view when split view is enabled in the current * tab or by activating another view when split view is enabled in the current
@ -90,7 +90,7 @@ signals:
*/ */
void currentUrlChanged(const QUrl& url); void currentUrlChanged(const QUrl& url);
public slots: public Q_SLOTS:
/** /**
* Opens a new view with the current URL that is part of a tab and activates * Opens a new view with the current URL that is part of a tab and activates
* the tab. * the tab.
@ -167,7 +167,7 @@ public slots:
/** Moves all selected items to the inactive view. */ /** Moves all selected items to the inactive view. */
void moveToInactiveSplitView(); void moveToInactiveSplitView();
private slots: private Q_SLOTS:
/** /**
* Opens the tab with the index \a index in a new Dolphin instance and closes * Opens the tab with the index \a index in a new Dolphin instance and closes
* this tab. * this tab.

View file

@ -76,7 +76,7 @@ public:
*/ */
void setPlaceholderText(const QString &text); void setPlaceholderText(const QString &text);
public slots: public Q_SLOTS:
/** /**
* Switches to "breadcrumb" mode if the editable mode is not set to be * Switches to "breadcrumb" mode if the editable mode is not set to be
* preferred in the Dolphin settings. * preferred in the Dolphin settings.

View file

@ -30,7 +30,7 @@ class DolphinUrlNavigatorsController : public QObject
public: public:
DolphinUrlNavigatorsController() = delete; DolphinUrlNavigatorsController() = delete;
public slots: public Q_SLOTS:
/** /**
* Refreshes all DolphinUrlNavigators to get synchronized with the * Refreshes all DolphinUrlNavigators to get synchronized with the
* Dolphin settings if they were changed. * Dolphin settings if they were changed.
@ -57,7 +57,7 @@ private:
*/ */
static void unregisterDolphinUrlNavigator(DolphinUrlNavigator *dolphinUrlNavigator); static void unregisterDolphinUrlNavigator(DolphinUrlNavigator *dolphinUrlNavigator);
private slots: private Q_SLOTS:
/** /**
* Sets the completion mode for all DolphinUrlNavigators and saves it in settings. * Sets the completion mode for all DolphinUrlNavigators and saves it in settings.
*/ */

View file

@ -175,7 +175,7 @@ public:
*/ */
QString caption() const; QString caption() const;
public slots: public Q_SLOTS:
/** /**
* Sets the current active URL, where all actions are applied. The * Sets the current active URL, where all actions are applied. The
* URL navigator is synchronized with this URL. The signals * URL navigator is synchronized with this URL. The signals
@ -198,7 +198,7 @@ public slots:
*/ */
void setSearchModeEnabled(bool enabled); void setSearchModeEnabled(bool enabled);
signals: Q_SIGNALS:
/** /**
* Is emitted whenever the filter bar has changed its visibility state. * Is emitted whenever the filter bar has changed its visibility state.
*/ */
@ -215,7 +215,7 @@ signals:
*/ */
void writeStateChanged(bool isFolderWritable); void writeStateChanged(bool isFolderWritable);
private slots: private Q_SLOTS:
/** /**
* Updates the number of items (= number of files + number of * Updates the number of items (= number of files + number of
* directories) in the statusbar. If files are selected, the number * directories) in the statusbar. If files are selected, the number

View file

@ -35,7 +35,7 @@ public:
*/ */
void selectAll(); void selectAll();
public slots: public Q_SLOTS:
/** Clears the input field. */ /** Clears the input field. */
void clear(); void clear();
/** Clears the input field if the "lock button" is disabled. */ /** Clears the input field if the "lock button" is disabled. */
@ -43,7 +43,7 @@ public slots:
/** The input field is cleared also if the "lock button" is released. */ /** The input field is cleared also if the "lock button" is released. */
void slotToggleLockButton(bool checked); void slotToggleLockButton(bool checked);
signals: Q_SIGNALS:
/** /**
* Signal that reports the name filter has been * Signal that reports the name filter has been
* changed to \a nameFilter. * changed to \a nameFilter.

View file

@ -94,11 +94,11 @@ protected:
void onTransactionEnd() override; void onTransactionEnd() override;
void resizeEvent(QGraphicsSceneResizeEvent* event) override; void resizeEvent(QGraphicsSceneResizeEvent* event) override;
protected slots: protected Q_SLOTS:
void slotItemsRemoved(const KItemRangeList& itemRanges) override; void slotItemsRemoved(const KItemRangeList& itemRanges) override;
void slotSortRoleChanged(const QByteArray& current, const QByteArray& previous) override; void slotSortRoleChanged(const QByteArray& current, const QByteArray& previous) override;
private slots: private Q_SLOTS:
void triggerVisibleIndexRangeUpdate(); void triggerVisibleIndexRangeUpdate();
void updateVisibleIndexRange(); void updateVisibleIndexRange();

View file

@ -185,7 +185,7 @@ public:
*/ */
static QList<RoleInfo> rolesInformation(); static QList<RoleInfo> rolesInformation();
signals: Q_SIGNALS:
/** /**
* Is emitted if the loading of a directory has been started. It is * Is emitted if the loading of a directory has been started. It is
* assured that a signal directoryLoadingCompleted() will be send after * assured that a signal directoryLoadingCompleted() will be send after
@ -250,7 +250,7 @@ protected:
void onSortRoleChanged(const QByteArray& current, const QByteArray& previous, bool resortItems = true) override; void onSortRoleChanged(const QByteArray& current, const QByteArray& previous, bool resortItems = true) override;
void onSortOrderChanged(Qt::SortOrder current, Qt::SortOrder previous) override; void onSortOrderChanged(Qt::SortOrder current, Qt::SortOrder previous) override;
private slots: private Q_SLOTS:
/** /**
* Resorts all items dependent on the set sortRole(), sortOrder() * Resorts all items dependent on the set sortRole(), sortOrder()
* and foldersFirst() settings. * and foldersFirst() settings.

View file

@ -159,7 +159,7 @@ public:
void setScanDirectories(bool enabled); void setScanDirectories(bool enabled);
bool scanDirectories() const; bool scanDirectories() const;
private slots: private Q_SLOTS:
void slotItemsInserted(const KItemRangeList& itemRanges); void slotItemsInserted(const KItemRangeList& itemRanges);
void slotItemsRemoved(const KItemRangeList& itemRanges); void slotItemsRemoved(const KItemRangeList& itemRanges);
void slotItemsMoved(const KItemRange& itemRange, const QList<int> &movedToIndexes); void slotItemsMoved(const KItemRange& itemRange, const QList<int> &movedToIndexes);

View file

@ -51,7 +51,7 @@ protected:
void scrollContentsBy(int dx, int dy) override; void scrollContentsBy(int dx, int dy) override;
void wheelEvent(QWheelEvent* event) override; void wheelEvent(QWheelEvent* event) override;
private slots: private Q_SLOTS:
void slotScrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous); void slotScrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous);
void slotModelChanged(KItemModelBase* current, KItemModelBase* previous); void slotModelChanged(KItemModelBase* current, KItemModelBase* previous);
void slotViewChanged(KItemListView* current, KItemListView* previous); void slotViewChanged(KItemListView* current, KItemListView* previous);

View file

@ -126,7 +126,7 @@ public:
bool processEvent(QEvent* event, const QTransform& transform); bool processEvent(QEvent* event, const QTransform& transform);
signals: Q_SIGNALS:
/** /**
* Is emitted if exactly one item has been activated by e.g. a mouse-click * Is emitted if exactly one item has been activated by e.g. a mouse-click
* or by pressing Return/Enter. * or by pressing Return/Enter.
@ -217,10 +217,10 @@ signals:
void decreaseZoom(); void decreaseZoom();
void swipeUp(); void swipeUp();
public slots: public Q_SLOTS:
void slotStateChanged(QScroller::State newState); void slotStateChanged(QScroller::State newState);
private slots: private Q_SLOTS:
void slotViewScrollOffsetChanged(qreal current, qreal previous); void slotViewScrollOffsetChanged(qreal current, qreal previous);
/** /**

View file

@ -58,7 +58,7 @@ public:
*/ */
qreal preferredColumnWidth(const QByteArray& role) const; qreal preferredColumnWidth(const QByteArray& role) const;
signals: Q_SIGNALS:
/** /**
* Is emitted if the width of a column has been adjusted by the user with the mouse * Is emitted if the width of a column has been adjusted by the user with the mouse
* (no signal is emitted if KItemListHeader::setColumnWidth() is invoked). * (no signal is emitted if KItemListHeader::setColumnWidth() is invoked).

View file

@ -63,7 +63,7 @@ public:
KItemModelBase* model() const; KItemModelBase* model() const;
signals: Q_SIGNALS:
void currentChanged(int current, int previous); void currentChanged(int current, int previous);
void selectionChanged(const KItemSet& current, const KItemSet& previous); void selectionChanged(const KItemSet& current, const KItemSet& previous);

View file

@ -270,7 +270,7 @@ public:
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override; void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override;
signals: Q_SIGNALS:
void scrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous); void scrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous);
void scrollOffsetChanged(qreal current, qreal previous); void scrollOffsetChanged(qreal current, qreal previous);
void maximumScrollOffsetChanged(qreal current, qreal previous); void maximumScrollOffsetChanged(qreal current, qreal previous);
@ -378,7 +378,7 @@ protected:
virtual void updateFont(); virtual void updateFont();
virtual void updatePalette(); virtual void updatePalette();
protected slots: protected Q_SLOTS:
virtual void slotItemsInserted(const KItemRangeList& itemRanges); virtual void slotItemsInserted(const KItemRangeList& itemRanges);
virtual void slotItemsRemoved(const KItemRangeList& itemRanges); virtual void slotItemsRemoved(const KItemRangeList& itemRanges);
virtual void slotItemsMoved(const KItemRange& itemRange, const QList<int>& movedToIndexes); virtual void slotItemsMoved(const KItemRange& itemRange, const QList<int>& movedToIndexes);
@ -392,7 +392,7 @@ protected slots:
virtual void slotCurrentChanged(int current, int previous); virtual void slotCurrentChanged(int current, int previous);
virtual void slotSelectionChanged(const KItemSet& current, const KItemSet& previous); virtual void slotSelectionChanged(const KItemSet& current, const KItemSet& previous);
private slots: private Q_SLOTS:
void slotAnimationFinished(QGraphicsWidget* widget, void slotAnimationFinished(QGraphicsWidget* widget,
KItemListViewAnimation::AnimationType type); KItemListViewAnimation::AnimationType type);
void slotLayoutTimerFinished(); void slotLayoutTimerFinished();

View file

@ -173,7 +173,7 @@ public:
*/ */
virtual QPixmap createDragPixmap(const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr); virtual QPixmap createDragPixmap(const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr);
signals: Q_SIGNALS:
void roleEditingCanceled(int index, const QByteArray& role, const QVariant& value); void roleEditingCanceled(int index, const QByteArray& role, const QVariant& value);
void roleEditingFinished(int index, const QByteArray& role, const QVariant& value); void roleEditingFinished(int index, const QByteArray& role, const QVariant& value);
@ -198,7 +198,7 @@ protected:
const KItemListWidgetInformant* informant() const; const KItemListWidgetInformant* informant() const;
private slots: private Q_SLOTS:
void slotHoverAnimationFinished(); void slotHoverAnimationFinished();
private: private:

View file

@ -183,7 +183,7 @@ public:
* @return Parent directory of the items that are shown * @return Parent directory of the items that are shown
*/ */
virtual QUrl directory() const; virtual QUrl directory() const;
signals: Q_SIGNALS:
/** /**
* Is emitted if one or more items have been inserted. Each item-range consists * Is emitted if one or more items have been inserted. Each item-range consists
* of: * of:

View file

@ -177,10 +177,10 @@ protected:
QStaticText staticText; QStaticText staticText;
}; };
public slots: public Q_SLOTS:
void finishRoleEditing(); void finishRoleEditing();
private slots: private Q_SLOTS:
void slotCutItemsChanged(); void slotCutItemsChanged();
void slotRoleEditingCanceled(const QByteArray& role, const QVariant& value); void slotRoleEditingCanceled(const QByteArray& role, const QVariant& value);
void slotRoleEditingFinished(const QByteArray& role, const QVariant& value); void slotRoleEditingFinished(const QByteArray& role, const QVariant& value);

View file

@ -38,7 +38,7 @@ public:
*/ */
void scanDirectory(const QString& path); void scanDirectory(const QString& path);
signals: Q_SIGNALS:
/** /**
* Signals that the directory \a path contains \a count items of size \a * Signals that the directory \a path contains \a count items of size \a
* Size calculation depends on parameter DetailsModeSettings::recursiveDirectorySizeLimit * Size calculation depends on parameter DetailsModeSettings::recursiveDirectorySizeLimit
@ -47,7 +47,7 @@ signals:
void requestDirectoryContentsCount(const QString& path, KDirectoryContentsCounterWorker::Options options); void requestDirectoryContentsCount(const QString& path, KDirectoryContentsCounterWorker::Options options);
private slots: private Q_SLOTS:
void slotResult(const QString& path, int count, long size); void slotResult(const QString& path, int count, long size);
void slotDirWatchDirty(const QString& path); void slotDirWatchDirty(const QString& path);
void slotItemsRemoved(); void slotItemsRemoved();

View file

@ -42,13 +42,13 @@ public:
*/ */
static CountResult subItemsCount(const QString& path, Options options); static CountResult subItemsCount(const QString& path, Options options);
signals: Q_SIGNALS:
/** /**
* Signals that the directory \a path contains \a count items and optionally the size of its content. * Signals that the directory \a path contains \a count items and optionally the size of its content.
*/ */
void result(const QString& path, int count, long size); void result(const QString& path, int count, long size);
public slots: public Q_SLOTS:
/** /**
* Requests the number of items inside the directory \a path using the * Requests the number of items inside the directory \a path using the
* options \a options. The result is announced via the signal \a result. * options \a options. The result is announced via the signal \a result.

View file

@ -29,13 +29,13 @@ public:
QList<QUrl> cutItems() const; QList<QUrl> cutItems() const;
signals: Q_SIGNALS:
void cutItemsChanged(); void cutItemsChanged();
protected: protected:
~KFileItemClipboard() override; ~KFileItemClipboard() override;
private slots: private Q_SLOTS:
void updateCutItems(); void updateCutItems();
private: private:

View file

@ -26,7 +26,7 @@ public:
explicit KFileItemModelDirLister(QObject* parent = nullptr); explicit KFileItemModelDirLister(QObject* parent = nullptr);
~KFileItemModelDirLister() override; ~KFileItemModelDirLister() override;
signals: Q_SIGNALS:
/** Is emitted whenever an error has occurred. */ /** Is emitted whenever an error has occurred. */
void errorMessage(const QString& msg); void errorMessage(const QString& msg);

View file

@ -54,7 +54,7 @@ public:
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override; void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override;
signals: Q_SIGNALS:
/** /**
* Is emitted if the width of a visible role has been adjusted by the user with the mouse * Is emitted if the width of a visible role has been adjusted by the user with the mouse
* (no signal is emitted if KItemListHeader::setVisibleRoleWidth() is invoked). * (no signal is emitted if KItemListHeader::setVisibleRoleWidth() is invoked).
@ -100,7 +100,7 @@ protected:
void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override; void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override;
void hoverMoveEvent(QGraphicsSceneHoverEvent* event) override; void hoverMoveEvent(QGraphicsSceneHoverEvent* event) override;
private slots: private Q_SLOTS:
void slotSortRoleChanged(const QByteArray& current, const QByteArray& previous); void slotSortRoleChanged(const QByteArray& current, const QByteArray& previous);
void slotSortOrderChanged(Qt::SortOrder current, Qt::SortOrder previous); void slotSortOrderChanged(Qt::SortOrder current, Qt::SortOrder previous);

View file

@ -48,12 +48,12 @@ public:
void cancelSearch(); void cancelSearch();
bool shouldClearSearchIfInputTimeReached(); bool shouldClearSearchIfInputTimeReached();
public slots: public Q_SLOTS:
void slotCurrentChanged(int current, int previous); void slotCurrentChanged(int current, int previous);
void slotSelectionChanged(const KItemSet& current, const KItemSet& previous); void slotSelectionChanged(const KItemSet& current, const KItemSet& previous);
signals: Q_SIGNALS:
/** /**
* Is emitted if the current item should be changed corresponding * Is emitted if the current item should be changed corresponding
* to \a text. * to \a text.

View file

@ -33,7 +33,7 @@ public:
bool eventFilter(QObject* watched, QEvent* event) override; bool eventFilter(QObject* watched, QEvent* event) override;
signals: Q_SIGNALS:
void roleEditingFinished(const QByteArray& role, const QVariant& value); void roleEditingFinished(const QByteArray& role, const QVariant& value);
void roleEditingCanceled(const QByteArray& role, const QVariant& value); void roleEditingCanceled(const QByteArray& role, const QVariant& value);
@ -41,7 +41,7 @@ protected:
bool event(QEvent* event) override; bool event(QEvent* event) override;
void keyPressEvent(QKeyEvent* event) override; void keyPressEvent(QKeyEvent* event) override;
private slots: private Q_SLOTS:
/** /**
* Increases the size of the editor in case if there is not * Increases the size of the editor in case if there is not
* enough room for the text. * enough room for the text.

View file

@ -33,7 +33,7 @@ public:
void setActive(bool active); void setActive(bool active);
bool isActive() const; bool isActive() const;
signals: Q_SIGNALS:
void activationChanged(bool active); void activationChanged(bool active);
void startPositionChanged(const QPointF& current, const QPointF& previous); void startPositionChanged(const QPointF& current, const QPointF& previous);
void endPositionChanged(const QPointF& current, const QPointF& previous); void endPositionChanged(const QPointF& current, const QPointF& previous);

View file

@ -72,7 +72,7 @@ public:
protected: protected:
bool eventFilter(QObject* obj, QEvent* event) override; bool eventFilter(QObject* obj, QEvent* event) override;
private slots: private Q_SLOTS:
void slotAnimationStateChanged(QAbstractAnimation::State newState, void slotAnimationStateChanged(QAbstractAnimation::State newState,
QAbstractAnimation::State oldState); QAbstractAnimation::State oldState);

View file

@ -72,10 +72,10 @@ public:
*/ */
bool isStarted(QGraphicsWidget* widget) const; bool isStarted(QGraphicsWidget* widget) const;
signals: Q_SIGNALS:
void finished(QGraphicsWidget* widget, KItemListViewAnimation::AnimationType type); void finished(QGraphicsWidget* widget, KItemListViewAnimation::AnimationType type);
private slots: private Q_SLOTS:
void slotFinished(); void slotFinished();
private: private:

View file

@ -25,7 +25,7 @@ public:
explicit MiddleClickActionEventFilter(QObject *parent); explicit MiddleClickActionEventFilter(QObject *parent);
~MiddleClickActionEventFilter() override; ~MiddleClickActionEventFilter() override;
signals: Q_SIGNALS:
void actionMiddleClicked(QAction *action); void actionMiddleClicked(QAction *action);
protected: protected:

View file

@ -40,7 +40,7 @@ public:
void rename(const KFileItem& item); void rename(const KFileItem& item);
signals: Q_SIGNALS:
void folderActivated(const QUrl& url); void folderActivated(const QUrl& url);
void folderMiddleClicked(const QUrl& url); void folderMiddleClicked(const QUrl& url);
void errorMessage(const QString& error); void errorMessage(const QString& error);
@ -55,7 +55,7 @@ protected:
/** @see QWidget::keyPressEvent() */ /** @see QWidget::keyPressEvent() */
void keyPressEvent(QKeyEvent* event) override; void keyPressEvent(QKeyEvent* event) override;
private slots: private Q_SLOTS:
void slotItemActivated(int index); void slotItemActivated(int index);
void slotItemMiddleClicked(int index); void slotItemMiddleClicked(int index);
void slotItemContextMenuRequested(int index, const QPointF& pos); void slotItemContextMenuRequested(int index, const QPointF& pos);

View file

@ -38,7 +38,7 @@ public:
/** Opens the context menu modal. */ /** Opens the context menu modal. */
void open(const QPoint& pos); void open(const QPoint& pos);
private slots: private Q_SLOTS:
/** Cuts the item m_fileItem. */ /** Cuts the item m_fileItem. */
void cut(); void cut();

View file

@ -28,10 +28,10 @@ public:
explicit InformationPanel(QWidget* parent = nullptr); explicit InformationPanel(QWidget* parent = nullptr);
~InformationPanel() override; ~InformationPanel() override;
signals: Q_SIGNALS:
void urlActivated(const QUrl& url); void urlActivated(const QUrl& url);
public slots: public Q_SLOTS:
/** /**
* This is invoked to inform the panel that the user has selected a new * This is invoked to inform the panel that the user has selected a new
* set of items. * set of items.
@ -59,7 +59,7 @@ protected:
/** @see QWidget::contextMenuEvent() */ /** @see QWidget::contextMenuEvent() */
void contextMenuEvent(QContextMenuEvent* event) override; void contextMenuEvent(QContextMenuEvent* event) override;
private slots: private Q_SLOTS:
/** /**
* Shows the information for the item of the URL which has been provided by * Shows the information for the item of the URL which has been provided by
* InformationPanel::requestDelayedItemInfo() and provides default actions. * InformationPanel::requestDelayedItemInfo() and provides default actions.

View file

@ -76,12 +76,12 @@ public:
*/ */
void setPreviewAutoPlay(bool autoPlay); void setPreviewAutoPlay(bool autoPlay);
signals: Q_SIGNALS:
void urlActivated( const QUrl& url ); void urlActivated( const QUrl& url );
void configurationFinished(); void configurationFinished();
void contextMenuRequested(const QPoint& pos); void contextMenuRequested(const QPoint& pos);
public slots: public Q_SLOTS:
/** /**
* Is invoked after the file meta data configuration dialog has been * Is invoked after the file meta data configuration dialog has been
* closed and refreshes the displayed meta data by the panel. * closed and refreshes the displayed meta data by the panel.
@ -94,7 +94,7 @@ protected:
bool event(QEvent * event) override; bool event(QEvent * event) override;
private slots: private Q_SLOTS:
/** /**
* Is invoked if no preview is available for the item. In this * Is invoked if no preview is available for the item. In this
* case the icon will be shown. * case the icon will be shown.

View file

@ -48,7 +48,7 @@ class PhononWidget : public QWidget
void setAutoPlay(bool autoPlay); void setAutoPlay(bool autoPlay);
bool eventFilter(QObject *object, QEvent *event) override; bool eventFilter(QObject *object, QEvent *event) override;
signals: Q_SIGNALS:
/** /**
* Is emitted whenever the video-state * Is emitted whenever the video-state
* has changed: If true is returned, a video * has changed: If true is returned, a video
@ -59,14 +59,14 @@ class PhononWidget : public QWidget
*/ */
void hasVideoChanged(bool hasVideo); void hasVideoChanged(bool hasVideo);
public slots: public Q_SLOTS:
void play(); void play();
protected: protected:
void showEvent(QShowEvent *event) override; void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override; void hideEvent(QHideEvent *event) override;
private slots: private Q_SLOTS:
void stateChanged(Phonon::State newstate); void stateChanged(Phonon::State newstate);
void stop(); void stop();
void finished(); void finished();

View file

@ -38,7 +38,7 @@ public:
QSize sizeHint() const override; QSize sizeHint() const override;
public slots: public Q_SLOTS:
/** /**
* This is invoked every time the folder being displayed in the * This is invoked every time the folder being displayed in the
* active Dolphin view changes. * active Dolphin view changes.

View file

@ -125,7 +125,7 @@ public:
bool isGroupHidden(KFilePlacesModel::GroupType type) const; bool isGroupHidden(KFilePlacesModel::GroupType type) const;
void setGroupHidden(KFilePlacesModel::GroupType type, bool hidden); void setGroupHidden(KFilePlacesModel::GroupType type, bool hidden);
signals: Q_SIGNALS:
void errorMessage(const QString& message); void errorMessage(const QString& message);
void storageSetupDone(int index, bool success); void storageSetupDone(int index, bool success);
void storageTearDownRequested(const QString& mountPath); void storageTearDownRequested(const QString& mountPath);
@ -137,7 +137,7 @@ protected:
void onItemRemoved(int index, KStandardItem* removedItem) override; void onItemRemoved(int index, KStandardItem* removedItem) override;
void onItemChanged(int index, const QSet<QByteArray>& changedRoles) override; void onItemChanged(int index, const QSet<QByteArray>& changedRoles) override;
private slots: private Q_SLOTS:
void slotStorageTearDownDone(Solid::ErrorType error, const QVariant& errorData); void slotStorageTearDownDone(Solid::ErrorType error, const QVariant& errorData);
void slotStorageSetupDone(Solid::ErrorType error, const QVariant& errorData, const QString& udi); void slotStorageSetupDone(Solid::ErrorType error, const QVariant& errorData, const QString& udi);

View file

@ -37,7 +37,7 @@ public:
explicit PlacesItemSignalHandler(PlacesItem* item, QObject* parent = nullptr); explicit PlacesItemSignalHandler(PlacesItem* item, QObject* parent = nullptr);
~PlacesItemSignalHandler() override; ~PlacesItemSignalHandler() override;
public slots: public Q_SLOTS:
/** /**
* Calls PlacesItem::onAccessibilityChanged() * Calls PlacesItem::onAccessibilityChanged()
*/ */
@ -47,7 +47,7 @@ public slots:
void onTrashEmptinessChanged(bool isTrashEmpty); void onTrashEmptinessChanged(bool isTrashEmpty);
signals: Q_SIGNALS:
void tearDownExternallyRequested(const QString& udi); void tearDownExternallyRequested(const QString& udi);
private: private:

View file

@ -33,7 +33,7 @@ public:
bool eventFilter(QObject *obj, QEvent *event) override; bool eventFilter(QObject *obj, QEvent *event) override;
signals: Q_SIGNALS:
void placeActivated(const QUrl& url); void placeActivated(const QUrl& url);
void placeMiddleClicked(const QUrl& url); void placeMiddleClicked(const QUrl& url);
void errorMessage(const QString& error); void errorMessage(const QString& error);
@ -46,12 +46,12 @@ protected:
bool urlChanged() override; bool urlChanged() override;
void showEvent(QShowEvent* event) override; void showEvent(QShowEvent* event) override;
public slots: public Q_SLOTS:
void readSettings() override; void readSettings() override;
void showHiddenEntries(bool shown); void showHiddenEntries(bool shown);
int hiddenListCount(); int hiddenListCount();
private slots: private Q_SLOTS:
void slotItemActivated(int index); void slotItemActivated(int index);
void slotItemMiddleClicked(int index); void slotItemMiddleClicked(int index);
void slotItemContextMenuRequested(int index, const QPointF& pos); void slotItemContextMenuRequested(int index, const QPointF& pos);

View file

@ -48,11 +48,11 @@ public:
bool hasProgramRunning() const; bool hasProgramRunning() const;
QString runningProgramName() const; QString runningProgramName() const;
public slots: public Q_SLOTS:
void terminalExited(); void terminalExited();
void dockVisibilityChanged(); void dockVisibilityChanged();
signals: Q_SIGNALS:
void hideTerminalPanel(); void hideTerminalPanel();
/** /**
@ -65,7 +65,7 @@ protected:
void showEvent(QShowEvent* event) override; void showEvent(QShowEvent* event) override;
private slots: private Q_SLOTS:
void slotMostLocalUrlResult(KJob* job); void slotMostLocalUrlResult(KJob* job);
void slotKonsolePartCurrentDirectoryChanged(const QString& dir); void slotKonsolePartCurrentDirectoryChanged(const QString& dir);

View file

@ -48,13 +48,13 @@ public:
void setFacetType(const QString& type); void setFacetType(const QString& type);
signals: Q_SIGNALS:
void facetChanged(); void facetChanged();
protected: protected:
void changeEvent(QEvent* event) override; void changeEvent(QEvent* event) override;
private slots: private Q_SLOTS:
void updateTagsMenu(); void updateTagsMenu();
void updateTagsMenuItems(const QUrl&, const KFileItemList& items); void updateTagsMenuItems(const QUrl&, const KFileItemList& items);

View file

@ -93,7 +93,7 @@ protected:
void keyReleaseEvent(QKeyEvent* event) override; void keyReleaseEvent(QKeyEvent* event) override;
bool eventFilter(QObject* obj, QEvent* event) override; bool eventFilter(QObject* obj, QEvent* event) override;
signals: Q_SIGNALS:
/** /**
* Is emitted when a searching should be triggered. * Is emitted when a searching should be triggered.
*/ */
@ -118,7 +118,7 @@ signals:
void activated(); void activated();
void focusViewRequest(); void focusViewRequest();
private slots: private Q_SLOTS:
void emitSearchRequest(); void emitSearchRequest();
void emitCloseRequest(); void emitCloseRequest();
void slotConfigurationChanged(); void slotConfigurationChanged();

View file

@ -51,7 +51,7 @@ public:
~ApplyViewPropsJob() override; ~ApplyViewPropsJob() override;
int progress() const; int progress() const;
private slots: private Q_SLOTS:
void slotResult(KJob* job) override; void slotResult(KJob* job) override;
void slotEntries(KIO::Job*, const KIO::UDSEntryList&); void slotEntries(KIO::Job*, const KIO::UDSEntryList&);

View file

@ -39,7 +39,7 @@ public:
protected: protected:
void showEvent(QShowEvent* event) override; void showEvent(QShowEvent* event) override;
private slots: private Q_SLOTS:
/** /**
* Loads locally installed services. * Loads locally installed services.
*/ */

View file

@ -26,10 +26,10 @@ public:
explicit DolphinSettingsDialog(const QUrl& url, QWidget* parent = nullptr, KActionCollection* actions = {}); explicit DolphinSettingsDialog(const QUrl& url, QWidget* parent = nullptr, KActionCollection* actions = {});
~DolphinSettingsDialog() override; ~DolphinSettingsDialog() override;
signals: Q_SIGNALS:
void settingsChanged(); void settingsChanged();
private slots: private Q_SLOTS:
/** Enables the Apply button. */ /** Enables the Apply button. */
void enableApply(); void enableApply();
void applySettings(); void applySettings();

View file

@ -37,7 +37,7 @@ public:
protected: protected:
void showEvent(QShowEvent* event) override; void showEvent(QShowEvent* event) override;
private slots: private Q_SLOTS:
void configureService(const QModelIndex& index); void configureService(const QModelIndex& index);
private: private:

View file

@ -35,10 +35,10 @@ public:
const QStyleOptionViewItem& option, const QStyleOptionViewItem& option,
const QPersistentModelIndex& index) const override; const QPersistentModelIndex& index) const override;
signals: Q_SIGNALS:
void requestServiceConfiguration(const QModelIndex& index); void requestServiceConfiguration(const QModelIndex& index);
private slots: private Q_SLOTS:
void slotCheckBoxClicked(bool checked); void slotCheckBoxClicked(bool checked);
void slotConfigureButtonClicked(); void slotConfigureButtonClicked();
}; };

View file

@ -32,7 +32,7 @@ public:
*/ */
virtual void restoreDefaults() = 0; virtual void restoreDefaults() = 0;
signals: Q_SIGNALS:
/** Is emitted if a setting has been changed. */ /** Is emitted if a setting has been changed. */
void changed(); void changed();
}; };

View file

@ -34,7 +34,7 @@ public:
/** @see SettingsPageBase::restoreDefaults() */ /** @see SettingsPageBase::restoreDefaults() */
void restoreDefaults() override; void restoreDefaults() override;
private slots: private Q_SLOTS:
void slotSettingsChanged(); void slotSettingsChanged();
void updateInitialViewOptions(); void updateInitialViewOptions();
void selectHomeUrl(); void selectHomeUrl();

View file

@ -43,11 +43,11 @@ public:
void setCustomFont(const QFont& font); void setCustomFont(const QFont& font);
QFont customFont() const; QFont customFont() const;
signals: Q_SIGNALS:
/** Is emitted, if the font has been changed. */ /** Is emitted, if the font has been changed. */
void changed(); void changed();
private slots: private Q_SLOTS:
void openFontDialog(); void openFontDialog();
void changeMode(int index); void changeMode(int index);

View file

@ -39,10 +39,10 @@ public:
void applySettings(); void applySettings();
void restoreDefaultSettings(); void restoreDefaultSettings();
signals: Q_SIGNALS:
void changed(); void changed();
private slots: private Q_SLOTS:
void slotDefaultSliderMoved(int value); void slotDefaultSliderMoved(int value);
void slotPreviewSliderMoved(int value); void slotPreviewSliderMoved(int value);

View file

@ -36,10 +36,10 @@ public:
explicit ViewPropertiesDialog(DolphinView* dolphinView); explicit ViewPropertiesDialog(DolphinView* dolphinView);
~ViewPropertiesDialog() override; ~ViewPropertiesDialog() override;
public slots: public Q_SLOTS:
void accept() override; void accept() override;
private slots: private Q_SLOTS:
void slotApply(); void slotApply();
void slotViewModeChanged(int index); void slotViewModeChanged(int index);
void slotSortingChanged(int index); void slotSortingChanged(int index);
@ -51,7 +51,7 @@ private slots:
void slotItemChanged(QListWidgetItem *item); void slotItemChanged(QListWidgetItem *item);
void markAsDirty(bool isDirty); void markAsDirty(bool isDirty);
signals: Q_SIGNALS:
void isDirtyChanged(bool isDirty); void isDirtyChanged(bool isDirty);
private: private:

View file

@ -45,10 +45,10 @@ public:
protected: protected:
void closeEvent(QCloseEvent* event) override; void closeEvent(QCloseEvent* event) override;
public slots: public Q_SLOTS:
void reject() override; void reject() override;
private slots: private Q_SLOTS:
void updateProgress(); void updateProgress();
void applyViewProperties(); void applyViewProperties();

View file

@ -79,12 +79,12 @@ public:
*/ */
void updateSpaceInfo(); void updateSpaceInfo();
public slots: public Q_SLOTS:
void setText(const QString& text); void setText(const QString& text);
void setUrl(const QUrl& url); void setUrl(const QUrl& url);
void setZoomLevel(int zoomLevel); void setZoomLevel(int zoomLevel);
signals: Q_SIGNALS:
/** /**
* Is emitted if the stop-button has been pressed during showing a progress. * Is emitted if the stop-button has been pressed during showing a progress.
*/ */
@ -95,7 +95,7 @@ signals:
protected: protected:
void contextMenuEvent(QContextMenuEvent* event) override; void contextMenuEvent(QContextMenuEvent* event) override;
private slots: private Q_SLOTS:
void showZoomSliderToolTip(int zoomLevel); void showZoomSliderToolTip(int zoomLevel);
void updateProgressInfo(); void updateProgressInfo();

View file

@ -68,20 +68,20 @@ public:
*/ */
static MountPointObserver* observerForUrl(const QUrl& url); static MountPointObserver* observerForUrl(const QUrl& url);
signals: Q_SIGNALS:
/** /**
* This signal is emitted when the size has been retrieved. * This signal is emitted when the size has been retrieved.
*/ */
void spaceInfoChanged(quint64 size, quint64 available); void spaceInfoChanged(quint64 size, quint64 available);
public slots: public Q_SLOTS:
/** /**
* If this slot is invoked, MountPointObserver starts a new driveSize job * If this slot is invoked, MountPointObserver starts a new driveSize job
* to get the drive's size. * to get the drive's size.
*/ */
void update(); void update();
private slots: private Q_SLOTS:
void freeSpaceResult(KIO::Job* job, KIO::filesize_t size, KIO::filesize_t available); void freeSpaceResult(KIO::Job* job, KIO::filesize_t size, KIO::filesize_t available);
private: private:

View file

@ -28,7 +28,7 @@ public:
*/ */
MountPointObserver* observerForUrl(const QUrl& url); MountPointObserver* observerForUrl(const QUrl& url);
private slots: private Q_SLOTS:
/** /**
* Removes the given \a observer from the cache. * Removes the given \a observer from the cache.
*/ */

View file

@ -27,16 +27,16 @@ public:
void setUrl(const QUrl& url); void setUrl(const QUrl& url);
public slots: public Q_SLOTS:
void update(); void update();
signals: Q_SIGNALS:
/** /**
* This signal is emitted when the size or available space changes. * This signal is emitted when the size or available space changes.
*/ */
void valuesChanged(); void valuesChanged();
private slots: private Q_SLOTS:
void spaceInfoChanged(quint64 size, quint64 available); void spaceInfoChanged(quint64 size, quint64 available);
private: private:

View file

@ -42,7 +42,7 @@ protected:
void hideEvent(QHideEvent* event) override; void hideEvent(QHideEvent* event) override;
void mousePressEvent(QMouseEvent* event) override; void mousePressEvent(QMouseEvent* event) override;
private slots: private Q_SLOTS:
void slotValuesChanged(); void slotValuesChanged();
private: private:

View file

@ -20,7 +20,7 @@ class DolphinMainWindowTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void initTestCase(); void initTestCase();
void init(); void init();
void testClosingTabsWithSearchBoxVisible(); void testClosingTabsWithSearchBoxVisible();

View file

@ -18,7 +18,7 @@ class DolphinSearchBoxTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void testBalooSearchParsing_data(); void testBalooSearchParsing_data();
void testBalooSearchParsing(); void testBalooSearchParsing();
}; };

View file

@ -12,7 +12,7 @@ class DolphinSearchBoxTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void init(); void init();
void cleanup(); void cleanup();

View file

@ -11,7 +11,7 @@ class DragAndDropHelperTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void testUrlListMatchesUrl_data(); void testUrlListMatchesUrl_data();
void testUrlListMatchesUrl(); void testUrlListMatchesUrl();
}; };

View file

@ -17,7 +17,7 @@ class KFileItemListViewTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void init(); void init();
void cleanup(); void cleanup();
void testGroupedItemChanges(); void testGroupedItemChanges();

View file

@ -43,7 +43,7 @@ class KFileItemModelBenchmark : public QObject
public: public:
KFileItemModelBenchmark(); KFileItemModelBenchmark();
private slots: private Q_SLOTS:
void insertAndRemoveManyItems_data(); void insertAndRemoveManyItems_data();
void insertAndRemoveManyItems(); void insertAndRemoveManyItems();

View file

@ -45,7 +45,7 @@ class KFileItemModelTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void init(); void init();
void cleanup(); void cleanup();

View file

@ -68,7 +68,7 @@ class KItemListControllerTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void initTestCase(); void initTestCase();
void cleanupTestCase(); void cleanupTestCase();

View file

@ -13,7 +13,7 @@ class KItemListKeyboardSearchManagerTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void init(); void init();
void testBasicKeyboardSearch(); void testBasicKeyboardSearch();

View file

@ -51,7 +51,7 @@ class KItemListSelectionManagerTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void init(); void init();
void cleanup(); void cleanup();

View file

@ -15,7 +15,7 @@ class KItemRangeTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void testFromSortedContainer_data(); void testFromSortedContainer_data();
void testFromSortedContainer(); void testFromSortedContainer();
}; };

View file

@ -84,7 +84,7 @@ class KItemSetTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void initTestCase(); void initTestCase();
void testConstruction_data(); void testConstruction_data();

View file

@ -16,7 +16,7 @@ class KStandardItemModelTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void init(); void init();
void cleanup(); void cleanup();

View file

@ -34,7 +34,7 @@ class PlacesItemModelTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void init(); void init();
void cleanup(); void cleanup();

View file

@ -14,7 +14,7 @@ class ViewPropertiesTest : public QObject
{ {
Q_OBJECT Q_OBJECT
private slots: private Q_SLOTS:
void init(); void init();
void cleanup(); void cleanup();

View file

@ -28,7 +28,7 @@ public:
static KIO::Job* empty(QWidget *window); static KIO::Job* empty(QWidget *window);
static bool isEmpty(); static bool isEmpty();
signals: Q_SIGNALS:
void emptinessChanged(bool isEmpty); void emptinessChanged(bool isEmpty);
private: private:

View file

@ -29,7 +29,7 @@ public:
void attach(const DolphinNewFileMenu* menu); void attach(const DolphinNewFileMenu* menu);
void detach(const DolphinNewFileMenu* menu); void detach(const DolphinNewFileMenu* menu);
signals: Q_SIGNALS:
void itemCreated(const QUrl& url); void itemCreated(const QUrl& url);
void errorMessage(const QString& error); void errorMessage(const QString& error);

View file

@ -315,7 +315,7 @@ public:
*/ */
void hideToolTip(const ToolTipManager::HideBehavior behavior = ToolTipManager::HideBehavior::Later); void hideToolTip(const ToolTipManager::HideBehavior behavior = ToolTipManager::HideBehavior::Later);
public slots: public Q_SLOTS:
/** /**
* Changes the directory to \a url. If the current directory is equal to * Changes the directory to \a url. If the current directory is equal to
* \a url, nothing will be done (use DolphinView::reload() instead). * \a url, nothing will be done (use DolphinView::reload() instead).
@ -409,7 +409,7 @@ public slots:
/** Activates the view if the item list container gets focus. */ /** Activates the view if the item list container gets focus. */
bool eventFilter(QObject* watched, QEvent* event) override; bool eventFilter(QObject* watched, QEvent* event) override;
signals: Q_SIGNALS:
/** /**
* Is emitted if the view has been activated by e. g. a mouse click. * Is emitted if the view has been activated by e. g. a mouse click.
*/ */
@ -600,7 +600,7 @@ protected:
void hideEvent(QHideEvent* event) override; void hideEvent(QHideEvent* event) override;
bool event(QEvent* event) override; bool event(QEvent* event) override;
private slots: private Q_SLOTS:
/** /**
* Marks the view as active (DolphinView:isActive() will return true) * Marks the view as active (DolphinView:isActive() will return true)
* and emits the 'activated' signal if it is not already active. * and emits the 'activated' signal if it is not already active.

View file

@ -46,7 +46,7 @@ public:
void setItems(const KFileItemList& items); void setItems(const KFileItemList& items);
KFileItemList items() const; KFileItemList items() const;
signals: Q_SIGNALS:
/** /**
* Is emitted after the meta data has been received for the items * Is emitted after the meta data has been received for the items
* set by DolphinFileMetaDataWidget::setItems(). * set by DolphinFileMetaDataWidget::setItems().

View file

@ -50,14 +50,14 @@ public:
*/ */
void hideToolTip(const HideBehavior behavior = HideBehavior::Later); void hideToolTip(const HideBehavior behavior = HideBehavior::Later);
signals: Q_SIGNALS:
/** /**
* Is emitted when the user clicks a tag or a link * Is emitted when the user clicks a tag or a link
* in the metadata widget. * in the metadata widget.
*/ */
void urlActivated(const QUrl& url); void urlActivated(const QUrl& url);
private slots: private Q_SLOTS:
void startContentRetrieval(); void startContentRetrieval();
void setPreviewPix(const KFileItem& item, const QPixmap& pix); void setPreviewPix(const KFileItem& item, const QPixmap& pix);
void previewFailed(); void previewFailed();

View file

@ -50,7 +50,7 @@ public:
QList<QAction*> actions(const KFileItemList& items) const; QList<QAction*> actions(const KFileItemList& items) const;
signals: Q_SIGNALS:
/** /**
* Is emitted if an information message with the content \a msg * Is emitted if an information message with the content \a msg
* should be shown. * should be shown.
@ -69,7 +69,7 @@ signals:
*/ */
void operationCompletedMessage(const QString& msg); void operationCompletedMessage(const QString& msg);
private slots: private Q_SLOTS:
/** /**
* Invokes verifyDirectory() with a small delay. If delayedDirectoryVerification() * Invokes verifyDirectory() with a small delay. If delayedDirectoryVerification()
* is invoked before the delay has been exceeded, the delay will be reset. This * is invoked before the delay has been exceeded, the delay will be reset. This

View file

@ -61,14 +61,14 @@ public:
void setNameFilter(const QString& nameFilter); void setNameFilter(const QString& nameFilter);
QString nameFilter() const; QString nameFilter() const;
public slots: public Q_SLOTS:
/** /**
* Sets the URL to \a url and emits the signals cancelPreviews() and * Sets the URL to \a url and emits the signals cancelPreviews() and
* urlChanged() if \a url is different for the current URL. * urlChanged() if \a url is different for the current URL.
*/ */
void setUrl(const QUrl& url); void setUrl(const QUrl& url);
signals: Q_SIGNALS:
/** /**
* Is emitted if the URL has been changed by ViewModeController::setUrl(). * Is emitted if the URL has been changed by ViewModeController::setUrl().
*/ */