forked from openlp/openlp
Added QR Code and link to download android app to settings tab
This commit is contained in:
parent
1862c7175b
commit
b77b0d18d7
@ -81,6 +81,20 @@ class RemoteTab(SettingsTab):
|
||||
self.stageUrl.setOpenExternalLinks(True)
|
||||
self.serverSettingsLayout.addRow(self.stageUrlLabel, self.stageUrl)
|
||||
self.leftLayout.addWidget(self.serverSettingsGroupBox)
|
||||
self.androidAppGroupBox = QtGui.QGroupBox(self.rightColumn)
|
||||
self.androidAppGroupBox.setObjectName(u'androidAppGroupBox')
|
||||
self.rightLayout.addWidget(self.androidAppGroupBox)
|
||||
self.qrLayout = QtGui.QVBoxLayout(self.androidAppGroupBox)
|
||||
self.qrLayout.setObjectName(u'qrLayout')
|
||||
self.qrCodeLabel = QtGui.QLabel(self.androidAppGroupBox)
|
||||
self.qrCodeLabel.setPixmap(QtGui.QPixmap(u':/remotes/android_app_qr.png'))
|
||||
self.qrCodeLabel.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.qrCodeLabel.setObjectName(u'qrCodeLabel')
|
||||
self.qrLayout.addWidget(self.qrCodeLabel)
|
||||
self.qrDescriptionLabel = QtGui.QLabel(self.androidAppGroupBox)
|
||||
self.qrDescriptionLabel.setObjectName(u'qrDescriptionLabel')
|
||||
self.qrDescriptionLabel.setOpenExternalLinks(True)
|
||||
self.qrLayout.addWidget(self.qrDescriptionLabel)
|
||||
self.leftLayout.addStretch()
|
||||
self.rightLayout.addStretch()
|
||||
QtCore.QObject.connect(self.twelveHourCheckBox,
|
||||
@ -101,6 +115,12 @@ class RemoteTab(SettingsTab):
|
||||
self.twelveHourCheckBox.setText(
|
||||
translate('RemotePlugin.RemoteTab',
|
||||
'Display stage time in 12h format'))
|
||||
self.androidAppGroupBox.setTitle(
|
||||
translate('RemotePlugin.RemoteTab', 'Android App'))
|
||||
self.qrDescriptionLabel.setText(translate('RemotePlugin.RemoteTab',
|
||||
'Scan the QR code or click <a '
|
||||
'href="https://market.android.com/details?id=org.openlp.android">'
|
||||
'download</a> to install the Android app from the Market.'))
|
||||
|
||||
def setUrls(self):
|
||||
ipAddress = u'localhost'
|
||||
|
BIN
resources/images/android_app_qr.png
Normal file
BIN
resources/images/android_app_qr.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 558 B |
@ -149,4 +149,7 @@
|
||||
<file>theme_new.png</file>
|
||||
<file>theme_edit.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="remotes">
|
||||
<file>android_app_qr.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
Loading…
Reference in New Issue
Block a user