Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "city.h"
- #include <QString>
- #include <QGraphicsScene>
- City::City(QString name, int x, int y) : name(name), x(x), y(y)
- {
- }
- void City::draw(QGraphicsScene &scene)
- {
- scene.addRect(this->x, this->y, 4, 4, QPen(Qt::red), QBrush(Qt::red, Qt::SolidPattern));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement