mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove hack for broken pyuic
This commit is contained in:
parent
2f75ac2fe9
commit
56d079512f
@ -1,7 +1,7 @@
|
|||||||
all : main_ui.py images_rc.py
|
all : main_ui.py images_rc.py
|
||||||
|
|
||||||
main_ui.py : main.ui
|
main_ui.py : main.ui
|
||||||
pyuic4 main.ui | sed -s s/^.*Margin.*// | sed -e s/^.*boxlayout\.setObjectName.*// > main_ui.py
|
pyuic4 main.ui > main_ui.py
|
||||||
|
|
||||||
images_rc.py : images.qrc images
|
images_rc.py : images.qrc images
|
||||||
pyrcc4 images.qrc > images_rc.py
|
pyrcc4 images.qrc > images_rc.py
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'main.ui'
|
# Form implementation generated from reading ui file 'main.ui'
|
||||||
#
|
#
|
||||||
# Created: Wed Jun 6 19:26:17 2007
|
# Created: Thu Jun 7 08:58:03 2007
|
||||||
# by: PyQt4 UI code generator 4-snapshot-20070530
|
# by: PyQt4 UI code generator 4-snapshot-20070606
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
|
||||||
@ -29,11 +29,8 @@ class Ui_MainWindow(object):
|
|||||||
|
|
||||||
self.hboxlayout = QtGui.QHBoxLayout()
|
self.hboxlayout = QtGui.QHBoxLayout()
|
||||||
self.hboxlayout.setSpacing(6)
|
self.hboxlayout.setSpacing(6)
|
||||||
|
self.hboxlayout.setMargin(0)
|
||||||
|
self.hboxlayout.setObjectName("hboxlayout")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
self.device_tree = DeviceView(self.centralwidget)
|
self.device_tree = DeviceView(self.centralwidget)
|
||||||
|
|
||||||
@ -68,10 +65,7 @@ class Ui_MainWindow(object):
|
|||||||
|
|
||||||
self.hboxlayout1 = QtGui.QHBoxLayout()
|
self.hboxlayout1 = QtGui.QHBoxLayout()
|
||||||
self.hboxlayout1.setSpacing(6)
|
self.hboxlayout1.setSpacing(6)
|
||||||
|
self.hboxlayout1.setMargin(0)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
self.hboxlayout1.setObjectName("hboxlayout1")
|
self.hboxlayout1.setObjectName("hboxlayout1")
|
||||||
|
|
||||||
self.label = QtGui.QLabel(self.centralwidget)
|
self.label = QtGui.QLabel(self.centralwidget)
|
||||||
@ -172,10 +166,7 @@ class Ui_MainWindow(object):
|
|||||||
|
|
||||||
self.hboxlayout2 = QtGui.QHBoxLayout()
|
self.hboxlayout2 = QtGui.QHBoxLayout()
|
||||||
self.hboxlayout2.setSpacing(6)
|
self.hboxlayout2.setSpacing(6)
|
||||||
|
self.hboxlayout2.setMargin(0)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
self.hboxlayout2.setObjectName("hboxlayout2")
|
self.hboxlayout2.setObjectName("hboxlayout2")
|
||||||
|
|
||||||
self.book_cover = CoverDisplay(self.centralwidget)
|
self.book_cover = CoverDisplay(self.centralwidget)
|
||||||
|
@ -20,12 +20,12 @@ from PyQt4.QtSvg import QSvgRenderer
|
|||||||
class RotatingIconEngine(QIconEngine):
|
class RotatingIconEngine(QIconEngine):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def create_pixmaps(path, size=16, delta=10):
|
def create_pixmaps(path, size=16, delta=20):
|
||||||
r = QSvgRenderer(path)
|
r = QSvgRenderer(path)
|
||||||
if not r.isValid():
|
if not r.isValid():
|
||||||
raise Exception(path + ' not valid svg')
|
raise Exception(path + ' not valid svg')
|
||||||
pixmaps = []
|
pixmaps = []
|
||||||
for angle in range(0, 360, 10):
|
for angle in range(0, 360, delta):
|
||||||
pm = QPixmap(size, size)
|
pm = QPixmap(size, size)
|
||||||
pm.fill(QColor(0,0,0,0))
|
pm.fill(QColor(0,0,0,0))
|
||||||
p = QPainter(pm)
|
p = QPainter(pm)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user