mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2025-12-19 01:52:30 +08:00
mainview: hide qr code generation button for sip account
Change-Id: I4a63c5d719dfbaf4d4d8b3c276e5cafe749ffcf0
This commit is contained in:
@@ -161,16 +161,19 @@ ComboBox {
|
|||||||
buttonImageHeight: height - 8
|
buttonImageHeight: height - 8
|
||||||
buttonImageWidth: width - 8
|
buttonImageWidth: width - 8
|
||||||
radius: height / 2
|
radius: height / 2
|
||||||
|
|
||||||
width: 24
|
width: 24
|
||||||
height: 24
|
height: 24
|
||||||
|
|
||||||
|
visible: AccountAdapter.currentAccountType === Profile.Type.RING
|
||||||
toolTipText: JamiStrings.displayQRCode
|
toolTipText: JamiStrings.displayQRCode
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
source: "qrc:/images/qrcode.png"
|
source: "qrc:/images/qrcode.png"
|
||||||
backgroundColor: "white"
|
backgroundColor: "white"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
qrDialog.open()
|
if (visible)
|
||||||
|
qrDialog.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -187,9 +190,12 @@ ComboBox {
|
|||||||
width: 25
|
width: 25
|
||||||
height: 25
|
height: 25
|
||||||
|
|
||||||
source: !mainViewWindow.inSettingsView ? "qrc:/images/icons/round-settings-24px.svg" :
|
source: !mainViewWindow.inSettingsView ?
|
||||||
"qrc:/images/icons/round-close-24px.svg"
|
"qrc:/images/icons/round-settings-24px.svg" :
|
||||||
toolTipText: !mainViewWindow.inSettingsView ? JamiStrings.openSettings : JamiStrings.closeSettings
|
"qrc:/images/icons/round-close-24px.svg"
|
||||||
|
toolTipText: !mainViewWindow.inSettingsView ?
|
||||||
|
JamiStrings.openSettings :
|
||||||
|
JamiStrings.closeSettings
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
backgroundColor: "white"
|
backgroundColor: "white"
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ Dialog {
|
|||||||
|
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
source: {
|
source: {
|
||||||
if (AccountAdapter.currentAccountId)
|
if (AccountAdapter.currentAccountId &&
|
||||||
|
AccountAdapter.currentAccountType === Profile.Type.RING)
|
||||||
return "image://qrImage/account_" + AccountAdapter.currentAccountId
|
return "image://qrImage/account_" + AccountAdapter.currentAccountId
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user