update connection message for different platforms in HowToConnectDialog

This commit is contained in:
uncor3
2026-04-10 14:25:49 +00:00
parent 9ee112006b
commit 42e8e55223
+16 -2
View File
@@ -23,9 +23,23 @@ HowToConnectDialog::HowToConnectDialog(QWidget *parent) : QDialog{parent}
QSize(200, 200))); // first page
m_stackedWidget->addWidget(createPage("Accept the pairing dialog",
":/resources/trust.png")); // second
QString message;
#ifdef WIN32
message =
"You can now unplug the device. iDescriptor will connect to it "
"automatically (requires iOS 15 or later and the Bonjour service).";
#elif __linux__
message = "You can now unplug the device. iDescriptor will connect to it "
"automatically (requires iOS 15 or later and the Avahi daemon).";
#else
message = "You can now unplug the device. iDescriptor will connect to it "
"automatically (requires iOS 15 or later).";
#endif
m_stackedWidget->addWidget(
createPage("You can now unplug it iDescriptor will connect to it "
"automatically (iOS 15 or later is required)",
createPage(message,
":/resources/ios-version.png")); // third
contentLayout->addWidget(m_stackedWidget, 1);