Added lazy loading
This commit is contained in:
@@ -25,6 +25,11 @@ public:
|
||||
void setVersionsPanel(VersionsPanel *panel);
|
||||
bool isConnected() const;
|
||||
|
||||
// Called by main when user selects a tab for the first time
|
||||
void requestGamesData();
|
||||
void requestVersionsData();
|
||||
void requestSettingsData();
|
||||
|
||||
public slots:
|
||||
void startConnection();
|
||||
void closeConnection();
|
||||
@@ -40,13 +45,17 @@ private:
|
||||
void handleProtocol(const QString &msg);
|
||||
void broadcast(const QString &line);
|
||||
|
||||
QLineEdit *m_urlEdit = nullptr;
|
||||
QLabel *m_statusLabel = nullptr;
|
||||
QLineEdit *m_urlEdit = nullptr;
|
||||
QLabel *m_statusLabel = nullptr;
|
||||
QWebSocket m_socket;
|
||||
QList<QTextEdit *> m_logs;
|
||||
SettingsTree *m_settingsTree = nullptr;
|
||||
GamesPanel *m_gamesPanel = nullptr;
|
||||
VersionsPanel *m_versionsPanel = nullptr;
|
||||
SettingsTree *m_settingsTree = nullptr;
|
||||
GamesPanel *m_gamesPanel = nullptr;
|
||||
VersionsPanel *m_versionsPanel = nullptr;
|
||||
QStringList m_settingsKeys;
|
||||
int m_rnpCount = -1;
|
||||
int m_rnpCount = -1;
|
||||
|
||||
bool m_gamesRequested = false;
|
||||
bool m_versionsRequested = false;
|
||||
bool m_settingsRequested = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user