Skycoder42
7 years ago
5 changed files with 45 additions and 14 deletions
@ -1,10 +1,21 @@ |
|||
import QtQuick 2.10 |
|||
import QtQuick.Controls 2.3 |
|||
|
|||
ComboBox { |
|||
Item { |
|||
id: _edit |
|||
property alias inputValue: _edit.currentText |
|||
implicitWidth: _listEdit.implicitWidth |
|||
implicitHeight: _listEdit.implicitHeight |
|||
|
|||
model: Qt.fontFamilies() |
|||
editable: false |
|||
property font inputValue: _listEdit.font |
|||
|
|||
ListEdit { |
|||
id: _listEdit |
|||
anchors.fill: parent |
|||
|
|||
inputValue: _edit.inputValue.family |
|||
onInputValueChanged: _edit.inputValue = Qt.font({family: inputValue}) |
|||
|
|||
model: Qt.fontFamilies() |
|||
editable: false |
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue