Skip to content
Snippets Groups Projects
Commit aeb8c0c8 authored by burneykb's avatar burneykb
Browse files

change it back

parent 7154bf0f
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ MainWindow::MainWindow(QWidget *parent) : ...@@ -28,7 +28,7 @@ MainWindow::MainWindow(QWidget *parent) :
ui->setupUi(this); ui->setupUi(this);
QGraphicsScene *topScene = new QGraphicsScene(this); QGraphicsScene *topScene = new QGraphicsScene(this);
QuadItem * quad = new QuadItem(this); QuadItem * quad = new QuadItem();
ui->topView->setScene(topScene); ui->topView->setScene(topScene);
topScene->addItem(quad); topScene->addItem(quad);
......
...@@ -2,9 +2,8 @@ ...@@ -2,9 +2,8 @@
#include <QPixmap> #include <QPixmap>
#include <QLabel> #include <QLabel>
QuadItem::QuadItem(QGraphicsItem* parent = nullptr) QuadItem::QuadItem()
{ {
this->setParentItem(parent);
setFlag(ItemIsMovable); setFlag(ItemIsMovable);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment