1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
-
- #include <QApplication>
- #include <iostream>
- #include <QLineEdit>
- #include <QObject>
- #include <QAction>
- #include <QPushButton>
- #include <cmath>
- #include <QDebug>
-
- #include "drawingWindow.h"
- #include "tessellation.h"
-
- // YOUR CODE HERE
-
-
- void foo(DrawingWindow& w) {
- int rot = 0;
- for (int i = 0; i < 4; i++) {
- Tessellation t;
- t.setRotation(rot);
- t.move(i * 50, i * 50);
- w.addTessellation(t);
- rot += 90;
- }
- }
-
-
- int main(int argc, char *argv[]) {
- QApplication a(argc, argv);
-
- DrawingWindow w;
-
- w.resize(400, 400);
- w.show();
-
-
- foo(w);
-
- return a.exec();
-
- }
-
|