The API changed for rotations, requiring another argument for positions.
[contacts_plasmoid.git] / main.cpp
blobe2a6611ffece270bfd47e3dd49f6067632a54372
1 #include <QtGui>
2 #include "appui.h"
4 #include "kineticview.h"
6 int main(int argc, char *argv[])
8 QApplication app(argc, argv);
9 QGraphicsScene scene;
10 scene.setSceneRect(0, 0, 600, 600);
12 AppUI *ui = new AppUI;
14 scene.addItem( ui );
16 ui->buildWorld("background:red");
19 QGraphicsView view(&scene);
20 view.setRenderHints( view.renderHints() | QPainter::Antialiasing |
21 QPainter::SmoothPixmapTransform | QPainter::TextAntialiasing );
22 /* view drag */
23 view.setDragMode(QGraphicsView::ScrollHandDrag);
24 view.show();
25 return app.exec();