This has (as I've seen) confuse some users because we put this information front and center. The internal room ID and it's version isn't relevant for 99% of users, especially since most of them don't even have permission to touch these. Instead, let's do what Element smartly does and put it under an Advanced page you have to intentionally find. This also has the knock-on effect of propping up the importance of room aliases, which now appear higher in the general settings.
75 lines
2.1 KiB
CMake
75 lines
2.1 KiB
CMake
# SPDX-FileCopyrightText: 2024 James Graham <james.h.graham@protonmail.com>
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
qt_add_library(Settings STATIC)
|
|
|
|
set_source_files_properties(
|
|
RoomSettingsView.qml
|
|
NeoChatSettingsView.qml
|
|
PROPERTIES
|
|
QT_QML_SINGLETON_TYPE TRUE
|
|
)
|
|
|
|
ecm_add_qml_module(Settings GENERATE_PLUGIN_SOURCE
|
|
URI org.kde.neochat.settings
|
|
OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/src/org/kde/neochat/settings
|
|
QML_FILES
|
|
NeoChatSettingsView.qml
|
|
RoomSettingsView.qml
|
|
AccountsPage.qml
|
|
AccountEditorPage.qml
|
|
AppearanceSettingsPage.qml
|
|
DevicesPage.qml
|
|
EmoticonsPage.qml
|
|
EmoticonEditorPage.qml
|
|
GlobalNotificationsPage.qml
|
|
NeoChatGeneralPage.qml
|
|
NeoChatSecurityPage.qml
|
|
NetworkProxyPage.qml
|
|
Permissions.qml
|
|
PushNotification.qml
|
|
RoomGeneralPage.qml
|
|
RoomSecurityPage.qml
|
|
ColorScheme.qml
|
|
ConfirmDeactivateAccountDialog.qml
|
|
ConfirmEncryptionDialog.qml
|
|
DevicesCard.qml
|
|
DeviceDelegate.qml
|
|
EmoticonFormCard.qml
|
|
IdentityServerDelegate.qml
|
|
IgnoredUsersDialog.qml
|
|
NotificationRuleItem.qml
|
|
PasswordSheet.qml
|
|
PowerLevelDialog.qml
|
|
SelectParentDialog.qml
|
|
SelectSpacesDialog.qml
|
|
ThemeRadioButton.qml
|
|
ThreePIdCard.qml
|
|
ImportKeysDialog.qml
|
|
ExportKeysDialog.qml
|
|
RoomSortParameterDialog.qml
|
|
RoomProfile.qml
|
|
RoomAdvancedPage.qml
|
|
SOURCES
|
|
colorschemer.cpp
|
|
threepidaddhelper.cpp
|
|
threepidbindhelper.cpp
|
|
models/accountemoticonmodel.cpp
|
|
models/devicesmodel.cpp
|
|
models/devicesproxymodel.cpp
|
|
models/emoticonfiltermodel.cpp
|
|
models/permissionsmodel.cpp
|
|
models/pushrulemodel.cpp
|
|
models/roomsortparametermodel.cpp
|
|
models/threepidmodel.cpp
|
|
)
|
|
|
|
|
|
target_include_directories(Settings PRIVATE ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/models)
|
|
target_link_libraries(Settings PRIVATE
|
|
KF6::ColorScheme
|
|
KF6::I18n
|
|
QuotientQt6
|
|
LibNeoChat
|
|
)
|