Only display help options on platforms with web browsers
This commit is contained in:
parent
a3361363e4
commit
03c0be0720
8 changed files with 43 additions and 44 deletions
13
app/gui/ErrorMessageDialog.qml
Normal file
13
app/gui/ErrorMessageDialog.qml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import QtQuick 2.0
|
||||
import QtQuick.Dialogs 1.2
|
||||
|
||||
import SystemProperties 1.0
|
||||
|
||||
MessageDialog {
|
||||
property string helpText
|
||||
|
||||
informativeText: SystemProperties.hasBrowser ? helpText : ""
|
||||
icon: StandardIcon.Critical
|
||||
standardButtons: StandardButton.Ok |
|
||||
(SystemProperties.hasBrowser ? StandardButton.Help : 0)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue