Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e5c8d97e authored by Kurt Hindenburg's avatar Kurt Hindenburg

Disable QObject subclasses' copy constructor/assignment

https://doc.qt.io/qt-5/qobject.html#Q_DISABLE_COPY
parent 00048e2e
......@@ -77,6 +77,8 @@ public Q_SLOTS:
void slotActivateRequested(QStringList args, const QString &workingDir);
private:
Q_DISABLE_COPY(Application)
void listAvailableProfiles();
void listProfilePropertyInfo();
void startBackgroundMode(MainWindow *window);
......
......@@ -114,6 +114,8 @@ private Q_SLOTS:
void openBookmark(const KBookmark &bm, Qt::MouseButtons, Qt::KeyboardModifiers) Q_DECL_OVERRIDE;
private:
Q_DISABLE_COPY(BookmarkHandler)
QString titleForView(ViewProperties *view) const;
QUrl urlForView(ViewProperties *view) const;
QString iconForView(ViewProperties *view) const;
......
......@@ -492,6 +492,8 @@ private Q_SLOTS:
void bracketedPasteModeChanged(bool bracketedPasteMode);
private:
Q_DISABLE_COPY(Emulation)
bool _usesMouse;
bool _bracketedPasteMode;
QTimer _bulkTimer1;
......
......@@ -337,6 +337,8 @@ public:
public Q_SLOTS:
void activated();
private:
Q_DISABLE_COPY(FilterObject)
Filter::HotSpot *_filter;
};
......
......@@ -88,6 +88,8 @@ private Q_SLOTS:
void shortcutChanged(Profile::Ptr profile, const QKeySequence &sequence);
private:
Q_DISABLE_COPY(ProfileList)
QAction *actionForProfile(Profile::Ptr profile) const;
void updateAction(QAction *action, Profile::Ptr profile);
void updateEmptyAction();
......
......@@ -245,6 +245,8 @@ protected Q_SLOTS:
private Q_SLOTS:
private:
Q_DISABLE_COPY(ProfileManager)
// loads the mappings between shortcut key sequences and
// profile paths
void loadShortcuts();
......
......@@ -261,6 +261,8 @@ Q_SIGNALS:
void selectionChanged();
private:
Q_DISABLE_COPY(ScreenWindow)
int endWindowLine() const;
void fillUnusedArea();
......
......@@ -115,6 +115,8 @@ private Q_SLOTS:
void profileChanged(Profile::Ptr profile);
private:
Q_DISABLE_COPY(SessionManager)
// applies updates to a profile
// to all sessions currently using that profile
// if modifiedPropertiesOnly is true, only properties which
......
......@@ -364,6 +364,8 @@ private Q_SLOTS:
void searchBarDestroyed();
private:
Q_DISABLE_COPY(ViewContainer)
void forgetView(QWidget *view);
NavigationVisibility _navigationVisibility;
......
......@@ -362,6 +362,8 @@ private Q_SLOTS:
void closeTabFromContainer(ViewContainer *container, QWidget *view);
private:
Q_DISABLE_COPY(ViewManager)
void createView(Session *session, ViewContainer *container, int index);
static const ColorScheme *colorSchemeForProfile(const Profile::Ptr profile);
......
......@@ -146,6 +146,8 @@ protected:
/** Subclasses may call this method to change the identifier. */
void setIdentifier(int id);
private:
Q_DISABLE_COPY(ViewProperties)
QIcon _icon;
QString _title;
int _identifier;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment