mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Remove the class element text item.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5276 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#include "diagramposition.h"
|
||||
#include "conductorpropertieswidget.h"
|
||||
#include "qetgraphicsitem/conductortextitem.h"
|
||||
#include "qetgraphicsitem/elementtextitem.h"
|
||||
#include "qetgraphicsitem/independenttextitem.h"
|
||||
#include "qetgraphicsitem/diagramimageitem.h"
|
||||
#include "templatelocation.h"
|
||||
@@ -543,7 +542,6 @@ void DiagramView::keyPressEvent(QKeyEvent *e)
|
||||
if (!hasTextItems()) {
|
||||
if (
|
||||
qgraphicsitem_cast<IndependentTextItem *>(m_diagram->focusItem()) ||
|
||||
qgraphicsitem_cast<ElementTextItem *>(m_diagram->focusItem()) ||
|
||||
qgraphicsitem_cast<ConductorTextItem *>(m_diagram->focusItem()) ||
|
||||
qgraphicsitem_cast<DiagramTextItem *>(m_diagram->focusItem())
|
||||
)
|
||||
@@ -556,7 +554,6 @@ void DiagramView::keyPressEvent(QKeyEvent *e)
|
||||
if (!hasTextItems()) {
|
||||
if (
|
||||
qgraphicsitem_cast<IndependentTextItem *>(m_diagram->focusItem()) ||
|
||||
qgraphicsitem_cast<ElementTextItem *>(m_diagram->focusItem()) ||
|
||||
qgraphicsitem_cast<ConductorTextItem *>(m_diagram->focusItem()) ||
|
||||
qgraphicsitem_cast<DiagramTextItem *>(m_diagram->focusItem())
|
||||
)
|
||||
@@ -735,7 +732,6 @@ bool DiagramView::hasTextItems() {
|
||||
foreach(QGraphicsItem *qgi, m_diagram -> selectedItems()) {
|
||||
if (
|
||||
qgraphicsitem_cast<IndependentTextItem *>(qgi) ||
|
||||
qgraphicsitem_cast<ElementTextItem *>(qgi) ||
|
||||
qgraphicsitem_cast<ConductorTextItem *>(qgi) ||
|
||||
qgraphicsitem_cast<DiagramTextItem *>(qgi)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user