mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-02 10:47:26 -04:00
LineEdit: forward editingFinished signal
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
id: item
|
||||||
property alias placeholderText: input.placeholderText
|
property alias placeholderText: input.placeholderText
|
||||||
property alias text: input.text
|
property alias text: input.text
|
||||||
property alias validator: input.validator
|
property alias validator: input.validator
|
||||||
@@ -36,7 +37,7 @@ Item {
|
|||||||
property alias cursorPosition: input.cursorPosition
|
property alias cursorPosition: input.cursorPosition
|
||||||
property int fontSize: 18
|
property int fontSize: 18
|
||||||
property bool error: false
|
property bool error: false
|
||||||
|
signal editingFinished()
|
||||||
|
|
||||||
height: 37
|
height: 37
|
||||||
|
|
||||||
@@ -67,5 +68,6 @@ Item {
|
|||||||
anchors.leftMargin: 4
|
anchors.leftMargin: 4
|
||||||
anchors.rightMargin: 30
|
anchors.rightMargin: 30
|
||||||
font.pixelSize: parent.fontSize
|
font.pixelSize: parent.fontSize
|
||||||
|
onEditingFinished: item.editingFinished()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user