Improved About menu appeareance on Windows
This commit is contained in:
parent
513d6d48f1
commit
df7485dbd0
@ -97,7 +97,9 @@ class AboutDialog(QtGui.QDialog):
|
|||||||
if sys.platform.startswith('darwin'):
|
if sys.platform.startswith('darwin'):
|
||||||
self.setWindowTitle("")
|
self.setWindowTitle("")
|
||||||
else:
|
else:
|
||||||
self.setWindowTitle("About Syncplay")
|
self.setWindowTitle("About Syncplay")
|
||||||
|
if sys.platform.startswith('win'):
|
||||||
|
self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)
|
||||||
nameLabel = QtGui.QLabel("<center><strong>Syncplay</strong></center>")
|
nameLabel = QtGui.QLabel("<center><strong>Syncplay</strong></center>")
|
||||||
nameLabel.setFont(QtGui.QFont("Helvetica", 20))
|
nameLabel.setFont(QtGui.QFont("Helvetica", 20))
|
||||||
linkLabel = QtGui.QLabel("<center><a href=\"http://syncplay.pl\">syncplay.pl</a></center>")
|
linkLabel = QtGui.QLabel("<center><a href=\"http://syncplay.pl\">syncplay.pl</a></center>")
|
||||||
@ -1412,9 +1414,6 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
|
|
||||||
window.helpMenu = QtGui.QMenu(getMessage("help-menu-label"), self)
|
window.helpMenu = QtGui.QMenu(getMessage("help-menu-label"), self)
|
||||||
|
|
||||||
window.about = window.helpMenu.addAction("&About")
|
|
||||||
window.about.triggered.connect(self.openAbout)
|
|
||||||
|
|
||||||
window.userguideAction = window.helpMenu.addAction(QtGui.QIcon(self.resourcespath + 'help.png'),
|
window.userguideAction = window.helpMenu.addAction(QtGui.QIcon(self.resourcespath + 'help.png'),
|
||||||
getMessage("userguide-menu-label"))
|
getMessage("userguide-menu-label"))
|
||||||
window.userguideAction.triggered.connect(self.openUserGuide)
|
window.userguideAction.triggered.connect(self.openUserGuide)
|
||||||
@ -1422,6 +1421,14 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
getMessage("update-menu-label"))
|
getMessage("update-menu-label"))
|
||||||
window.updateAction.triggered.connect(self.userCheckForUpdates)
|
window.updateAction.triggered.connect(self.userCheckForUpdates)
|
||||||
|
|
||||||
|
if not sys.platform.startswith('darwin'):
|
||||||
|
window.helpMenu.addSeparator()
|
||||||
|
window.about = window.helpMenu.addAction(QtGui.QIcon(self.resourcespath + 'syncplay.png'),
|
||||||
|
'About Syncplay')
|
||||||
|
else:
|
||||||
|
window.about = window.helpMenu.addAction("&About")
|
||||||
|
window.about.triggered.connect(self.openAbout)
|
||||||
|
|
||||||
window.menuBar.addMenu(window.helpMenu)
|
window.menuBar.addMenu(window.helpMenu)
|
||||||
if not sys.platform.startswith('darwin'):
|
if not sys.platform.startswith('darwin'):
|
||||||
window.mainLayout.setMenuBar(window.menuBar)
|
window.mainLayout.setMenuBar(window.menuBar)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user