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(
-DQT_NO_CAST_FROM_BYTEARRAY
-DQT_NO_SIGNALS_SLOTS_KEYWORDS
-DQT_NO_CAST_FROM_ASCII
-DQT_NO_CAST_TO_ASCII
-DQT_NO_FOREACH
-DQT_NO_KEYWORDS
)
##########################################

View file

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

View file

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

View file

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

View file

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

View file

@ -149,12 +149,12 @@ public:
*/
void setActive(bool active);
signals:
Q_SIGNALS:
void activeViewChanged(DolphinViewContainer* viewContainer);
void activeViewUrlChanged(const QUrl& url);
void splitterMoved(int pos, int index);
private slots:
private Q_SLOTS:
/**
* Deletes all zombie viewContainers that were used for the animation
* 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;
signals:
Q_SIGNALS:
/**
* 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
@ -90,7 +90,7 @@ signals:
*/
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
* the tab.
@ -167,7 +167,7 @@ public slots:
/** Moves all selected items to the inactive view. */
void moveToInactiveSplitView();
private slots:
private Q_SLOTS:
/**
* Opens the tab with the index \a index in a new Dolphin instance and closes
* this tab.

View file

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

View file

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

View file

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

View file

@ -35,7 +35,7 @@ public:
*/
void selectAll();
public slots:
public Q_SLOTS:
/** Clears the input field. */
void clear();
/** 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. */
void slotToggleLockButton(bool checked);
signals:
Q_SIGNALS:
/**
* Signal that reports the name filter has been
* changed to \a nameFilter.

View file

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

View file

@ -185,7 +185,7 @@ public:
*/
static QList<RoleInfo> rolesInformation();
signals:
Q_SIGNALS:
/**
* Is emitted if the loading of a directory has been started. It is
* 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 onSortOrderChanged(Qt::SortOrder current, Qt::SortOrder previous) override;
private slots:
private Q_SLOTS:
/**
* Resorts all items dependent on the set sortRole(), sortOrder()
* and foldersFirst() settings.

View file

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

View file

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

View file

@ -126,7 +126,7 @@ public:
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
* or by pressing Return/Enter.
@ -217,10 +217,10 @@ signals:
void decreaseZoom();
void swipeUp();
public slots:
public Q_SLOTS:
void slotStateChanged(QScroller::State newState);
private slots:
private Q_SLOTS:
void slotViewScrollOffsetChanged(qreal current, qreal previous);
/**

View file

@ -58,7 +58,7 @@ public:
*/
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
* (no signal is emitted if KItemListHeader::setColumnWidth() is invoked).

View file

@ -63,7 +63,7 @@ public:
KItemModelBase* model() const;
signals:
Q_SIGNALS:
void currentChanged(int current, int 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;
signals:
Q_SIGNALS:
void scrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous);
void scrollOffsetChanged(qreal current, qreal previous);
void maximumScrollOffsetChanged(qreal current, qreal previous);
@ -378,7 +378,7 @@ protected:
virtual void updateFont();
virtual void updatePalette();
protected slots:
protected Q_SLOTS:
virtual void slotItemsInserted(const KItemRangeList& itemRanges);
virtual void slotItemsRemoved(const KItemRangeList& itemRanges);
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 slotSelectionChanged(const KItemSet& current, const KItemSet& previous);
private slots:
private Q_SLOTS:
void slotAnimationFinished(QGraphicsWidget* widget,
KItemListViewAnimation::AnimationType type);
void slotLayoutTimerFinished();

View file

@ -173,7 +173,7 @@ public:
*/
virtual QPixmap createDragPixmap(const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr);
signals:
Q_SIGNALS:
void roleEditingCanceled(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;
private slots:
private Q_SLOTS:
void slotHoverAnimationFinished();
private:

View file

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

View file

@ -177,10 +177,10 @@ protected:
QStaticText staticText;
};
public slots:
public Q_SLOTS:
void finishRoleEditing();
private slots:
private Q_SLOTS:
void slotCutItemsChanged();
void slotRoleEditingCanceled(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);
signals:
Q_SIGNALS:
/**
* Signals that the directory \a path contains \a count items of size \a
* Size calculation depends on parameter DetailsModeSettings::recursiveDirectorySizeLimit
@ -47,7 +47,7 @@ signals:
void requestDirectoryContentsCount(const QString& path, KDirectoryContentsCounterWorker::Options options);
private slots:
private Q_SLOTS:
void slotResult(const QString& path, int count, long size);
void slotDirWatchDirty(const QString& path);
void slotItemsRemoved();

View file

@ -42,13 +42,13 @@ public:
*/
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.
*/
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
* options \a options. The result is announced via the signal \a result.

View file

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

View file

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

View file

@ -54,7 +54,7 @@ public:
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
* (no signal is emitted if KItemListHeader::setVisibleRoleWidth() is invoked).
@ -100,7 +100,7 @@ protected:
void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override;
void hoverMoveEvent(QGraphicsSceneHoverEvent* event) override;
private slots:
private Q_SLOTS:
void slotSortRoleChanged(const QByteArray& current, const QByteArray& previous);
void slotSortOrderChanged(Qt::SortOrder current, Qt::SortOrder previous);

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -125,7 +125,7 @@ public:
bool isGroupHidden(KFilePlacesModel::GroupType type) const;
void setGroupHidden(KFilePlacesModel::GroupType type, bool hidden);
signals:
Q_SIGNALS:
void errorMessage(const QString& message);
void storageSetupDone(int index, bool success);
void storageTearDownRequested(const QString& mountPath);
@ -137,7 +137,7 @@ protected:
void onItemRemoved(int index, KStandardItem* removedItem) override;
void onItemChanged(int index, const QSet<QByteArray>& changedRoles) override;
private slots:
private Q_SLOTS:
void slotStorageTearDownDone(Solid::ErrorType error, const QVariant& errorData);
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);
~PlacesItemSignalHandler() override;
public slots:
public Q_SLOTS:
/**
* Calls PlacesItem::onAccessibilityChanged()
*/
@ -47,7 +47,7 @@ public slots:
void onTrashEmptinessChanged(bool isTrashEmpty);
signals:
Q_SIGNALS:
void tearDownExternallyRequested(const QString& udi);
private:

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -315,7 +315,7 @@ public:
*/
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
* \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. */
bool eventFilter(QObject* watched, QEvent* event) override;
signals:
Q_SIGNALS:
/**
* Is emitted if the view has been activated by e. g. a mouse click.
*/
@ -600,7 +600,7 @@ protected:
void hideEvent(QHideEvent* event) override;
bool event(QEvent* event) override;
private slots:
private Q_SLOTS:
/**
* Marks the view as active (DolphinView:isActive() will return true)
* and emits the 'activated' signal if it is not already active.

View file

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

View file

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

View file

@ -50,7 +50,7 @@ public:
QList<QAction*> actions(const KFileItemList& items) const;
signals:
Q_SIGNALS:
/**
* Is emitted if an information message with the content \a msg
* should be shown.
@ -69,7 +69,7 @@ signals:
*/
void operationCompletedMessage(const QString& msg);
private slots:
private Q_SLOTS:
/**
* Invokes verifyDirectory() with a small delay. If delayedDirectoryVerification()
* 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);
QString nameFilter() const;
public slots:
public Q_SLOTS:
/**
* Sets the URL to \a url and emits the signals cancelPreviews() and
* urlChanged() if \a url is different for the current URL.
*/
void setUrl(const QUrl& url);
signals:
Q_SIGNALS:
/**
* Is emitted if the URL has been changed by ViewModeController::setUrl().
*/