Minor changes
This commit is contained in:
parent
08c3a724ee
commit
171fbd28a3
1 changed files with 3 additions and 1 deletions
|
@ -23,6 +23,7 @@ class EvtDrawerScene(QGraphicsScene):
|
||||||
super().__init__(None)
|
super().__init__(None)
|
||||||
self.calState=calState
|
self.calState=calState
|
||||||
self.env=env
|
self.env=env
|
||||||
|
self.eventsRect=list()
|
||||||
|
|
||||||
def drawForeground(self, painter, rect):
|
def drawForeground(self, painter, rect):
|
||||||
origXF, origYF, widthF, heightF = rect.getRect()
|
origXF, origYF, widthF, heightF = rect.getRect()
|
||||||
|
@ -46,7 +47,8 @@ class EvtDrawerScene(QGraphicsScene):
|
||||||
eventHeight=80
|
eventHeight=80
|
||||||
colorWidth=20
|
colorWidth=20
|
||||||
for e in self.env.listEventsOn(2024,10,1):
|
for e in self.env.listEventsOn(2024,10,1):
|
||||||
painter.drawRect(x+po,y+po,width-po*2,eventHeight-po*2)
|
r=QRect(x+po,y+po,width-po*2,eventHeight-po*2)
|
||||||
|
painter.drawRect(r)
|
||||||
|
|
||||||
class EvtDrawer():
|
class EvtDrawer():
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue