Fix indentation
This commit is contained in:
parent
84643dd6d7
commit
a3b9fd98f4
@ -108,7 +108,7 @@ class AboutDialog(QtWidgets.QDialog):
|
|||||||
else:
|
else:
|
||||||
self.setWindowTitle(getMessage("about-dialog-title"))
|
self.setWindowTitle(getMessage("about-dialog-title"))
|
||||||
if isWindows():
|
if isWindows():
|
||||||
self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)
|
self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)
|
||||||
nameLabel = QtWidgets.QLabel("<center><strong>Syncplay</strong></center>")
|
nameLabel = QtWidgets.QLabel("<center><strong>Syncplay</strong></center>")
|
||||||
nameLabel.setFont(QtGui.QFont("Helvetica", 20))
|
nameLabel.setFont(QtGui.QFont("Helvetica", 20))
|
||||||
linkLabel = QtWidgets.QLabel("<center><a href=\"http://syncplay.pl\">syncplay.pl</a></center>")
|
linkLabel = QtWidgets.QLabel("<center><a href=\"http://syncplay.pl\">syncplay.pl</a></center>")
|
||||||
@ -117,7 +117,7 @@ class AboutDialog(QtWidgets.QDialog):
|
|||||||
licenseLabel = QtWidgets.QLabel("<center><p>Copyright © 2017 Syncplay</p><p>" + getMessage("about-dialog-license-text") + "</p></center>")
|
licenseLabel = QtWidgets.QLabel("<center><p>Copyright © 2017 Syncplay</p><p>" + getMessage("about-dialog-license-text") + "</p></center>")
|
||||||
aboutIconPixmap = QtGui.QPixmap(resourcespath + u"syncplay.png")
|
aboutIconPixmap = QtGui.QPixmap(resourcespath + u"syncplay.png")
|
||||||
aboutIconLabel = QtWidgets.QLabel()
|
aboutIconLabel = QtWidgets.QLabel()
|
||||||
aboutIconLabel.setPixmap(aboutIconPixmap.scaled(120, 120, Qt.KeepAspectRatio))
|
aboutIconLabel.setPixmap(aboutIconPixmap.scaled(120, 120, Qt.KeepAspectRatio))
|
||||||
aboutLayout = QtWidgets.QGridLayout()
|
aboutLayout = QtWidgets.QGridLayout()
|
||||||
aboutLayout.addWidget(aboutIconLabel, 0, 0, 4, 2)
|
aboutLayout.addWidget(aboutIconLabel, 0, 0, 4, 2)
|
||||||
aboutLayout.addWidget(nameLabel, 0, 2, 1, 2)
|
aboutLayout.addWidget(nameLabel, 0, 2, 1, 2)
|
||||||
@ -131,22 +131,22 @@ class AboutDialog(QtWidgets.QDialog):
|
|||||||
dependenciesButton = QtWidgets.QPushButton(getMessage("about-dialog-dependencies"))
|
dependenciesButton = QtWidgets.QPushButton(getMessage("about-dialog-dependencies"))
|
||||||
dependenciesButton.setAutoDefault(False)
|
dependenciesButton.setAutoDefault(False)
|
||||||
dependenciesButton.clicked.connect(self.openDependencies)
|
dependenciesButton.clicked.connect(self.openDependencies)
|
||||||
aboutLayout.addWidget(dependenciesButton, 4, 3)
|
aboutLayout.addWidget(dependenciesButton, 4, 3)
|
||||||
aboutLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
|
aboutLayout.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
|
||||||
self.setSizeGripEnabled(False)
|
self.setSizeGripEnabled(False)
|
||||||
self.setLayout(aboutLayout)
|
self.setLayout(aboutLayout)
|
||||||
|
|
||||||
def openLicense(self):
|
def openLicense(self):
|
||||||
if isWindows():
|
if isWindows():
|
||||||
QtGui.QDesktopServices.openUrl(QUrl("file:///" + resourcespath + u"license.rtf"))
|
QtGui.QDesktopServices.openUrl(QUrl("file:///" + resourcespath + u"license.rtf"))
|
||||||
else:
|
else:
|
||||||
QtGui.QDesktopServices.openUrl(QUrl("file://" + resourcespath + u"license.rtf"))
|
QtGui.QDesktopServices.openUrl(QUrl("file://" + resourcespath + u"license.rtf"))
|
||||||
|
|
||||||
def openDependencies(self):
|
def openDependencies(self):
|
||||||
if isWindows():
|
if isWindows():
|
||||||
QtGui.QDesktopServices.openUrl(QUrl("file:///" + resourcespath + u"third-party-notices.rtf"))
|
QtGui.QDesktopServices.openUrl(QUrl("file:///" + resourcespath + u"third-party-notices.rtf"))
|
||||||
else:
|
else:
|
||||||
QtGui.QDesktopServices.openUrl(QUrl("file://" + resourcespath + u"third-party-notices.rtf"))
|
QtGui.QDesktopServices.openUrl(QUrl("file://" + resourcespath + u"third-party-notices.rtf"))
|
||||||
|
|
||||||
class MainWindow(QtWidgets.QMainWindow):
|
class MainWindow(QtWidgets.QMainWindow):
|
||||||
insertPosition = None
|
insertPosition = None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user