Merge pull request #4488 from Rmys/master

kaptan:rebuild
This commit is contained in:
Rmys
2018-02-07 17:13:01 +03:00
committed by GitHub
2 changed files with 24 additions and 0 deletions
@@ -0,0 +1,14 @@
diff -Nuar a/kaptan5/kaptan.py b/kaptan5/kaptan.py
--- a/kaptan5/kaptan.py 2017-04-05 12:46:42.000000000 +0300
+++ b/kaptan5/kaptan.py 2018-02-06 01:23:49.000000000 +0300
@@ -36,8 +36,8 @@
self.setWindowIcon(QIcon.fromTheme("kaptan-icon"))
self.setMinimumSize(850, 600)
self.setMaximumSize(950, 620)
- x = (QDesktopWidget().screen().width() - self.width())/2
- y = (QDesktopWidget().screen().height() - self.height())/2
+ x = (QDesktopWidget().screenGeometry().width() - self.width())/2
+ y = (QDesktopWidget().screenGeometry().height() - self.height())/2
self.move(x, y)
self.setPixmap(QWizard.LogoPixmap, QPixmap(":/data/images/kaptan.png"))
+10
View File
@@ -20,6 +20,9 @@
<Dependency>python3-devel</Dependency>
<Dependency versionFrom="5.7.1">qt5-linguist</Dependency>
</BuildDependencies>
<Patches>
<Patch>screen.patch</Patch>
</Patches>
</Source>
<Package>
@@ -40,6 +43,13 @@
</Package>
<History>
<Update release="10">
<Date>2018-02-07</Date>
<Version>7.1</Version>
<Comment>Rebuild.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="9">
<Date>2017-04-05</Date>
<Version>7.1</Version>