[qet] qet/qet: [5816] Same as previous commit, for the element editor. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 5816
Author: blacksun
Date: 2019-03-31 15:49:07 +0200 (Sun, 31 Mar 2019)
Log Message:
-----------
Same as previous commit, for the element editor.
Modified Paths:
--------------
trunk/sources/editor/ui/elementpropertieseditorwidget.cpp
trunk/sources/ui/elementinfowidget.cpp
Modified: trunk/sources/editor/ui/elementpropertieseditorwidget.cpp
===================================================================
--- trunk/sources/editor/ui/elementpropertieseditorwidget.cpp 2019-03-31 13:33:48 UTC (rev 5815)
+++ trunk/sources/editor/ui/elementpropertieseditorwidget.cpp 2019-03-31 13:49:07 UTC (rev 5816)
@@ -61,7 +61,6 @@
ui->setupUi(this);
setUpInterface();
upDateInterface();
- qDebug() << "const";
}
/**
@@ -180,8 +179,17 @@
m_kind_info.addValue("type", ui -> m_master_type_cb -> itemData(ui -> m_master_type_cb -> currentIndex()));
}
- for (QTreeWidgetItem *qtwi : ui->m_tree->invisibleRootItem()->takeChildren()) {
- m_elmt_info.addValue(qtwi->data(0, Qt::UserRole).toString(), qtwi->text(1));
+ for (QTreeWidgetItem *qtwi : ui->m_tree->invisibleRootItem()->takeChildren())
+ {
+ QString txt = qtwi->text(1);
+ //Replace html line feed
+ txt.replace("
", " "); //hexa
+ txt.replace(" ", " "); //decimal
+ //Replace html carriage return
+ txt.replace("
", " "); //hexa
+ txt.replace(" ", " "); //decimal
+
+ m_elmt_info.addValue(qtwi->data(0, Qt::UserRole).toString(), txt);
}
this->close();
Modified: trunk/sources/ui/elementinfowidget.cpp
===================================================================
--- trunk/sources/ui/elementinfowidget.cpp 2019-03-31 13:33:48 UTC (rev 5815)
+++ trunk/sources/ui/elementinfowidget.cpp 2019-03-31 13:49:07 UTC (rev 5816)
@@ -238,11 +238,11 @@
{
QString txt = eipw->text();
//Replace html line feed
- txt.replace("
", " "); //hexa
- txt.replace("
", " "); //decimal
+ txt.replace("
", " "); //hexa
+ txt.replace(" ", " "); //decimal
//Replace html carriage return
- txt.replace("
", " "); //hexa
- txt.replace("
", " "); //decimal
+ txt.replace("
", " "); //hexa
+ txt.replace(" ", " "); //decimal
info_.addValue(eipw->key(), txt);
}
}