Port to declarative type registration
This commit is contained in:
39
src/qml/EmoticonsPage.qml
Normal file
39
src/qml/EmoticonsPage.qml
Normal file
@@ -0,0 +1,39 @@
|
||||
// SPDX-FileCopyrightText: 2023 Tobias Fella <tobias.fella@kde.org>
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
import org.kde.kirigamiaddons.formcard as FormCard
|
||||
|
||||
import org.kde.neochat
|
||||
|
||||
FormCard.FormCardPage {
|
||||
id: root
|
||||
|
||||
required property NeoChatConnection connection
|
||||
|
||||
title: i18nc("@title", "Stickers & Emojis")
|
||||
|
||||
FormCard.FormHeader {
|
||||
title: i18n("Emojis")
|
||||
}
|
||||
EmoticonFormCard {
|
||||
emoticonType: EmoticonFormCard.Emojis
|
||||
connection: root.connection
|
||||
}
|
||||
|
||||
FormCard.FormHeader {
|
||||
title: i18n("Stickers")
|
||||
}
|
||||
EmoticonFormCard {
|
||||
emoticonType: EmoticonFormCard.Stickers
|
||||
connection: root.connection
|
||||
}
|
||||
|
||||
|
||||
property Component emoticonEditorPage: Component {
|
||||
id: emoticonEditorPage
|
||||
EmoticonEditorPage {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user