Improved About menu appeareance on Windows

This commit is contained in:
alby128 2017-10-08 19:26:40 +02:00
parent 925ddb394c
commit cf1e739a48

View File

@ -100,7 +100,9 @@ class AboutDialog(QtWidgets.QDialog):
if sys.platform.startswith('darwin'):
self.setWindowTitle("")
else:
self.setWindowTitle("About Syncplay")
self.setWindowTitle("About Syncplay")
if sys.platform.startswith('win'):
self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)
nameLabel = QtWidgets.QLabel("<center><strong>Syncplay</strong></center>")
nameLabel.setFont(QtGui.QFont("Helvetica", 20))
linkLabel = QtWidgets.QLabel("<center><a href=\"http://syncplay.pl\">syncplay.pl</a></center>")
@ -1436,9 +1438,6 @@ class MainWindow(QtWidgets.QMainWindow):
# Help menu
window.helpMenu = QtWidgets.QMenu(getMessage("help-menu-label"), self)
window.about = window.helpMenu.addAction("&About")
window.about.triggered.connect(self.openAbout)
window.userguideAction = window.helpMenu.addAction(QtGui.QPixmap(self.resourcespath + 'help.png'),
getMessage("userguide-menu-label"))
@ -1446,6 +1445,14 @@ class MainWindow(QtWidgets.QMainWindow):
window.updateAction = window.helpMenu.addAction(QtGui.QPixmap(self.resourcespath + 'application_get.png'),
getMessage("update-menu-label"))
window.updateAction.triggered.connect(self.userCheckForUpdates)
if not sys.platform.startswith('darwin'):
window.helpMenu.addSeparator()
window.about = window.helpMenu.addAction(QtGui.QPixmap(self.resourcespath + 'syncplay.png'),
'About Syncplay')
else:
window.about = window.helpMenu.addAction("&About")
window.about.triggered.connect(self.openAbout)
window.menuBar.addMenu(window.helpMenu)
if not sys.platform.startswith('darwin'):