Adapt qml for qt5 and qt6
This commit is contained in:
committed by
Tobias Fella
parent
63a17b5985
commit
98e86f887b
@@ -113,7 +113,7 @@ QQC2.Dialog {
|
||||
RoomManager.enterRoom(roomListItem.currentRoom);
|
||||
root.close();
|
||||
}
|
||||
bold: roomListItem.notificationCount > 0
|
||||
@BASICLISTITEM_BOLD@: roomListItem.notificationCount > 0
|
||||
label: roomListItem.displayName ?? ""
|
||||
labelItem.textFormat: Text.PlainText
|
||||
subtitle: roomListItem.subtitleText
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
pragma Singleton
|
||||
|
||||
import QtQuick 2.15
|
||||
import QtLocation 5.15
|
||||
import QtQuick @QTQUICK_MODULE_QML_VERSION@
|
||||
import QtLocation @QTLOCATION_MODULE_QML_VERSION@
|
||||
|
||||
QtObject {
|
||||
property var plugin: Plugin {
|
||||
|
||||
@@ -17,7 +17,7 @@ Kirigami.OverlaySheet {
|
||||
property var userId
|
||||
property int powerLevel
|
||||
|
||||
onSheetOpenChanged: {
|
||||
@OVERLAYSHEET_OPEN@: {
|
||||
if (sheetOpen) {
|
||||
powerLevelComboBox.currentIndex = powerLevelComboBox.indexOfValue(root.powerLevel)
|
||||
}
|
||||
|
||||
@@ -195,8 +195,7 @@ Kirigami.OverlaySheet {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onSheetOpenChanged: {
|
||||
@OVERLAYSHEET_OPEN@: {
|
||||
if (!sheetOpen) {
|
||||
closed()
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ Kirigami.BasicListItem {
|
||||
highlighted: ListView.view.currentIndex === index
|
||||
focus: true
|
||||
icon: undefined
|
||||
bold: root.hasNotifications
|
||||
@BASICLISTITEM_BOLD@: root.hasNotifications
|
||||
|
||||
label: root.displayName
|
||||
labelItem.textFormat: Text.PlainText
|
||||
|
||||
Reference in New Issue
Block a user