fix some warnings

This commit is contained in:
2020-09-08 15:13:05 +03:00
parent 3d5a86e215
commit d96c99f79d
11 changed files with 39 additions and 22 deletions

View File

@@ -16,7 +16,7 @@ BlockEditor::BlockEditor(QWidget *parent) : QWidget(parent), ui(new Ui::BlockEdi
ui->setupUi(this);
src_title = windowTitle();
connect(ui->blockView->scene(), SIGNAL(selectionChanged()), this, SLOT(selectionChanged()));
block.setFlags(0);
block.setFlags(QGraphicsItem::GraphicsItemFlags());
ui->blockView->addItem(&block);
ui->blockView->viewport()->installEventFilter(this);
DrawTools * drawtools = new DrawTools(ui->blockView);