Consistently use slots / signals

We started out using Q_SLOTS and Q_SIGNALS but then changed our mind.
Let's make this consistent again.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-06-19 10:20:16 -07:00
parent 0a92052765
commit 07a16574e9
7 changed files with 10 additions and 10 deletions

View file

@ -41,7 +41,7 @@ public slots:
void testSlot(); void testSlot();
void fixMessyQtModelBehaviour(); void fixMessyQtModelBehaviour();
Q_SIGNALS: signals:
void currentDiveChanged(int divenr); void currentDiveChanged(int divenr);
private: private:

View file

@ -27,7 +27,7 @@ public:
InterfaceThread(QObject *parent, device_data_t *data) ; InterfaceThread(QObject *parent, device_data_t *data) ;
virtual void run(); virtual void run();
Q_SIGNALS: signals:
void updateInterface(int value); void updateInterface(int value);
private: private:
device_data_t *data; device_data_t *data;

View file

@ -29,7 +29,7 @@ private:
struct dive* editingDiveCoords; struct dive* editingDiveCoords;
KMessageWidget* messageWidget; KMessageWidget* messageWidget;
public Q_SLOTS: public slots:
void changeDiveGeoPosition(qreal lon,qreal lat,GeoDataCoordinates::Unit); void changeDiveGeoPosition(qreal lon,qreal lat,GeoDataCoordinates::Unit);
void mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit); void mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit);
}; };

View file

@ -45,7 +45,7 @@ public:
void initialUiSetup(); void initialUiSetup();
public Q_SLOTS: public slots:
void addCylinder_clicked(); void addCylinder_clicked();
void addWeight_clicked(); void addWeight_clicked();
void updateDiveInfo(int dive); void updateDiveInfo(int dive);

View file

@ -44,7 +44,7 @@ public:
GlobeGPS *globe(); GlobeGPS *globe();
void showError(QString message); void showError(QString message);
private Q_SLOTS: private slots:
/* file menu action */ /* file menu action */
@ -90,7 +90,7 @@ private Q_SLOTS:
protected: protected:
void closeEvent(QCloseEvent *); void closeEvent(QCloseEvent *);
public Q_SLOTS: public slots:
void readSettings(); void readSettings();
void refreshDisplay(); void refreshDisplay();

View file

@ -42,7 +42,7 @@ public:
void mousePressEvent(QGraphicsSceneMouseEvent* event); void mousePressEvent(QGraphicsSceneMouseEvent* event);
void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
bool eventFilter(QObject* , QEvent* ); bool eventFilter(QObject* , QEvent* );
public Q_SLOTS: public slots:
void setRect(const QRectF& rect); void setRect(const QRectF& rect);
private: private:
@ -98,7 +98,7 @@ protected:
void wheelEvent(QWheelEvent* event); void wheelEvent(QWheelEvent* event);
void showEvent(QShowEvent* event); void showEvent(QShowEvent* event);
public Q_SLOTS: public slots:
void refresh(); void refresh();
void edit_dive_time(const QString& time); void edit_dive_time(const QString& time);

View file

@ -17,10 +17,10 @@ public:
static QPixmap starActive(); static QPixmap starActive();
static QPixmap starInactive(); static QPixmap starInactive();
Q_SIGNALS: signals:
void valueChanged(int stars); void valueChanged(int stars);
public Q_SLOTS: public slots:
void setCurrentStars(int value); void setCurrentStars(int value);
void setReadOnly( bool readOnly); void setReadOnly( bool readOnly);