Examples: Use signals, slots instead of Q_SIGNALS, Q_SLOTS
Change-Id: I79a352d1bac11edf2d2b0443d2f1bb202fb4e254 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 65d9593413455e401e44006b07c555f27c293add) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
c3a003085b
commit
a8c0088b01
@ -14,13 +14,13 @@ public:
|
|||||||
Car();
|
Car();
|
||||||
QRectF boundingRect() const;
|
QRectF boundingRect() const;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public slots:
|
||||||
void accelerate();
|
void accelerate();
|
||||||
void decelerate();
|
void decelerate();
|
||||||
void turnLeft();
|
void turnLeft();
|
||||||
void turnRight();
|
void turnRight();
|
||||||
|
|
||||||
Q_SIGNALS:
|
signals:
|
||||||
void crashed();
|
void crashed();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -16,7 +16,7 @@ class PrintView : public QTableView
|
|||||||
public:
|
public:
|
||||||
PrintView();
|
PrintView();
|
||||||
|
|
||||||
public Q_SLOTS:
|
public slots:
|
||||||
void print(QPrinter *printer);
|
void print(QPrinter *printer);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user