forked from qt-creator/qt-creator
QmlDesigner: Fix error code in share dialog
* Add special text for error codes smaller 100 * Remove unused tool tip Task-number: QDS-14354 Change-Id: I6e313ea1928ee86aef73a0e5019ecf2112f2baa3 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
094379e2ce
commit
e8c4e73de4
@@ -473,7 +473,10 @@ Rectangle {
|
||||
|
||||
function onProjectUploadError(errorCode: int, message: string) {
|
||||
shareNotification.type = ShareNotification.NotificationType.Error
|
||||
shareNotification.setHelperText(qsTr("Upload failed (" + errorCode + ")."))
|
||||
if (errorCode < 100)
|
||||
shareNotification.setHelperText(qsTr("Upload failed. Please check your internet connection."))
|
||||
else
|
||||
shareNotification.setHelperText(qsTr("Upload failed (" + errorCode + ")."))
|
||||
|
||||
shareMenuItem.enabled = true
|
||||
}
|
||||
|
@@ -76,11 +76,6 @@ Item {
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
|
||||
StudioControls.ToolTipArea {
|
||||
anchors.fill: parent
|
||||
text: qsTr("This can be your message.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user