mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
Revert r3492
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3493 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
#include "qetgraphicsitem/independenttextitem.h"
|
||||
#include "qetapp.h"
|
||||
#include "qetgraphicsitem/diagramimageitem.h"
|
||||
#include "qetgraphicsitem/conductor.h"
|
||||
#include "qetgraphicsitem/qetshapeitem.h"
|
||||
#include "terminal.h"
|
||||
#include "elementtextsmover.h"
|
||||
@@ -79,8 +78,6 @@ Diagram::Diagram(QObject *parent) :
|
||||
&border_and_titleblock, SIGNAL(diagramTitleChanged(const QString &)),
|
||||
this, SLOT(titleChanged(const QString &))
|
||||
);
|
||||
|
||||
_binaryGrid = new BinaryGrid(this);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -108,8 +105,6 @@ Diagram::~Diagram() {
|
||||
}
|
||||
|
||||
qDeleteAll (deletable_items);
|
||||
|
||||
delete _binaryGrid;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -194,35 +189,6 @@ void Diagram::keyReleaseEvent(QKeyEvent *e) {
|
||||
bool transmit_event = true;
|
||||
if (!isReadOnly()) {
|
||||
// detecte le relachement d'une touche de direction ( = deplacement d'elements)
|
||||
if ( e -> key() == Qt::Key_C) {
|
||||
Conductor::bDebugGrid= !Conductor::bDebugGrid;
|
||||
update();
|
||||
}
|
||||
else if ( e -> key() == Qt::Key_P) {
|
||||
Conductor::bAffPoint = !Conductor::bAffPoint;
|
||||
update();
|
||||
}
|
||||
else if ( e -> key() == Qt::Key_S) {
|
||||
Conductor::bSmooth = !Conductor::bSmooth;
|
||||
Conductor::reBuild();
|
||||
update();
|
||||
}
|
||||
else if ( e -> key() == Qt::Key_D) {
|
||||
Conductor::bDebug = !Conductor::bDebug;
|
||||
Conductor::reBuild();
|
||||
update();
|
||||
}
|
||||
else if ( e -> key() == Qt::Key_Plus) {
|
||||
Conductor::iIndiceDebug++;
|
||||
Conductor::reBuild();
|
||||
update();
|
||||
}
|
||||
else if ( e -> key() == Qt::Key_Minus) {
|
||||
Conductor::iIndiceDebug--;
|
||||
Conductor::reBuild();
|
||||
update();
|
||||
}
|
||||
|
||||
if (
|
||||
(e -> key() == Qt::Key_Left || e -> key() == Qt::Key_Right ||
|
||||
e -> key() == Qt::Key_Up || e -> key() == Qt::Key_Down) &&
|
||||
|
||||
Reference in New Issue
Block a user