Skip to content

Commit

Permalink
use htmlClass where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
whoozle committed Aug 21, 2023
1 parent 3e9a096 commit a748762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/Image.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Item {
this._scheduleLoad()
}

function getClass() { return 'core-image' }
htmlClass: "core-image";

///@private
function _scheduleLoad() {
Expand Down
2 changes: 1 addition & 1 deletion core/Text.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Item {
this._setText(this.text)
}

function getClass() { return 'core-text' }
htmlClass: "core-text";

function registerStyle(style, tag) {
style.addRule(tag, 'width: auto; height: auto;')
Expand Down

0 comments on commit a748762

Please sign in to comment.