mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
refactor: Resolve some clang warnings (#915)
This commit is contained in:
@@ -26,11 +26,12 @@ public:
|
||||
);
|
||||
|
||||
Option(const QCommandLineOption &other);
|
||||
virtual ~Option() = default;
|
||||
|
||||
virtual bool validate(Parser &parser, QString &value);
|
||||
QString name();
|
||||
QString getError();
|
||||
QString value(Parser &parser);
|
||||
QString getError();
|
||||
QString value(Parser &parser);
|
||||
const char* getCString(Parser &parser);
|
||||
|
||||
protected:
|
||||
|
@@ -18,7 +18,7 @@
|
||||
|
||||
namespace hyperionnet
|
||||
{
|
||||
class Reply;
|
||||
struct Reply;
|
||||
}
|
||||
|
||||
///
|
||||
|
@@ -24,7 +24,7 @@ public slots:
|
||||
///
|
||||
/// Performs a single frame grab and computes the led-colors
|
||||
///
|
||||
virtual void action();
|
||||
void action() override;
|
||||
|
||||
private:
|
||||
/// The actual grabber
|
||||
|
@@ -42,7 +42,7 @@ public:
|
||||
|
||||
///
|
||||
///@brief Set new width and height for dispmanx, overwrite Grabber.h impl
|
||||
virtual bool setWidthHeight(int width, int height);
|
||||
bool setWidthHeight(int width, int height) override;
|
||||
|
||||
private:
|
||||
///
|
||||
|
@@ -26,7 +26,7 @@ public slots:
|
||||
///
|
||||
/// Performs a single frame grab and computes the led-colors
|
||||
///
|
||||
virtual void action();
|
||||
void action() override;
|
||||
|
||||
private:
|
||||
/// The actual grabber
|
||||
|
@@ -32,7 +32,7 @@ public:
|
||||
///
|
||||
/// @brief Overwrite Grabber.h implememtation
|
||||
///
|
||||
virtual void setDevicePath(const QString& path);
|
||||
void setDevicePath(const QString& path) override;
|
||||
|
||||
private:
|
||||
/// Framebuffer device e.g. /dev/fb0
|
||||
|
@@ -26,7 +26,7 @@ public slots:
|
||||
///
|
||||
/// Performs a single frame grab and computes the led-colors
|
||||
///
|
||||
virtual void action();
|
||||
void action() override;
|
||||
|
||||
private:
|
||||
/// The actual grabber
|
||||
|
@@ -40,7 +40,7 @@ public:
|
||||
///
|
||||
/// @brief Overwrite Grabber.h implementation
|
||||
///
|
||||
virtual void setDisplayIndex(int index);
|
||||
void setDisplayIndex(int index) override;
|
||||
|
||||
private:
|
||||
/// display
|
||||
|
@@ -26,7 +26,7 @@ public slots:
|
||||
///
|
||||
/// Performs a single frame grab and computes the led-colors
|
||||
///
|
||||
virtual void action();
|
||||
void action() override;
|
||||
|
||||
private:
|
||||
/// The actual grabber
|
||||
|
@@ -27,22 +27,22 @@ public:
|
||||
/// @param[out] image The snapped screenshot (should be initialized with correct width and
|
||||
/// height)
|
||||
///
|
||||
virtual int grabFrame(Image<ColorRgb> & image);
|
||||
int grabFrame(Image<ColorRgb> & image);
|
||||
|
||||
///
|
||||
/// @brief Set a new video mode
|
||||
///
|
||||
virtual void setVideoMode(VideoMode mode);
|
||||
void setVideoMode(VideoMode mode) override;
|
||||
|
||||
///
|
||||
/// @brief Apply new width/height values, overwrite Grabber.h implementation as qt doesn't use width/height, just pixelDecimation to calc dimensions
|
||||
///
|
||||
virtual bool setWidthHeight(int width, int height) { return true; };
|
||||
bool setWidthHeight(int width, int height) override { return true; };
|
||||
|
||||
///
|
||||
/// @brief Apply new pixelDecimation
|
||||
///
|
||||
virtual void setPixelDecimation(int pixelDecimation);
|
||||
void setPixelDecimation(int pixelDecimation) override;
|
||||
|
||||
///
|
||||
/// Set the crop values
|
||||
@@ -51,12 +51,12 @@ public:
|
||||
/// @param cropTop Top pixel crop
|
||||
/// @param cropBottom Bottom pixel crop
|
||||
///
|
||||
virtual void setCropping(unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom);
|
||||
void setCropping(unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom) override;
|
||||
|
||||
///
|
||||
/// @brief Apply display index
|
||||
///
|
||||
virtual void setDisplayIndex(int index);
|
||||
void setDisplayIndex(int index) override;
|
||||
|
||||
private slots:
|
||||
///
|
||||
|
@@ -25,7 +25,7 @@ public slots:
|
||||
///
|
||||
/// Performs a single frame grab and computes the led-colors
|
||||
///
|
||||
virtual void action();
|
||||
void action() override;
|
||||
|
||||
private:
|
||||
/// The actual grabber
|
||||
|
@@ -22,11 +22,11 @@ public:
|
||||
bool getCecDetectionEnable();
|
||||
|
||||
public slots:
|
||||
bool start();
|
||||
void stop();
|
||||
bool start() override;
|
||||
void stop() override;
|
||||
|
||||
void setSignalThreshold(double redSignalThreshold, double greenSignalThreshold, double blueSignalThreshold);
|
||||
void setCropping(unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom);
|
||||
void setCropping(unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom) override;
|
||||
void setSignalDetectionOffset(double verticalMin, double horizontalMin, double verticalMax, double horizontalMax);
|
||||
void setSignalDetectionEnable(bool enable);
|
||||
void setCecDetectionEnable(bool enable);
|
||||
@@ -38,7 +38,7 @@ private slots:
|
||||
void newFrame(const Image<ColorRgb> & image);
|
||||
void readError(const char* err);
|
||||
|
||||
virtual void action();
|
||||
void action() override;
|
||||
|
||||
private:
|
||||
/// The V4L2 grabber
|
||||
|
@@ -34,23 +34,23 @@ public:
|
||||
/// @param[out] image The snapped screenshot (should be initialized with correct width and
|
||||
/// height)
|
||||
///
|
||||
virtual int grabFrame(Image<ColorRgb> & image, bool forceUpdate=false);
|
||||
int grabFrame(Image<ColorRgb> & image, bool forceUpdate=false);
|
||||
|
||||
///
|
||||
/// update dimension according current screen
|
||||
int updateScreenDimensions(bool force=false);
|
||||
|
||||
virtual void setVideoMode(VideoMode mode);
|
||||
void setVideoMode(VideoMode mode) override;
|
||||
|
||||
///
|
||||
/// @brief Apply new width/height values, overwrite Grabber.h implementation as X11 doesn't use width/height, just pixelDecimation to calc dimensions
|
||||
///
|
||||
virtual bool setWidthHeight(int width, int height) { return true; };
|
||||
bool setWidthHeight(int width, int height) override { return true; };
|
||||
|
||||
///
|
||||
/// @brief Apply new pixelDecimation
|
||||
///
|
||||
virtual void setPixelDecimation(int pixelDecimation);
|
||||
void setPixelDecimation(int pixelDecimation) override;
|
||||
|
||||
///
|
||||
/// Set the crop values
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
/// @param cropTop Top pixel crop
|
||||
/// @param cropBottom Bottom pixel crop
|
||||
///
|
||||
virtual void setCropping(unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom);
|
||||
void setCropping(unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom) override;
|
||||
|
||||
protected:
|
||||
bool nativeEventFilter(const QByteArray & eventType, void * message, long int * result) override;
|
||||
|
@@ -35,7 +35,7 @@ public slots:
|
||||
///
|
||||
/// Performs a single frame grab and computes the led-colors
|
||||
///
|
||||
virtual void action();
|
||||
void action() override;
|
||||
|
||||
private:
|
||||
/// The actual grabber
|
||||
|
Reference in New Issue
Block a user