mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 14:11:12 +01:00
19 lines
436 B
C++
19 lines
436 B
C++
#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
|