mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
Move leds to custom led class
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#ifndef LED_H
|
||||
#define LED_H
|
||||
|
||||
#include "QPushButton"
|
||||
|
||||
class Led : public QPushButton {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit Led(QWidget *parent = nullptr);
|
||||
explicit Led(const QString &text, QWidget *parent = nullptr);
|
||||
Led(const QIcon& icon, const QString &text, QWidget *parent = nullptr);
|
||||
~Led();
|
||||
private:
|
||||
bool is_read_only(QWidget* widget);
|
||||
void set_read_only(QWidget* widget, bool read_only);
|
||||
};
|
||||
|
||||
#endif // LED_H
|
||||
Reference in New Issue
Block a user