Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6c3391c

Browse files
authoredMay 15, 2021
refactor: use Q_SLOTS macro to boost signals compatibility (#6)
1 parent d6adb00 commit 6c3391c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎dialogs/findreplacedialog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class FINDREPLACESHARED_EXPORT FindReplaceDialog : public QDialog
5050
*/
5151
virtual void readSettings(QSettings &settings, const QString &prefix = "FindReplaceDialog");
5252

53-
public slots:
53+
public Q_SLOTS:
5454
/**
5555
* Sets the current textToFind (used to set it from specialized current selection, etc)
5656
*/

‎dialogs/findreplaceform.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class FINDREPLACESHARED_EXPORT FindReplaceForm : public QWidget
8080
*/
8181
virtual void readSettings(QSettings &settings, const QString &prefix = "FindReplaceDialog");
8282

83-
public slots:
83+
public Q_SLOTS:
8484
/**
8585
* Sets the current textToFind (used to set it from specialized current selection, etc)
8686
*/
@@ -139,7 +139,7 @@ class FINDREPLACESHARED_EXPORT FindReplaceForm : public QWidget
139139
/// shows a message in the dialog
140140
void showMessage(const QString &message);
141141

142-
protected slots:
142+
protected Q_SLOTS:
143143
/// when the text edit contents changed
144144
void textToFindChanged();
145145

‎examples/mainwindow.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MainWindow : public QMainWindow {
3030
void writeSettings();
3131
void readSettings();
3232

33-
private slots:
33+
private Q_SLOTS:
3434
void about();
3535

3636
void findDialog();

0 commit comments

Comments
 (0)
Please sign in to comment.