mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
17 lines
404 B
C++
17 lines
404 B
C++
#pragma once
|
|
#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);
|
|
};
|