Implement world and server selection

Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
Yihe Li
2025-05-19 01:05:08 +08:00
parent 2e6981977b
commit 3529d29584
3 changed files with 71 additions and 19 deletions

View File

@ -43,9 +43,10 @@ class CreateShortcutDialog : public QDialog {
// Override target (world, server)
void on_targetCheckbox_stateChanged(int state);
void on_worldTarget_toggled(bool checked);
void on_serverTarget_toggled(bool checked);
void on_worldSelectionBox_currentIndexChanged(int index);
void on_serverAddressBox_textChanged(const QString& arg1);
void targetChanged();
void on_serverAddressBox_textChanged(const QString& text);
private:
// Data
@ -56,4 +57,7 @@ class CreateShortcutDialog : public QDialog {
// Index representations
enum class SaveTarget { Desktop, Applications, Other };
// Functions
void stateChanged();
};