handle drag and drop of text (html work to)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2585 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-10-26 11:46:59 +00:00
parent f091659c35
commit a21b1782d2
2 changed files with 23 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ class DiagramView : public QGraphicsView {
void editText();
void addImage();
void editImage();
IndependentTextItem *addDiagramTextAtPos(const QPointF &);
IndependentTextItem *addDiagramTextAtPos(const QPointF &, const QString text = 0);
DiagramImageItem *addDiagramImageAtPos(const QPointF &);
protected:
@@ -102,6 +102,7 @@ class DiagramView : public QGraphicsView {
void dropEvent(QDropEvent *);
void handleElementDrop(QDropEvent *);
void handleTitleBlockDrop(QDropEvent *);
void handleTextDrop(QDropEvent *);
QRectF viewedSceneRect() const;
bool mustIntegrateElement(const ElementsLocation &) const;
bool mustIntegrateTitleBlockTemplate(const TitleBlockTemplateLocation &) const;