forked from qt-creator/qt-creator
Android: move tooltip from ui to widget class and shorten long phrases
Change-Id: I15bd9f54e7d4dbc3fae62b331172d6bc8e74e7ad Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -429,13 +429,22 @@ AndroidSettingsWidget::AndroidSettingsWidget()
|
|||||||
m_ui.downloadSDKToolButton->setIcon(downloadIcon);
|
m_ui.downloadSDKToolButton->setIcon(downloadIcon);
|
||||||
m_ui.downloadNDKToolButton->setIcon(downloadIcon);
|
m_ui.downloadNDKToolButton->setIcon(downloadIcon);
|
||||||
m_ui.downloadOpenJDKToolButton->setIcon(downloadIcon);
|
m_ui.downloadOpenJDKToolButton->setIcon(downloadIcon);
|
||||||
m_ui.sdkToolsAutoDownloadButton->setToolTip(tr(
|
m_ui.sdkToolsAutoDownloadButton->setToolTip(
|
||||||
"Automatically download Android SDK Tools to selected location.\n\n"
|
tr("Automatically download Android SDK Tools to selected location.\n\n"
|
||||||
"If the selected path contains no valid SDK Tools, the SDK Tools package "
|
"If the selected path contains no valid SDK Tools, the SDK Tools package is downloaded\n"
|
||||||
"is downloaded from %1, and extracted to the selected path.\n"
|
"from %1,\n"
|
||||||
"After the SDK Tools are properly set up, you are prompted to install "
|
"and extracted to the selected path.\n"
|
||||||
"any essential packages required for Qt to build for Android.")
|
"After the SDK Tools are properly set up, you are prompted to install any essential\n"
|
||||||
.arg(m_androidConfig.sdkToolsUrl().toString()));
|
"packages required for Qt to build for Android.")
|
||||||
|
.arg(m_androidConfig.sdkToolsUrl().toString()));
|
||||||
|
|
||||||
|
m_ui.downloadOpenSSLPrebuiltLibs->setToolTip(
|
||||||
|
tr("Automatically download OpenSSL prebuilt libraries.\n\n"
|
||||||
|
"These libraries can be shipped with your application if any SSL operations\n"
|
||||||
|
"are performed. Find the checkbox under \"Projects > Build > Build Steps >\n"
|
||||||
|
"Build Android APK > Additional Libraries\".\n"
|
||||||
|
"If the automatic download fails, Qt Creator proposes to open the download URL\n"
|
||||||
|
"in the system's browser for manual download."));
|
||||||
|
|
||||||
connect(m_ui.SDKLocationPathChooser, &PathChooser::rawPathChanged,
|
connect(m_ui.SDKLocationPathChooser, &PathChooser::rawPathChanged,
|
||||||
this, &AndroidSettingsWidget::onSdkPathChanged);
|
this, &AndroidSettingsWidget::onSdkPathChanged);
|
||||||
|
|||||||
@@ -277,9 +277,6 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
|
||||||
<string>Automatically download OpenSSL prebuilt libraries. These libraries can be shipped with your application from "Projects > Build > Build Steps > Build Android APK > Additional Libraries" if any SSL operations are performed. If the automatic download fails, Qt Creator proposes to open the download URL in the system's browser for manual download.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Download OpenSSL</string>
|
<string>Download OpenSSL</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user