Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

Commit d816a1a

Browse files
authored
chore: Remove cpplint workaround for Qt signals (#523)
The new cpplint version 1.5.2 finally supports Qt signal definitions. - Removed all `// NOLINT` markers This closes #521
1 parent 64a2803 commit d816a1a

21 files changed

+25
-25
lines changed

components/media_player/sources/utils_mediaplayer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class MediaPlayerUtilsImageProvider : public QObject, public QQuickImageProvider
4343

4444
QImage requestImage(const QString& id, QSize* size, const QSize& requestedSize) override;
4545

46-
public slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
46+
public slots:
4747
void updateImage(const QImage& image);
4848

4949
signals:
@@ -61,7 +61,7 @@ class MediaPlayerUtilsWorker : public QObject {
6161
explicit MediaPlayerUtilsWorker(QObject* parent = nullptr);
6262
~MediaPlayerUtilsWorker();
6363

64-
public slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
64+
public slots:
6565
void generateImages(const QString& url);
6666
void generateImagesReply();
6767

@@ -94,7 +94,7 @@ class MediaPlayerUtils : public QObject {
9494
void setImageURL(QString url);
9595
void setEnabled(bool value);
9696

97-
public slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
97+
public slots:
9898
void onProcessingDone(const QColor& pixelColor, const QImage& image);
9999

100100
signals:

sources/bluetooth.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ class BluetoothControl : public QObject {
5151
void dockMessageSent();
5252
void dockSetupFailed();
5353

54-
public slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
54+
public slots:
5555
void lookForDocks();
5656
void sendCredentialsToDock(const QString &msg);
5757

58-
private slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
58+
private slots:
5959
void onDeviceDiscovered(const QBluetoothDeviceInfo &device);
6060
void onDiscoveryFinished();
6161
void onPairingDisplayConfirmation(const QBluetoothAddress &address, QString pin);

sources/factoryreset.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class FactoryReset : public QObject {
3838
bool isSupported() const;
3939
QString getError() const { return m_error; }
4040

41-
public slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
41+
public slots:
4242
void performReset();
4343

4444
signals:

sources/filedownload.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class FileDownload : public QObject {
9494
*/
9595
void downloadQueueEmpty();
9696

97-
private slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
97+
private slots:
9898
void startNextDownload();
9999
void onDownloadProgress(qint64 bytesReceived, qint64 bytesTotal);
100100
void onDownloadError(QNetworkReply::NetworkError error);

sources/fileio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
class FileIO : public QObject {
3030
Q_OBJECT
3131

32-
public slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
32+
public slots:
3333
bool write(const QString& source, const QString& data) {
3434
if (source.isEmpty())
3535
return false;

sources/hardware/batteryfuelgauge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class BatteryFuelGauge : public Device {
6060

6161
int getCapacity() { return m_capacity; }
6262

63-
public slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
63+
public slots:
6464
virtual void updateBatteryValues() = 0;
6565

6666
signals:

sources/hardware/buttonhandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class ButtonHandler : public QObject {
8080
YioAPI* m_api;
8181
bool m_resetButtonsPressed;
8282

83-
private slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
83+
private slots:
8484
void onInterrupt(int event);
8585
void onYIOAPIPressed(QString button);
8686
void onYIOAPIReleased(QString button);

sources/hardware/hardwarefactory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class HardwareFactory : public QObject {
177177
*/
178178
virtual bool buildDevices(const QVariantMap& config) = 0;
179179

180-
protected slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
180+
protected slots:
181181
/**
182182
* @brief Error callback function for device drivers. InitializationError and CommunicationError are propagated as
183183
* user notifications.

sources/hardware/linux/arm/bq27441.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class BQ27441 : public BatteryFuelGauge {
117117
// Extended Data Commands
118118
uint16_t getOpConfig();
119119

120-
public slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
120+
public slots:
121121
void updateBatteryValues() override;
122122

123123
// Device interface

sources/hardware/linux/arm/displaycontrol_yio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class DisplayControlYioThread : public QObject {
8989
private:
9090
void spi_screenreg_set(int32_t Addr, int32_t Data0, int32_t Data1);
9191

92-
public slots: // NOLINT open issue: https://github.com/cpplint/cpplint/pull/99
92+
public slots:
9393
void setBrightness(int from, int to);
9494
void enterStandby();
9595
void leaveStandby();

0 commit comments

Comments
 (0)