Commit ecaab0f7 authored by Ronan's avatar Ronan
Browse files

fix(SettingsWindow): rename icon property of TabButton to iconName (issue with...

fix(SettingsWindow): rename icon property of TabButton to iconName (issue with Qt 5.10 and new icon property)
parent ffa24e1e
......@@ -12,8 +12,8 @@ Controls.TabButton {
// ---------------------------------------------------------------------------
property string icon
property int iconSize: TabButtonStyle.icon.size
property string iconName
readonly property bool _isSelected: parent.parent.currentItem === button
......@@ -66,9 +66,9 @@ Controls.TabButton {
Layout.leftMargin: TabButtonStyle.text.leftPadding
icon: {
var icon = button.icon
return icon.length
? (icon + '_' + (button._isSelected ? 'selected' : 'normal'))
var iconName = button.iconName
return iconName.length
? (iconName + '_' + (button._isSelected ? 'selected' : 'normal'))
: ''
}
iconSize: button.iconSize
......
......@@ -48,43 +48,43 @@ ApplicationWindow {
id: tabBar
TabButton {
icon: 'settings_sip_accounts'
iconName: 'settings_sip_accounts'
text: qsTr('sipAccountsTab')
width: implicitWidth
}
TabButton {
icon: 'settings_audio'
iconName: 'settings_audio'
text: qsTr('audioTab')
width: implicitWidth
}
TabButton {
icon: 'settings_video'
iconName: 'settings_video'
text: qsTr('videoTab')
width: implicitWidth
}
TabButton {
icon: 'settings_call'
iconName: 'settings_call'
text: qsTr('callsAndChatTab')
width: implicitWidth
}
TabButton {
icon: 'settings_network'
iconName: 'settings_network'
text: qsTr('networkTab')
width: implicitWidth
}
TabButton {
icon: 'settings_advanced'
iconName: 'settings_advanced'
text: qsTr('uiTab')
width: implicitWidth
}
TabButton {
icon: 'settings_advanced'
iconName: 'settings_advanced'
text: qsTr('uiAdvanced')
width: implicitWidth
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment