diff --git a/qml/xqtreeview.qml b/qml/xqtreeview.qml index b2652f0..e18d570 100644 --- a/qml/xqtreeview.qml +++ b/qml/xqtreeview.qml @@ -33,38 +33,34 @@ TreeView //color: TreeView.isSelected ? "#d0eaff" : (row % 2 === 0 ? "#f9f9f9" : "#ffffff") //color: TreeView.isSelected ? "#d0eaff" : (row % 2 === 0 ? "#f9f9f9" : "#ffffff") - + //color: index % 2 === 0 ? "#f9f9f9" : "#e0e0e0" + //color: TreeView.isSelected ? "#d0eaff" : (row % 2 === 0 ? "#f9f9f9" : "#ffffff") TextField { - id: currentEntry + id: entry anchors.centerIn: parent text: display - font.pixelSize: 12 + font.pixelSize: 11 + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + /* + background: Rectangle + { + //color: entry.enabled ? "transparent" : "#353637" + //border.color: entry.enabled ? "#21be2b" : "transparent" + border.color: "transparent" + color: TreeView.isSelected ? "#d0eaff" : (row % 2 === 0 ? "#f9f9f9" : "#ffffff") - // Ändere die Border-Farbe je nachdem, ob das Feld den Fokus hat - property color borderColor: currentEntry.activeFocus ? "dodgerblue" : "gray" - property int borderWidth: currentEntry.activeFocus ? 2 : 1 + } + */ - background: Rectangle { - // Die Farbe des Hintergrunds im Normalzustand - color: "#ffffff" - - // Hier werden Rahmenfarbe und -breite definiert - border.color: currentEntry.borderColor - border.width: currentEntry.borderWidth - - // Abgerundete Ecken für ein modernes Aussehen - radius: 4 - - // Sanfter Übergang der Rahmenfarbe und -breite - Behavior on border.color { - ColorAnimation { duration: 150 } - } - Behavior on border.width { - NumberAnimation { duration: 150 } - } + // Hintergrund des Textfeldes anpassen + background: Rectangle + { + //color: TreeView.isSelected ? "#d0eaff" : (row % 2 === 0 ? "#f9f9f9" : "#ffffff") + color: entry.activeFocus ? "#d0eaff" : (row % 2 === 0 ? "#f9f9f9" : "#ffffff") } onEditingFinished: diff --git a/src/application/xqmainwindow.cpp b/src/application/xqmainwindow.cpp index a7a408f..bd0a0a2 100644 --- a/src/application/xqmainwindow.cpp +++ b/src/application/xqmainwindow.cpp @@ -121,7 +121,7 @@ void XQMainWindow::initMainWindow() //loadDocument( c_DocumentFileName3 ); - qDebug() << " --- all here: " << XQNode::s_Count; + qDebug() << " --- #nodes created: " << XQNode::s_Count; } catch( XQException& exception ) diff --git a/xml/modeldata3.xtr b/xml/modeldata3.xtr index 1816ed8..65796e2 100644 --- a/xml/modeldata3.xtr +++ b/xml/modeldata3.xtr @@ -2,11 +2,7 @@ - - - - - +