QetElementEditor : rewrite gui with ui file

This commit is contained in:
joshua
2021-01-30 19:34:21 +01:00
parent 85fa9245a4
commit e3db2bc898
18 changed files with 2170 additions and 1944 deletions

View File

@@ -18,7 +18,8 @@
#include "eseventinterface.h"
#include "../elementscene.h"
#include "../qetelementeditor.h"
#include "../ui/qetelementeditor.h"
#include "../elementview.h"
#include <QGraphicsSceneMouseEvent>
@@ -40,7 +41,7 @@ ESEventInterface::ESEventInterface(ElementScene *scene) :
void ESEventInterface::init()
{
m_scene->setBehavior(ElementScene::Behavior::AddPart);
m_editor->slot_setNoDragToView();
m_editor->elementView()->setDragMode(QGraphicsView::NoDrag);
}
/**
@@ -53,31 +54,31 @@ ESEventInterface::~ESEventInterface()
delete m_help_verti;
m_scene->setBehavior(ElementScene::Behavior::Normal);
m_editor->slot_setRubberBandToView();
m_editor->elementView()->setDragMode(QGraphicsView::RubberBandDrag);
}
bool ESEventInterface::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) {
Q_UNUSED (event);
Q_UNUSED (event)
return false;
}
bool ESEventInterface::mousePressEvent(QGraphicsSceneMouseEvent *event) {
Q_UNUSED (event);
Q_UNUSED (event)
return false;
}
bool ESEventInterface::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
Q_UNUSED (event);
Q_UNUSED (event)
return false;
}
bool ESEventInterface::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
Q_UNUSED (event);
Q_UNUSED (event)
return false;
}
bool ESEventInterface::wheelEvent(QGraphicsSceneWheelEvent *event) {
Q_UNUSED (event);
Q_UNUSED (event)
return false;
}
@@ -97,7 +98,7 @@ bool ESEventInterface::keyPressEvent(QKeyEvent *event) {
}
bool ESEventInterface::KeyReleaseEvent(QKeyEvent *event) {
Q_UNUSED (event);
Q_UNUSED (event)
return false;
}