mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-02 16:15:28 +08:00
update
This commit is contained in:
20
src/controls/FluIconButton.qml
Normal file
20
src/controls/FluIconButton.qml
Normal file
@ -0,0 +1,20 @@
|
||||
import QtQuick 2.15
|
||||
|
||||
Rectangle {
|
||||
|
||||
width: text.implicitWidth
|
||||
height: text.implicitHeight
|
||||
|
||||
property int icon
|
||||
|
||||
Text {
|
||||
id:text
|
||||
font.family: "fontawesome"
|
||||
font.pixelSize: 16
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
// text:icon
|
||||
text: (String.fromCharCode(icon).toString(16));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user