forked from openlp/openlp
Added a QR code to the remote plugin for Android users to download the Android app.
bzr-revno: 1871
This commit is contained in:
commit
2ea54182a6
@ -81,6 +81,21 @@ class RemoteTab(SettingsTab):
|
|||||||
self.stageUrl.setOpenExternalLinks(True)
|
self.stageUrl.setOpenExternalLinks(True)
|
||||||
self.serverSettingsLayout.addRow(self.stageUrlLabel, self.stageUrl)
|
self.serverSettingsLayout.addRow(self.stageUrlLabel, self.stageUrl)
|
||||||
self.leftLayout.addWidget(self.serverSettingsGroupBox)
|
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.qrDescriptionLabel.setWordWrap(True)
|
||||||
|
self.qrLayout.addWidget(self.qrDescriptionLabel)
|
||||||
self.leftLayout.addStretch()
|
self.leftLayout.addStretch()
|
||||||
self.rightLayout.addStretch()
|
self.rightLayout.addStretch()
|
||||||
QtCore.QObject.connect(self.twelveHourCheckBox,
|
QtCore.QObject.connect(self.twelveHourCheckBox,
|
||||||
@ -101,6 +116,12 @@ class RemoteTab(SettingsTab):
|
|||||||
self.twelveHourCheckBox.setText(
|
self.twelveHourCheckBox.setText(
|
||||||
translate('RemotePlugin.RemoteTab',
|
translate('RemotePlugin.RemoteTab',
|
||||||
'Display stage time in 12h format'))
|
'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):
|
def setUrls(self):
|
||||||
ipAddress = u'localhost'
|
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: 2.4 KiB |
@ -149,4 +149,7 @@
|
|||||||
<file>theme_new.png</file>
|
<file>theme_new.png</file>
|
||||||
<file>theme_edit.png</file>
|
<file>theme_edit.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
<qresource prefix="remotes">
|
||||||
|
<file>android_app_qr.png</file>
|
||||||
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
Loading…
Reference in New Issue
Block a user