mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 18:50:52 +01:00
Bug fix: disable entry edit text field for html editor for elements text in diagram
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3566 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1182,6 +1182,19 @@ QSet<ConductorTextItem *> Diagram::selectedConductorTexts() const {
|
||||
return(selected_texts);
|
||||
}
|
||||
|
||||
|
||||
QSet<ElementTextItem*> Diagram::selectedElementTexts() const {
|
||||
QSet<ElementTextItem *> selected_texts;
|
||||
foreach(QGraphicsItem *item, selectedItems()) {
|
||||
if (ElementTextItem *cti = qgraphicsitem_cast< ElementTextItem*>(item)) {
|
||||
selected_texts << cti;
|
||||
}
|
||||
}
|
||||
return(selected_texts);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// @return true si le presse-papier semble contenir un schema
|
||||
bool Diagram::clipboardMayContainDiagram() {
|
||||
QString clipboard_text = QApplication::clipboard() -> text().trimmed();
|
||||
|
||||
Reference in New Issue
Block a user