Compare commits

..

1 Commits

Author SHA1 Message Date
Nate Graham
6c8ca778b2 Increase frameworks dependency version to 6.16
de97275a38 here in NeoChat depends on
de05764b4764d5641c647bb75bdf184522f63989 in Kirigami. However, that
Kirigami commit only landed in Frameworks 6.16, while the minimum
Frameworks version specified here in NeoChat's CMake remained at 6.12.

Because the CMake dependency version wasn't set to 6.16, a potential
build-time error was converted into a potential runtime error. And
that's exactly what happened for NeoChat's 25.08 Flatpak packaging,
because the KDE Runtime doesn't yet have Frameworks 6.16 in it.

CCBUG: 508298
2025-08-17 08:39:56 -06:00
9 changed files with 153 additions and 259 deletions

View File

@@ -186,14 +186,6 @@
{
"type": "dir",
"path": "."
},
{
"type": "patch",
"path": "patches/0001-Revert-Bump-KF6-dependency-version.patch"
},
{
"type": "patch",
"path": "patches/0001-Revert-Use-new-Kirigami-builtin-column-resize-handle.patch"
}
]
}

View File

@@ -14,7 +14,7 @@ set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_
project(NeoChat VERSION ${RELEASE_SERVICE_VERSION})
set(KF_MIN_VERSION "6.17")
set(KF_MIN_VERSION "6.16")
set(QT_MIN_VERSION "6.5")
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)

View File

@@ -1,28 +0,0 @@
SPDX-FileCopyrightText: 2025 Tobias Fella <tobias.fella@kde.org>
SPDX-License-Identifier: BSD-2-Clause
From dbd1cefd0f07a6942aef450f8f3e082aa3b1cc25 Mon Sep 17 00:00:00 2001
From: Tobias Fella <tobias.fella@kde.org>
Date: Sun, 17 Aug 2025 20:04:04 +0200
Subject: [PATCH] Revert "Bump KF6 dependency version"
This reverts commit 18a6ea98232b3a734905fb18eebba9cf39bf5325.
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 10fe66daa..cd063113d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,7 @@ set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_
project(NeoChat VERSION ${RELEASE_SERVICE_VERSION})
-set(KF_MIN_VERSION "6.17")
+set(KF_MIN_VERSION "6.12")
set(QT_MIN_VERSION "6.5")
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
--
2.50.1

View File

@@ -1,123 +0,0 @@
SPDX-FileCopyrightText: 2025 Tobias Fella <tobias.fella@kde.org>
SPDX-License-Identifier: BSD-2-Clause
From ca72345b8ee550be2172d8ac5e5dc9e4c2b508c9 Mon Sep 17 00:00:00 2001
From: Tobias Fella <tobias.fella@kde.org>
Date: Sun, 17 Aug 2025 20:00:08 +0200
Subject: [PATCH] Revert "Use new Kirigami builtin column resize handle"
This reverts commit de97275a387abcbca6fcb185bcbd1b69c30f5c66.
---
src/app/qml/Main.qml | 1 -
src/rooms/RoomListPage.qml | 70 +++++++++++++++++++++++++++++---------
2 files changed, 54 insertions(+), 17 deletions(-)
diff --git a/src/app/qml/Main.qml b/src/app/qml/Main.qml
index ea8955674..6eed271c1 100644
--- a/src/app/qml/Main.qml
+++ b/src/app/qml/Main.qml
@@ -45,7 +45,6 @@ Kirigami.ApplicationWindow {
showExisting: true
onConnectionChosen: root.load()
}
- columnView.columnResizeMode: pageStack.wideMode ? Kirigami.ColumnView.DynamicColumns : Kirigami.ColumnView.SingleColumn
globalToolBar.canContainHandles: true
globalToolBar {
style: Kirigami.ApplicationHeaderStyle.ToolBar
diff --git a/src/rooms/RoomListPage.qml b/src/rooms/RoomListPage.qml
index 2ac211fd5..f5586d789 100644
--- a/src/rooms/RoomListPage.qml
+++ b/src/rooms/RoomListPage.qml
@@ -17,22 +17,13 @@ import org.kde.neochat
Kirigami.Page {
id: root
- Kirigami.ColumnView.interactiveResizeEnabled: true
- Kirigami.ColumnView.minimumWidth: _private.collapsedSize + spaceDrawer.width + 1
- Kirigami.ColumnView.maximumWidth: _private.defaultWidth + spaceDrawer.width + 1
- Kirigami.ColumnView.onInteractiveResizingChanged: {
- if (!Kirigami.ColumnView.interactiveResizing && collapsed) {
- Kirigami.ColumnView.preferredWidth = root.Kirigami.ColumnView.minimumWidth;
- }
- }
- Kirigami.ColumnView.preferredWidth: _private.currentWidth + spaceDrawer.width + 1
- Kirigami.ColumnView.onPreferredWidthChanged: {
- if (width > _private.collapseWidth) {
- NeoChatConfig.collapsed = false;
- } else if (Kirigami.ColumnView.interactiveResizing) {
- NeoChatConfig.collapsed = true;
- }
- }
+ /**
+ * @brief The current width of the room list.
+ *
+ * @note Other objects can access the value but the private function makes sure
+ * that only the internal members can modify it.
+ */
+ readonly property int currentWidth: _private.currentWidth + spaceDrawer.width + 1
required property NeoChatConnection connection
@@ -40,6 +31,10 @@ Kirigami.Page {
signal search
+ onCurrentWidthChanged: pageStack.defaultColumnWidth = root.currentWidth
+ Component.onCompleted: pageStack.defaultColumnWidth = root.currentWidth
+
+
onCollapsedChanged: {
if (collapsed) {
RoomManager.sortFilterRoomTreeModel.filterText = "";
@@ -252,6 +247,49 @@ Kirigami.Page {
sourceComponent: Kirigami.Settings.isMobile ? exploreComponentMobile : userInfoDesktop
}
+ MouseArea {
+ anchors.top: parent.top
+ anchors.bottom: parent.bottom
+ parent: applicationWindow().overlay.parent
+
+ x: root.currentWidth - width / 2
+ width: Kirigami.Units.smallSpacing * 2
+ z: root.z + 1
+ enabled: RoomManager.hasOpenRoom && applicationWindow().width >= Kirigami.Units.gridUnit * 35
+ visible: enabled
+ cursorShape: Qt.SplitHCursor
+
+ property int _lastX
+
+ onPressed: mouse => {
+ _lastX = mouse.x;
+ }
+ onPositionChanged: mouse => {
+ if (_lastX == -1) {
+ return;
+ }
+ if (mouse.x > _lastX) {
+ // we moved to the right
+ if (_private.currentWidth < _private.collapseWidth && _private.currentWidth + (mouse.x - _lastX) >= _private.collapseWidth) {
+ // Here we get back directly to a more wide mode.
+ _private.currentWidth = _private.defaultWidth;
+ NeoChatConfig.collapsed = false;
+ } else if (_private.currentWidth >= _private.collapseWidth) {
+ // Increase page width
+ _private.currentWidth = Math.min(_private.defaultWidth, _private.currentWidth + (mouse.x - _lastX));
+ }
+ } else if (mouse.x < _lastX) {
+ const tmpWidth = _private.currentWidth - (_lastX - mouse.x);
+ if (tmpWidth < _private.collapseWidth) {
+ _private.currentWidth = Qt.binding(() => _private.collapsedSize);
+ NeoChatConfig.collapsed = true;
+ } else {
+ _private.currentWidth = tmpWidth;
+ }
+ }
+ }
+ }
+
Component {
id: userInfo
UserInfo {
--
2.50.1

View File

@@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: neochat\n"
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
"POT-Creation-Date: 2025-08-16 00:43+0000\n"
"PO-Revision-Date: 2025-08-17 22:16+0400\n"
"PO-Revision-Date: 2025-08-14 11:59+0400\n"
"Last-Translator: Zayed Al-Saidi <zayed.alsaidi@gmail.com>\n"
"Language-Team: ar\n"
"Language: ar\n"
@@ -306,7 +306,8 @@ msgid "Add Account"
msgstr "أضف حسابًا"
#: src/app/qml/AccountSwitchDialog.qml:58
#, kde-format
#, fuzzy, kde-format
#| msgid "Log in or create a new account"
msgctxt "@info"
msgid "Log in or create a new account"
msgstr "لج إلى حساب موجود أو أنشئ حسابا جديدا"
@@ -324,7 +325,8 @@ msgid "Start a chat"
msgstr "ابدأ دردشة"
#: src/app/qml/AskDirectChatConfirmation.qml:21
#, kde-format
#, fuzzy, kde-format
#| msgid "Do you want to start a chat with %1?"
msgctxt "@info"
msgid "Do you want to start a chat with %1?"
msgstr "هل ترغب في بَدء دردشة مع %1؟"
@@ -347,7 +349,8 @@ msgid "Edit"
msgstr "حرّر"
#: src/app/qml/AttachmentPane.qml:61
#, kde-format
#, fuzzy, kde-format
#| msgid "Cancel sending attachment"
msgctxt "@action:button"
msgid "Cancel sending attachment"
msgstr "ألغ إرسال المرفق"
@@ -826,37 +829,43 @@ msgid "Create Poll"
msgstr "أنشئ استفتاء"
#: src/app/qml/NewPollDialog.qml:45
#, kde-format
#, fuzzy, kde-format
#| msgid "Poll type:"
msgctxt "@label"
msgid "Poll type:"
msgstr "نوع الاستفتاء:"
#: src/app/qml/NewPollDialog.qml:50
#, kde-format
#, fuzzy, kde-format
#| msgid "Open poll"
msgctxt "@item:inlistbox"
msgid "Open poll"
msgstr "افتح استفتاء"
#: src/app/qml/NewPollDialog.qml:51
#, kde-format
#, fuzzy, kde-format
#| msgid "Closed poll"
msgctxt "@item:inlistbox"
msgid "Closed poll"
msgstr "استفتاء مغلق"
#: src/app/qml/NewPollDialog.qml:56
#, kde-format
#, fuzzy, kde-format
#| msgid "Voters can see the result as soon as they have voted"
msgctxt "@info"
msgid "Voters can see the result as soon as they have voted"
msgstr "يمكن للمصوتين رؤية النتيجة بمجرد التصويت"
#: src/app/qml/NewPollDialog.qml:56
#, kde-format
#, fuzzy, kde-format
#| msgid "Results are revealed only after the poll has closed"
msgctxt "@info"
msgid "Results are revealed only after the poll has closed"
msgstr "لا تظهر النتائج إلا بعد إغلاق الاستفتاء"
#: src/app/qml/NewPollDialog.qml:60
#, kde-format
#, fuzzy, kde-format
#| msgid "Question:"
msgctxt "@label"
msgid "Question:"
msgstr "السؤال:"
@@ -904,7 +913,8 @@ msgid "No Notifications"
msgstr "لا يوجد إشعارات"
#: src/app/qml/OpenFileDialog.qml:12
#, kde-format
#, fuzzy, kde-format
#| msgid "Select a File"
msgctxt "@title:dialog"
msgid "Select a File"
msgstr "اختر ملف"
@@ -916,43 +926,50 @@ msgid "Scan a QR Code"
msgstr "امسح رمز الاستجابة السريعة"
#: src/app/qml/QuickFormatBar.qml:22
#, kde-format
#, fuzzy, kde-format
#| msgid "Bold"
msgctxt "@action:button"
msgid "Bold"
msgstr "ثخين"
#: src/app/qml/QuickFormatBar.qml:41
#, kde-format
#, fuzzy, kde-format
#| msgid "Italic"
msgctxt "@action:button"
msgid "Italic"
msgstr "مائل"
#: src/app/qml/QuickFormatBar.qml:60
#, kde-format
#, fuzzy, kde-format
#| msgid "Strikethrough"
msgctxt "@action:button"
msgid "Strikethrough"
msgstr "شطب"
#: src/app/qml/QuickFormatBar.qml:79
#, kde-format
#, fuzzy, kde-format
#| msgid "Spoiler"
msgctxt "@action:button"
msgid "Spoiler"
msgstr "مخفي"
#: src/app/qml/QuickFormatBar.qml:98
#, kde-format
#, fuzzy, kde-format
#| msgid "Code block"
msgctxt "@action:button"
msgid "Code block"
msgstr "كتلة شفرة"
#: src/app/qml/QuickFormatBar.qml:117
#, kde-format
#, fuzzy, kde-format
#| msgid "Quote"
msgctxt "@action:button"
msgid "Quote"
msgstr "اقتباس"
#: src/app/qml/QuickFormatBar.qml:136
#, kde-format
#, fuzzy, kde-format
#| msgid "Insert link"
msgctxt "@action:button"
msgid "Insert link"
msgstr "أدرج رابط"
@@ -1073,19 +1090,22 @@ msgid "Share"
msgstr "شارك"
#: src/app/qml/ShareAction.qml:25
#, kde-format
#, fuzzy, kde-format
#| msgid "Share the selected media"
msgctxt "@info:tooltip"
msgid "Share the selected media"
msgstr "شارك الوسيط المحدد"
#: src/app/qml/ShareDialog.qml:36
#, kde-format
#, fuzzy, kde-format
#| msgid "Sharing failed"
msgctxt "@info:status"
msgid "Sharing failed"
msgstr "فشلت المشاركة"
#: src/app/qml/ShareDialog.qml:58
#, kde-format
#, fuzzy, kde-format
#| msgid "Shared url for image is <a href='%1'>%1</a>"
msgctxt "@info"
msgid "Shared url for image is <a href='%1'>%1</a>"
msgstr "عنوان الصورة المشارك بها هو <a href='%1'>%1</a>"
@@ -1209,7 +1229,8 @@ msgid "Ignore this user"
msgstr "تجاهل هذا المستخدم"
#: src/app/qml/UserDetailDialog.qml:156
#, kde-format
#, fuzzy, kde-format
#| msgid "Kick this user"
msgctxt "@action:button"
msgid "Kick this user"
msgstr "اطرد هذا المستخدم"
@@ -1233,13 +1254,15 @@ msgid "Kick"
msgstr "اطرد"
#: src/app/qml/UserDetailDialog.qml:179
#, kde-format
#, fuzzy, kde-format
#| msgid "Invite this user"
msgctxt "@action:button"
msgid "Invite this user"
msgstr "أدعو هذا المستخدم"
#: src/app/qml/UserDetailDialog.qml:190
#, kde-format
#, fuzzy, kde-format
#| msgid "Ban this user"
msgctxt "@action:button"
msgid "Ban this user"
msgstr "احظر هذا المستخدم"
@@ -1263,13 +1286,15 @@ msgid "Ban"
msgstr "احظر"
#: src/app/qml/UserDetailDialog.qml:213
#, kde-format
#, fuzzy, kde-format
#| msgid "Unban this user"
msgctxt "@action:button"
msgid "Unban this user"
msgstr "ألغ حظر هذا المستخدم"
#: src/app/qml/UserDetailDialog.qml:224
#, kde-format
#, fuzzy, kde-format
#| msgid "Set user power level"
msgctxt "@action:button"
msgid "Set user power level"
msgstr "عيّن مستوى قدرة المستخدم"
@@ -1542,13 +1567,15 @@ msgid "Quit"
msgstr "أنهِ"
#: src/chatbar/AttachDialog.qml:29
#, kde-format
#, fuzzy, kde-format
#| msgid "Choose local file"
msgctxt "@action:button"
msgid "Choose local file"
msgstr "اختر ملف محلي"
#: src/chatbar/AttachDialog.qml:45
#, kde-format
#, fuzzy, kde-format
#| msgid "Clipboard image"
msgctxt "@action:button"
msgid "Clipboard image"
msgstr "صورة الحافظة"
@@ -1560,13 +1587,15 @@ msgid "Attach an image or file"
msgstr "أرفق صورة أو ملف"
#: src/chatbar/ChatBar.qml:104
#, kde-format
#, fuzzy, kde-format
#| msgid "Emojis & Stickers"
msgctxt "@action:button"
msgid "Emojis & Stickers"
msgstr "الصور التعبيرية والملصقات"
#: src/chatbar/ChatBar.qml:121
#, kde-format
#, fuzzy, kde-format
#| msgid "Send a Location"
msgctxt "@action:button"
msgid "Send a Location"
msgstr "أرسل موقعاً جغرافياً"
@@ -1578,7 +1607,8 @@ msgid "Create a Poll"
msgstr "أنشئ استفتاء"
#: src/chatbar/ChatBar.qml:151
#, kde-format
#, fuzzy, kde-format
#| msgid "Send message"
msgctxt "@action:button"
msgid "Send message"
msgstr "أرسل رسالة"
@@ -1590,19 +1620,22 @@ msgid "The user you're replying to has left the room, and can't be notified."
msgstr "المستخدم الذي ترد عليه غادر الغرفة، ولا يمكن إشعاره."
#: src/chatbar/ChatBar.qml:253
#, kde-format
#, fuzzy, kde-format
#| msgid "Send an encrypted message…"
msgctxt "@placeholder"
msgid "Send an encrypted message…"
msgstr "أرسل رسالة معماة…"
#: src/chatbar/ChatBar.qml:253
#, kde-format
#, fuzzy, kde-format
#| msgid "Set an attachment caption…"
msgctxt "@placeholder"
msgid "Set an attachment caption…"
msgstr "ضع اسم للمرفق…"
#: src/chatbar/ChatBar.qml:253
#, kde-format
#, fuzzy, kde-format
#| msgid "Send a message…"
msgctxt "@placeholder"
msgid "Send a message…"
msgstr "أرسل رسالة…"
@@ -3992,13 +4025,15 @@ msgid "Create New"
msgstr "أنشئ جديدًا"
#: src/rooms/ExploreComponentMobile.qml:143
#, kde-format
#, fuzzy, kde-format
#| msgid "Create a Room"
msgctxt "@action:button"
msgid "Create a Room"
msgstr "أنشئ غرفة"
#: src/rooms/ExploreComponentMobile.qml:161
#, kde-format
#, fuzzy, kde-format
#| msgid "Create a Space"
msgctxt "@action:button"
msgid "Create a Space"
msgstr "أنشئ فضاء"
@@ -4536,13 +4571,15 @@ msgid "Confirm new display name"
msgstr "أكّد اسم العرض الجديد"
#: src/settings/DeviceDelegate.qml:89
#, kde-format
#, fuzzy, kde-format
#| msgid "Edit device name"
msgctxt "@action:button"
msgid "Edit device name"
msgstr "حرر اسم الجهاز"
#: src/settings/DeviceDelegate.qml:99
#, kde-format
#, fuzzy, kde-format
#| msgid "Verify device"
msgctxt "@action:button"
msgid "Verify device"
msgstr "تَثَبّت من الجهاز"
@@ -4554,7 +4591,8 @@ msgid "Verified"
msgstr "متحقّق منه"
#: src/settings/DeviceDelegate.qml:124
#, kde-format
#, fuzzy, kde-format
#| msgid "Logout device"
msgctxt "@action:button"
msgid "Logout device"
msgstr "اخرج الجهاز"
@@ -5819,7 +5857,8 @@ msgid "Canonical"
msgstr "عالمي"
#: src/settings/RoomGeneralPage.qml:274
#, kde-format
#, fuzzy, kde-format
#| msgid "Make canonical parent"
msgctxt "@action:button"
msgid "Make canonical parent"
msgstr "اجعله فضاء رئيس عالمي"
@@ -6684,25 +6723,29 @@ msgid ""
msgstr "هذه هي بداية الدردشة. ولا توجد رسائل قديمة قبل هذه النقطة."
#: src/timeline/TimelineView.qml:219
#, kde-format
#, fuzzy, kde-format
#| msgid "Jump to first unread message"
msgctxt "@action:button"
msgid "Jump to first unread message"
msgstr "اقفز إلى أول رسالة غير المقروءة"
#: src/timeline/TimelineView.qml:219
#, kde-format
#, fuzzy, kde-format
#| msgid "Jump to oldest loaded message"
msgctxt "@action:button"
msgid "Jump to oldest loaded message"
msgstr "اقفز إلى أقدم رسالة محملة"
#: src/timeline/TimelineView.qml:250
#, kde-format
#, fuzzy, kde-format
#| msgid "Jump to latest message"
msgctxt "@action:button"
msgid "Jump to latest message"
msgstr "اقفز إلى أحدث رسالة"
#: src/timeline/TimelineView.qml:285
#, kde-format
#, fuzzy, kde-format
#| msgid "Drag items here to share them"
msgctxt "@info:placeholder"
msgid "Drag items here to share them"
msgstr "اسحب عناصر هنا لتشاركهم"

View File

@@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: neochat\n"
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
"POT-Creation-Date: 2025-08-16 00:43+0000\n"
"PO-Revision-Date: 2025-08-16 20:08+0200\n"
"PO-Revision-Date: 2025-08-14 21:22+0200\n"
"Last-Translator: Vincenzo Reale <smart2128vr@gmail.com>\n"
"Language-Team: Italian <kde-i18n-it@kde.org>\n"
"Language: it\n"
@@ -347,7 +347,8 @@ msgid "Edit"
msgstr "Modifica"
#: src/app/qml/AttachmentPane.qml:61
#, kde-format
#, fuzzy, kde-format
#| msgid "Cancel sending attachment"
msgctxt "@action:button"
msgid "Cancel sending attachment"
msgstr "Annulla l'invio dell'allegato"
@@ -828,37 +829,43 @@ msgid "Create Poll"
msgstr "Crea sondaggio"
#: src/app/qml/NewPollDialog.qml:45
#, kde-format
#, fuzzy, kde-format
#| msgid "Poll type:"
msgctxt "@label"
msgid "Poll type:"
msgstr "Tipo di sondaggio:"
#: src/app/qml/NewPollDialog.qml:50
#, kde-format
#, fuzzy, kde-format
#| msgid "Open poll"
msgctxt "@item:inlistbox"
msgid "Open poll"
msgstr "Sondaggio aperto"
#: src/app/qml/NewPollDialog.qml:51
#, kde-format
#, fuzzy, kde-format
#| msgid "Closed poll"
msgctxt "@item:inlistbox"
msgid "Closed poll"
msgstr "Sondaggio chiuso"
#: src/app/qml/NewPollDialog.qml:56
#, kde-format
#, fuzzy, kde-format
#| msgid "Voters can see the result as soon as they have voted"
msgctxt "@info"
msgid "Voters can see the result as soon as they have voted"
msgstr "I votanti possono vedere il risultato non appena hanno votato"
#: src/app/qml/NewPollDialog.qml:56
#, kde-format
#, fuzzy, kde-format
#| msgid "Results are revealed only after the poll has closed"
msgctxt "@info"
msgid "Results are revealed only after the poll has closed"
msgstr "I risultati saranno rivelati solo dopo la chiusura del sondaggio"
#: src/app/qml/NewPollDialog.qml:60
#, kde-format
#, fuzzy, kde-format
#| msgid "Question:"
msgctxt "@label"
msgid "Question:"
msgstr "Domanda:"
@@ -918,43 +925,50 @@ msgid "Scan a QR Code"
msgstr "Scansione di un codice QR"
#: src/app/qml/QuickFormatBar.qml:22
#, kde-format
#, fuzzy, kde-format
#| msgid "Bold"
msgctxt "@action:button"
msgid "Bold"
msgstr "Grassetto"
#: src/app/qml/QuickFormatBar.qml:41
#, kde-format
#, fuzzy, kde-format
#| msgid "Italic"
msgctxt "@action:button"
msgid "Italic"
msgstr "Corsivo"
#: src/app/qml/QuickFormatBar.qml:60
#, kde-format
#, fuzzy, kde-format
#| msgid "Strikethrough"
msgctxt "@action:button"
msgid "Strikethrough"
msgstr "Barrato"
#: src/app/qml/QuickFormatBar.qml:79
#, kde-format
#, fuzzy, kde-format
#| msgid "Spoiler"
msgctxt "@action:button"
msgid "Spoiler"
msgstr "Visualizza nascosto"
#: src/app/qml/QuickFormatBar.qml:98
#, kde-format
#, fuzzy, kde-format
#| msgid "Code block"
msgctxt "@action:button"
msgid "Code block"
msgstr "Blocco di codice"
#: src/app/qml/QuickFormatBar.qml:117
#, kde-format
#, fuzzy, kde-format
#| msgid "Quote"
msgctxt "@action:button"
msgid "Quote"
msgstr "Citazione"
#: src/app/qml/QuickFormatBar.qml:136
#, kde-format
#, fuzzy, kde-format
#| msgid "Insert link"
msgctxt "@action:button"
msgid "Insert link"
msgstr "Inserisci collegamento"
@@ -1211,7 +1225,8 @@ msgid "Ignore this user"
msgstr "Ignora questo utente"
#: src/app/qml/UserDetailDialog.qml:156
#, kde-format
#, fuzzy, kde-format
#| msgid "Kick this user"
msgctxt "@action:button"
msgid "Kick this user"
msgstr "Espelli questo utente"
@@ -1235,13 +1250,15 @@ msgid "Kick"
msgstr "Espelli"
#: src/app/qml/UserDetailDialog.qml:179
#, kde-format
#, fuzzy, kde-format
#| msgid "Invite this user"
msgctxt "@action:button"
msgid "Invite this user"
msgstr "Invita questo utente"
#: src/app/qml/UserDetailDialog.qml:190
#, kde-format
#, fuzzy, kde-format
#| msgid "Ban this user"
msgctxt "@action:button"
msgid "Ban this user"
msgstr "Bandisci questo utente"
@@ -1265,13 +1282,15 @@ msgid "Ban"
msgstr "Bando"
#: src/app/qml/UserDetailDialog.qml:213
#, kde-format
#, fuzzy, kde-format
#| msgid "Unban this user"
msgctxt "@action:button"
msgid "Unban this user"
msgstr "Rimuovi il bando questo utente"
#: src/app/qml/UserDetailDialog.qml:224
#, kde-format
#, fuzzy, kde-format
#| msgid "Set user power level"
msgctxt "@action:button"
msgid "Set user power level"
msgstr "Imposta il livello di potere dell'utente"
@@ -4023,13 +4042,15 @@ msgid "Create New"
msgstr "Crea nuovo"
#: src/rooms/ExploreComponentMobile.qml:143
#, kde-format
#, fuzzy, kde-format
#| msgid "Create a Room"
msgctxt "@action:button"
msgid "Create a Room"
msgstr "Crea una stanza"
#: src/rooms/ExploreComponentMobile.qml:161
#, kde-format
#, fuzzy, kde-format
#| msgid "Create a Space"
msgctxt "@action:button"
msgid "Create a Space"
msgstr "Crea uno spazio"
@@ -4566,13 +4587,15 @@ msgid "Confirm new display name"
msgstr "Conferma il nuovo nome visualizzato"
#: src/settings/DeviceDelegate.qml:89
#, kde-format
#, fuzzy, kde-format
#| msgid "Edit device name"
msgctxt "@action:button"
msgid "Edit device name"
msgstr "Modifica il nome del dispositivo"
#: src/settings/DeviceDelegate.qml:99
#, kde-format
#, fuzzy, kde-format
#| msgid "Verify device"
msgctxt "@action:button"
msgid "Verify device"
msgstr "Verifica il dispositivo"
@@ -4584,7 +4607,8 @@ msgid "Verified"
msgstr "Verificato"
#: src/settings/DeviceDelegate.qml:124
#, kde-format
#, fuzzy, kde-format
#| msgid "Logout device"
msgctxt "@action:button"
msgid "Logout device"
msgstr "Disconnetti il dispositivo"
@@ -5875,7 +5899,8 @@ msgid "Canonical"
msgstr "Canonico"
#: src/settings/RoomGeneralPage.qml:274
#, kde-format
#, fuzzy, kde-format
#| msgid "Make canonical parent"
msgctxt "@action:button"
msgid "Make canonical parent"
msgstr "Crea genitore canonico"
@@ -6748,19 +6773,22 @@ msgstr ""
"punto."
#: src/timeline/TimelineView.qml:219
#, kde-format
#, fuzzy, kde-format
#| msgid "Jump to first unread message"
msgctxt "@action:button"
msgid "Jump to first unread message"
msgstr "Passa al primo messaggio non letto"
#: src/timeline/TimelineView.qml:219
#, kde-format
#, fuzzy, kde-format
#| msgid "Jump to oldest loaded message"
msgctxt "@action:button"
msgid "Jump to oldest loaded message"
msgstr "Salta al messaggio caricato più vecchio"
#: src/timeline/TimelineView.qml:250
#, kde-format
#, fuzzy, kde-format
#| msgid "Jump to latest message"
msgctxt "@action:button"
msgid "Jump to latest message"
msgstr "Salta all'ultimo messaggio"

View File

@@ -104,7 +104,7 @@ ecm_add_qml_module(neochat URI org.kde.neochat GENERATE_PLUGIN_SOURCE
DEPENDENCIES
QtCore
QtQuick
io.github.quotient_im.libquotient
com.github.quotient_im.libquotient
IMPORTS
org.kde.neochat.libneochat
org.kde.neochat.rooms

View File

@@ -126,32 +126,14 @@ Kirigami.Dialog {
}
}
Flow {
Kirigami.Chip {
visible: root.room
text: root.room ? QmlUtils.nameForPowerLevelValue(root.room.memberEffectivePowerLevel(root.user.id)) : ""
closable: false
checkable: false
Layout.leftMargin: Kirigami.Units.largeSpacing
Layout.bottomMargin: Kirigami.Units.largeSpacing
Kirigami.Chip {
visible: root.room
text: root.room ? QmlUtils.nameForPowerLevelValue(root.room.memberEffectivePowerLevel(root.user.id)) : ""
closable: false
checkable: false
}
Kirigami.Chip {
id: onlineChip
visible: root.room && root.connection.isUserPresent(root.user.id)
text: i18nc("@info", "Online")
closable: false
checkable: false
Connections {
target: root.connection
function onPresenceChanged() {
onlineChip.visible = root.room && root.connection.isUserPresent(root.user.id)
}
}
}
}
Kirigami.Separator {

View File

@@ -63,7 +63,7 @@ ecm_add_qml_module(LibNeoChat GENERATE_PLUGIN_SOURCE
qml/CreateRoomDialog.qml
qml/CreateSpaceDialog.qml
DEPENDENCIES
io.github.quotient_im.libquotient
com.github.quotient_im.libquotient
)
ecm_qt_declare_logging_category(LibNeoChat