Clean up warnings and deprecations in base and dialogs
This commit is contained in:
@@ -49,18 +49,13 @@ class GuiAbout(NDialog):
|
||||
self.setObjectName("GuiAbout")
|
||||
|
||||
self.setWindowTitle(self.tr("About novelWriter"))
|
||||
self.resize(CONFIG.pxInt(700), CONFIG.pxInt(500))
|
||||
|
||||
hA = CONFIG.pxInt(8)
|
||||
hB = CONFIG.pxInt(16)
|
||||
nwH = CONFIG.pxInt(36)
|
||||
nwPx = CONFIG.pxInt(128)
|
||||
self.resize(700, 500)
|
||||
|
||||
# Logo and Banner
|
||||
self.nwImage = SHARED.theme.loadDecoration("nw-text", h=nwH)
|
||||
self.nwImage = SHARED.theme.loadDecoration("nw-text", h=36)
|
||||
|
||||
self.nwLogo = QLabel(self)
|
||||
self.nwLogo.setPixmap(SHARED.theme.getPixmap("novelwriter", (nwPx, nwPx)))
|
||||
self.nwLogo.setPixmap(SHARED.theme.getPixmap("novelwriter", (128, 128)))
|
||||
|
||||
self.nwLabel = QLabel(self)
|
||||
self.nwLabel.setPixmap(self.nwImage)
|
||||
@@ -79,8 +74,7 @@ class GuiAbout(NDialog):
|
||||
|
||||
self.txtCredits = QTextBrowser(self)
|
||||
self.txtCredits.setOpenExternalLinks(True)
|
||||
self.txtCredits.document().setDocumentMargin(0)
|
||||
self.txtCredits.setViewportMargins(0, hA, hA, 0)
|
||||
self.txtCredits.setViewportMargins(0, 8, 8, 0)
|
||||
|
||||
# Buttons
|
||||
self.btnBox = QDialogButtonBox(QtDialogClose, self)
|
||||
@@ -88,15 +82,15 @@ class GuiAbout(NDialog):
|
||||
|
||||
# Assemble
|
||||
self.innerBox = QVBoxLayout()
|
||||
self.innerBox.addSpacing(hB)
|
||||
self.innerBox.addSpacing(16)
|
||||
self.innerBox.addWidget(self.nwLabel)
|
||||
self.innerBox.addWidget(self.nwInfo)
|
||||
self.innerBox.addSpacing(hA)
|
||||
self.innerBox.addSpacing(8)
|
||||
self.innerBox.addWidget(self.nwLicence)
|
||||
self.innerBox.addSpacing(hA)
|
||||
self.innerBox.addSpacing(8)
|
||||
self.innerBox.addWidget(self.lblCredits)
|
||||
self.innerBox.addWidget(self.txtCredits)
|
||||
self.innerBox.addSpacing(hB)
|
||||
self.innerBox.addSpacing(16)
|
||||
self.innerBox.addWidget(self.btnBox)
|
||||
|
||||
self.outerBox = QHBoxLayout()
|
||||
|
||||
Reference in New Issue
Block a user