33 lines
594 B
C++
33 lines
594 B
C++
#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
|
|
|