equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #include <QGesture> |
18 #include <QGesture> |
19 #include <QGraphicsSceneResizeEvent> |
19 #include <QGraphicsSceneResizeEvent> |
20 #include <QPainter> |
20 #include <QPainter> |
21 #include <hblabel.h> |
21 #include <HbLabel> |
22 #include "hgcoverflowcontainer.h" |
22 #include "hgcoverflowcontainer.h" |
23 #include "hgmediawallrenderer.h" |
23 #include "hgmediawallrenderer.h" |
24 #include "hgwidgetitem.h" |
24 #include "hgwidgetitem.h" |
25 #include "hgcenteritemarea.h" |
25 #include "hgcenteritemarea.h" |
26 #include "trace.h" |
26 #include "trace.h" |
44 } |
44 } |
45 |
45 |
46 // events |
46 // events |
47 void HgCoverflowContainer::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
47 void HgCoverflowContainer::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
48 { |
48 { |
|
49 QPainter::RenderHints hints = painter->renderHints(); |
49 painter->setRenderHint(QPainter::Antialiasing, true); |
50 painter->setRenderHint(QPainter::Antialiasing, true); |
50 HgContainer::paint(painter, option, widget); |
51 HgContainer::paint(painter, option, widget); |
51 painter->setRenderHint(QPainter::Antialiasing, false); |
52 painter->setRenderHint(QPainter::Antialiasing, (hints.testFlag(QPainter::Antialiasing)) ); |
52 } |
53 } |
53 |
54 |
54 // from HgContainer |
55 // from HgContainer |
55 HgMediaWallRenderer* HgCoverflowContainer::createRenderer(Qt::Orientation scrollDirection) |
56 HgMediaWallRenderer* HgCoverflowContainer::createRenderer(Qt::Orientation scrollDirection) |
56 { |
57 { |