update
This commit is contained in:
32
client/gui/props/BlackholePropertySection.h
Normal file
32
client/gui/props/BlackholePropertySection.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include "props/PropertySectionWidget.h"
|
||||
|
||||
#include <QString>
|
||||
|
||||
class QLabel;
|
||||
|
||||
namespace gui {
|
||||
|
||||
struct BlackholePropertyUiState {
|
||||
QString blackholeName;
|
||||
QString statusText;
|
||||
QString methodText;
|
||||
};
|
||||
|
||||
class BlackholePropertySection final : public PropertySectionWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit BlackholePropertySection(QWidget* parent = nullptr);
|
||||
|
||||
void clearDisconnected();
|
||||
void applyState(const BlackholePropertyUiState& s);
|
||||
|
||||
private:
|
||||
QLabel* m_name = nullptr;
|
||||
QLabel* m_status = nullptr;
|
||||
QLabel* m_method = nullptr;
|
||||
};
|
||||
|
||||
} // namespace gui
|
||||
|
||||
Reference in New Issue
Block a user