Examples: Use signals, slots instead of Q_SIGNALS, Q_SLOTS
Pick-to: 6.4 Change-Id: I79a352d1bac11edf2d2b0443d2f1bb202fb4e254 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
5961dbc0e2
commit
65d9593413
@ -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