mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 02:36:51 -07:00
ServerItemWidget Styling
This commit is contained in:
parent
43926a6f3f
commit
a7ff2fef3f
10 changed files with 92 additions and 23 deletions
|
@ -25,6 +25,12 @@
|
|||
class DynamicGridWidget;
|
||||
class ServerItemWidget;
|
||||
|
||||
struct DisplayServer
|
||||
{
|
||||
DiscoveryHost discovery_host;
|
||||
bool discovered;
|
||||
};
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -35,17 +41,21 @@ class MainWindow : public QMainWindow
|
|||
|
||||
DiscoveryManager discovery_manager;
|
||||
|
||||
public:
|
||||
explicit MainWindow(QWidget *parent = nullptr);
|
||||
QList<DisplayServer> display_servers;
|
||||
|
||||
public slots:
|
||||
private slots:
|
||||
void ServerItemWidgetSelected();
|
||||
void ServerItemWidgetTriggered();
|
||||
|
||||
void RunDiscovery();
|
||||
void ShowSettings();
|
||||
|
||||
void DiscoveryHostsUpdated();
|
||||
void UpdateDisplayServers();
|
||||
void UpdateServerWidgets();
|
||||
|
||||
public:
|
||||
explicit MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow() override;
|
||||
};
|
||||
|
||||
#endif //CHIAKI_MAINWINDOW_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue