feat: show network detail view
Includes refactor to not using mainwindow.ui form. More flexible layout management with programmatic initialization.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#ifndef NETWORKDETAILWIDGET_H
|
||||
#define NETWORKDETAILWIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class Store;
|
||||
class QLabel;
|
||||
class QProgressBar;
|
||||
class QListWidget;
|
||||
class QPushButton;
|
||||
|
||||
class NetworkDetailWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit NetworkDetailWidget(Store *store, QWidget *parent = nullptr);
|
||||
|
||||
void setNetwork(const QString &networkId);
|
||||
void setCurrentUserEmail(const QString &email);
|
||||
|
||||
private:
|
||||
void refresh();
|
||||
|
||||
Store *m_store;
|
||||
QString m_networkId;
|
||||
QString m_currentUserEmail;
|
||||
|
||||
QLabel *m_nameLabel;
|
||||
QLabel *m_adminLabel;
|
||||
QProgressBar *m_streamBar;
|
||||
QLabel *m_streamBarLabel;
|
||||
QListWidget *m_membersList;
|
||||
QPushButton *m_addMemberBtn;
|
||||
};
|
||||
|
||||
#endif // NETWORKDETAILWIDGET_H
|
||||
Reference in New Issue
Block a user