mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-07 07:23:43 +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
33
Software/PC_Application/Menu/menuaction.h
Normal file
33
Software/PC_Application/Menu/menuaction.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#ifndef MENULABEL_H
|
||||
#define MENULABEL_H
|
||||
|
||||
#include "menuitem.h"
|
||||
#include <QVBoxLayout>
|
||||
#include <QLabel>
|
||||
|
||||
class MenuAction : public MenuItem
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum class ArrowType {
|
||||
None,
|
||||
Left,
|
||||
Right,
|
||||
};
|
||||
|
||||
MenuAction(const QString &l, ArrowType arrow = ArrowType::None);
|
||||
void AddSubline(const QString &l);
|
||||
void RemoveSubline();
|
||||
signals:
|
||||
void triggered();
|
||||
public slots:
|
||||
void userSelected() override;
|
||||
private:
|
||||
QVBoxLayout layout;
|
||||
QLabel *subline;
|
||||
protected:
|
||||
void mouseReleaseEvent(QMouseEvent *me) override;
|
||||
void mousePressEvent(QMouseEvent *me) override;
|
||||
};
|
||||
|
||||
#endif // MENULABEL_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue