Advertisement
Guest User

city.cpp

a guest
Jul 2nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "city.h"
  2.  
  3. #include <QString>
  4. #include <QGraphicsScene>
  5.  
  6. City::City(QString name, int x, int y) : name(name), x(x), y(y)
  7. {
  8.  
  9. }
  10.  
  11. void City::draw(QGraphicsScene &scene)
  12. {
  13.     scene.addRect(this->x, this->y, 4, 4, QPen(Qt::red), QBrush(Qt::red, Qt::SolidPattern));
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement