mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 15:04:11 +00:00
PC Application: partial firmware update dialog
This commit is contained in:
parent
8c8749accd
commit
07ba714f1f
134 changed files with 13954 additions and 7 deletions
28
Software/PC_Application/Menu/menubool.h
Normal file
28
Software/PC_Application/Menu/menubool.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef MENUBOOL_H
|
||||
#define MENUBOOL_H
|
||||
|
||||
#include <QObject>
|
||||
#include "menuitem.h"
|
||||
#include <QVBoxLayout>
|
||||
#include "CustomWidgets/toggleswitch.h"
|
||||
|
||||
class MenuBool : public MenuItem
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MenuBool(QString name, bool defaultValue = false);
|
||||
|
||||
signals:
|
||||
void valueChanged(bool value);
|
||||
public slots:
|
||||
void setValue(bool value);
|
||||
void userSelected() override;
|
||||
protected:
|
||||
void mouseReleaseEvent(QMouseEvent *me) override;
|
||||
void mousePressEvent(QMouseEvent *me) override;
|
||||
private:
|
||||
QVBoxLayout layout;
|
||||
ToggleSwitch *sw;
|
||||
};
|
||||
|
||||
#endif // MENUBOOL_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue