NTextInput: dont propagate events to avoid dragging panel when selecting text with the mouse.

This commit is contained in:
ItsLemmy
2025-09-20 01:52:57 -04:00
parent 8d942d0782
commit 3853c099d0
3 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ Singleton {
return Math.floor(date / 1000)
}
/**
/**
* Formats a Date object into a YYYYMMDD-HHMMSS string.
* @param {Date} [date=new Date()] - The date to format. Defaults to the current date and time.
* @returns {string} The formatted date string.
@@ -323,7 +323,6 @@ ColumnLayout {
// label: "Tokens"
// description: focusedLineIndex > 0 ? "Click any token to add it to line " + focusedLineIndex : "Select an input field above, then click a token to insert it."
// }
NDateTimeTokens {
Layout.fillWidth: true
height: 200 * scaling
+8
View File
@@ -54,6 +54,14 @@ ColumnLayout {
}
}
// Block mouse events from going through
MouseArea {
anchors.fill: parent
z: -1 // Place behind the TextField
acceptedButtons: Qt.AllButtons
propagateComposedEvents: false
}
TextField {
id: input