Compare commits

..

7 Commits

Author SHA1 Message Date
Tobias Fella
7741d2265a Implement presence 2025-08-20 00:07:01 +02:00
l10n daemon script
20e30982cf GIT_SILENT Sync po/docbooks with svn 2025-08-19 02:05:09 +00:00
Tobias Fella
e13b82f66a Revert patch using features not yet available in flatpak 2025-08-18 17:09:50 +00:00
Tobias Fella
8e50388031 Revert KF6 version bump in flatpak 2025-08-18 17:09:50 +00:00
Tobias Fella
fb21686894 Bump KF6 dependency version 2025-08-18 17:09:50 +00:00
l10n daemon script
62faf0f784 GIT_SILENT Sync po/docbooks with svn 2025-08-18 01:41:27 +00:00
Tobias Fella
be377d9ad8 Update uri for libquotient 2025-08-17 22:01:09 +02:00
9 changed files with 259 additions and 153 deletions

View File

@@ -186,6 +186,14 @@
{
"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.16")
set(KF_MIN_VERSION "6.17")
set(QT_MIN_VERSION "6.5")
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)

View File

@@ -0,0 +1,28 @@
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

@@ -0,0 +1,123 @@
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-14 11:59+0400\n"
"PO-Revision-Date: 2025-08-17 22:16+0400\n"
"Last-Translator: Zayed Al-Saidi <zayed.alsaidi@gmail.com>\n"
"Language-Team: ar\n"
"Language: ar\n"
@@ -306,8 +306,7 @@ msgid "Add Account"
msgstr "أضف حسابًا"
#: src/app/qml/AccountSwitchDialog.qml:58
#, fuzzy, kde-format
#| msgid "Log in or create a new account"
#, kde-format
msgctxt "@info"
msgid "Log in or create a new account"
msgstr "لج إلى حساب موجود أو أنشئ حسابا جديدا"
@@ -325,8 +324,7 @@ msgid "Start a chat"
msgstr "ابدأ دردشة"
#: src/app/qml/AskDirectChatConfirmation.qml:21
#, fuzzy, kde-format
#| msgid "Do you want to start a chat with %1?"
#, kde-format
msgctxt "@info"
msgid "Do you want to start a chat with %1?"
msgstr "هل ترغب في بَدء دردشة مع %1؟"
@@ -349,8 +347,7 @@ msgid "Edit"
msgstr "حرّر"
#: src/app/qml/AttachmentPane.qml:61
#, fuzzy, kde-format
#| msgid "Cancel sending attachment"
#, kde-format
msgctxt "@action:button"
msgid "Cancel sending attachment"
msgstr "ألغ إرسال المرفق"
@@ -829,43 +826,37 @@ msgid "Create Poll"
msgstr "أنشئ استفتاء"
#: src/app/qml/NewPollDialog.qml:45
#, fuzzy, kde-format
#| msgid "Poll type:"
#, kde-format
msgctxt "@label"
msgid "Poll type:"
msgstr "نوع الاستفتاء:"
#: src/app/qml/NewPollDialog.qml:50
#, fuzzy, kde-format
#| msgid "Open poll"
#, kde-format
msgctxt "@item:inlistbox"
msgid "Open poll"
msgstr "افتح استفتاء"
#: src/app/qml/NewPollDialog.qml:51
#, fuzzy, kde-format
#| msgid "Closed poll"
#, kde-format
msgctxt "@item:inlistbox"
msgid "Closed poll"
msgstr "استفتاء مغلق"
#: src/app/qml/NewPollDialog.qml:56
#, fuzzy, kde-format
#| msgid "Voters can see the result as soon as they have voted"
#, kde-format
msgctxt "@info"
msgid "Voters can see the result as soon as they have voted"
msgstr "يمكن للمصوتين رؤية النتيجة بمجرد التصويت"
#: src/app/qml/NewPollDialog.qml:56
#, fuzzy, kde-format
#| msgid "Results are revealed only after the poll has closed"
#, kde-format
msgctxt "@info"
msgid "Results are revealed only after the poll has closed"
msgstr "لا تظهر النتائج إلا بعد إغلاق الاستفتاء"
#: src/app/qml/NewPollDialog.qml:60
#, fuzzy, kde-format
#| msgid "Question:"
#, kde-format
msgctxt "@label"
msgid "Question:"
msgstr "السؤال:"
@@ -913,8 +904,7 @@ msgid "No Notifications"
msgstr "لا يوجد إشعارات"
#: src/app/qml/OpenFileDialog.qml:12
#, fuzzy, kde-format
#| msgid "Select a File"
#, kde-format
msgctxt "@title:dialog"
msgid "Select a File"
msgstr "اختر ملف"
@@ -926,50 +916,43 @@ msgid "Scan a QR Code"
msgstr "امسح رمز الاستجابة السريعة"
#: src/app/qml/QuickFormatBar.qml:22
#, fuzzy, kde-format
#| msgid "Bold"
#, kde-format
msgctxt "@action:button"
msgid "Bold"
msgstr "ثخين"
#: src/app/qml/QuickFormatBar.qml:41
#, fuzzy, kde-format
#| msgid "Italic"
#, kde-format
msgctxt "@action:button"
msgid "Italic"
msgstr "مائل"
#: src/app/qml/QuickFormatBar.qml:60
#, fuzzy, kde-format
#| msgid "Strikethrough"
#, kde-format
msgctxt "@action:button"
msgid "Strikethrough"
msgstr "شطب"
#: src/app/qml/QuickFormatBar.qml:79
#, fuzzy, kde-format
#| msgid "Spoiler"
#, kde-format
msgctxt "@action:button"
msgid "Spoiler"
msgstr "مخفي"
#: src/app/qml/QuickFormatBar.qml:98
#, fuzzy, kde-format
#| msgid "Code block"
#, kde-format
msgctxt "@action:button"
msgid "Code block"
msgstr "كتلة شفرة"
#: src/app/qml/QuickFormatBar.qml:117
#, fuzzy, kde-format
#| msgid "Quote"
#, kde-format
msgctxt "@action:button"
msgid "Quote"
msgstr "اقتباس"
#: src/app/qml/QuickFormatBar.qml:136
#, fuzzy, kde-format
#| msgid "Insert link"
#, kde-format
msgctxt "@action:button"
msgid "Insert link"
msgstr "أدرج رابط"
@@ -1090,22 +1073,19 @@ msgid "Share"
msgstr "شارك"
#: src/app/qml/ShareAction.qml:25
#, fuzzy, kde-format
#| msgid "Share the selected media"
#, kde-format
msgctxt "@info:tooltip"
msgid "Share the selected media"
msgstr "شارك الوسيط المحدد"
#: src/app/qml/ShareDialog.qml:36
#, fuzzy, kde-format
#| msgid "Sharing failed"
#, kde-format
msgctxt "@info:status"
msgid "Sharing failed"
msgstr "فشلت المشاركة"
#: src/app/qml/ShareDialog.qml:58
#, fuzzy, kde-format
#| msgid "Shared url for image is <a href='%1'>%1</a>"
#, kde-format
msgctxt "@info"
msgid "Shared url for image is <a href='%1'>%1</a>"
msgstr "عنوان الصورة المشارك بها هو <a href='%1'>%1</a>"
@@ -1229,8 +1209,7 @@ msgid "Ignore this user"
msgstr "تجاهل هذا المستخدم"
#: src/app/qml/UserDetailDialog.qml:156
#, fuzzy, kde-format
#| msgid "Kick this user"
#, kde-format
msgctxt "@action:button"
msgid "Kick this user"
msgstr "اطرد هذا المستخدم"
@@ -1254,15 +1233,13 @@ msgid "Kick"
msgstr "اطرد"
#: src/app/qml/UserDetailDialog.qml:179
#, fuzzy, kde-format
#| msgid "Invite this user"
#, kde-format
msgctxt "@action:button"
msgid "Invite this user"
msgstr "أدعو هذا المستخدم"
#: src/app/qml/UserDetailDialog.qml:190
#, fuzzy, kde-format
#| msgid "Ban this user"
#, kde-format
msgctxt "@action:button"
msgid "Ban this user"
msgstr "احظر هذا المستخدم"
@@ -1286,15 +1263,13 @@ msgid "Ban"
msgstr "احظر"
#: src/app/qml/UserDetailDialog.qml:213
#, fuzzy, kde-format
#| msgid "Unban this user"
#, kde-format
msgctxt "@action:button"
msgid "Unban this user"
msgstr "ألغ حظر هذا المستخدم"
#: src/app/qml/UserDetailDialog.qml:224
#, fuzzy, kde-format
#| msgid "Set user power level"
#, kde-format
msgctxt "@action:button"
msgid "Set user power level"
msgstr "عيّن مستوى قدرة المستخدم"
@@ -1567,15 +1542,13 @@ msgid "Quit"
msgstr "أنهِ"
#: src/chatbar/AttachDialog.qml:29
#, fuzzy, kde-format
#| msgid "Choose local file"
#, kde-format
msgctxt "@action:button"
msgid "Choose local file"
msgstr "اختر ملف محلي"
#: src/chatbar/AttachDialog.qml:45
#, fuzzy, kde-format
#| msgid "Clipboard image"
#, kde-format
msgctxt "@action:button"
msgid "Clipboard image"
msgstr "صورة الحافظة"
@@ -1587,15 +1560,13 @@ msgid "Attach an image or file"
msgstr "أرفق صورة أو ملف"
#: src/chatbar/ChatBar.qml:104
#, fuzzy, kde-format
#| msgid "Emojis & Stickers"
#, kde-format
msgctxt "@action:button"
msgid "Emojis & Stickers"
msgstr "الصور التعبيرية والملصقات"
#: src/chatbar/ChatBar.qml:121
#, fuzzy, kde-format
#| msgid "Send a Location"
#, kde-format
msgctxt "@action:button"
msgid "Send a Location"
msgstr "أرسل موقعاً جغرافياً"
@@ -1607,8 +1578,7 @@ msgid "Create a Poll"
msgstr "أنشئ استفتاء"
#: src/chatbar/ChatBar.qml:151
#, fuzzy, kde-format
#| msgid "Send message"
#, kde-format
msgctxt "@action:button"
msgid "Send message"
msgstr "أرسل رسالة"
@@ -1620,22 +1590,19 @@ msgid "The user you're replying to has left the room, and can't be notified."
msgstr "المستخدم الذي ترد عليه غادر الغرفة، ولا يمكن إشعاره."
#: src/chatbar/ChatBar.qml:253
#, fuzzy, kde-format
#| msgid "Send an encrypted message…"
#, kde-format
msgctxt "@placeholder"
msgid "Send an encrypted message…"
msgstr "أرسل رسالة معماة…"
#: src/chatbar/ChatBar.qml:253
#, fuzzy, kde-format
#| msgid "Set an attachment caption…"
#, kde-format
msgctxt "@placeholder"
msgid "Set an attachment caption…"
msgstr "ضع اسم للمرفق…"
#: src/chatbar/ChatBar.qml:253
#, fuzzy, kde-format
#| msgid "Send a message…"
#, kde-format
msgctxt "@placeholder"
msgid "Send a message…"
msgstr "أرسل رسالة…"
@@ -4025,15 +3992,13 @@ msgid "Create New"
msgstr "أنشئ جديدًا"
#: src/rooms/ExploreComponentMobile.qml:143
#, fuzzy, kde-format
#| msgid "Create a Room"
#, kde-format
msgctxt "@action:button"
msgid "Create a Room"
msgstr "أنشئ غرفة"
#: src/rooms/ExploreComponentMobile.qml:161
#, fuzzy, kde-format
#| msgid "Create a Space"
#, kde-format
msgctxt "@action:button"
msgid "Create a Space"
msgstr "أنشئ فضاء"
@@ -4571,15 +4536,13 @@ msgid "Confirm new display name"
msgstr "أكّد اسم العرض الجديد"
#: src/settings/DeviceDelegate.qml:89
#, fuzzy, kde-format
#| msgid "Edit device name"
#, kde-format
msgctxt "@action:button"
msgid "Edit device name"
msgstr "حرر اسم الجهاز"
#: src/settings/DeviceDelegate.qml:99
#, fuzzy, kde-format
#| msgid "Verify device"
#, kde-format
msgctxt "@action:button"
msgid "Verify device"
msgstr "تَثَبّت من الجهاز"
@@ -4591,8 +4554,7 @@ msgid "Verified"
msgstr "متحقّق منه"
#: src/settings/DeviceDelegate.qml:124
#, fuzzy, kde-format
#| msgid "Logout device"
#, kde-format
msgctxt "@action:button"
msgid "Logout device"
msgstr "اخرج الجهاز"
@@ -5857,8 +5819,7 @@ msgid "Canonical"
msgstr "عالمي"
#: src/settings/RoomGeneralPage.qml:274
#, fuzzy, kde-format
#| msgid "Make canonical parent"
#, kde-format
msgctxt "@action:button"
msgid "Make canonical parent"
msgstr "اجعله فضاء رئيس عالمي"
@@ -6723,29 +6684,25 @@ msgid ""
msgstr "هذه هي بداية الدردشة. ولا توجد رسائل قديمة قبل هذه النقطة."
#: src/timeline/TimelineView.qml:219
#, fuzzy, kde-format
#| msgid "Jump to first unread message"
#, kde-format
msgctxt "@action:button"
msgid "Jump to first unread message"
msgstr "اقفز إلى أول رسالة غير المقروءة"
#: src/timeline/TimelineView.qml:219
#, fuzzy, kde-format
#| msgid "Jump to oldest loaded message"
#, kde-format
msgctxt "@action:button"
msgid "Jump to oldest loaded message"
msgstr "اقفز إلى أقدم رسالة محملة"
#: src/timeline/TimelineView.qml:250
#, fuzzy, kde-format
#| msgid "Jump to latest message"
#, kde-format
msgctxt "@action:button"
msgid "Jump to latest message"
msgstr "اقفز إلى أحدث رسالة"
#: src/timeline/TimelineView.qml:285
#, fuzzy, kde-format
#| msgid "Drag items here to share them"
#, kde-format
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-14 21:22+0200\n"
"PO-Revision-Date: 2025-08-16 20:08+0200\n"
"Last-Translator: Vincenzo Reale <smart2128vr@gmail.com>\n"
"Language-Team: Italian <kde-i18n-it@kde.org>\n"
"Language: it\n"
@@ -347,8 +347,7 @@ msgid "Edit"
msgstr "Modifica"
#: src/app/qml/AttachmentPane.qml:61
#, fuzzy, kde-format
#| msgid "Cancel sending attachment"
#, kde-format
msgctxt "@action:button"
msgid "Cancel sending attachment"
msgstr "Annulla l'invio dell'allegato"
@@ -829,43 +828,37 @@ msgid "Create Poll"
msgstr "Crea sondaggio"
#: src/app/qml/NewPollDialog.qml:45
#, fuzzy, kde-format
#| msgid "Poll type:"
#, kde-format
msgctxt "@label"
msgid "Poll type:"
msgstr "Tipo di sondaggio:"
#: src/app/qml/NewPollDialog.qml:50
#, fuzzy, kde-format
#| msgid "Open poll"
#, kde-format
msgctxt "@item:inlistbox"
msgid "Open poll"
msgstr "Sondaggio aperto"
#: src/app/qml/NewPollDialog.qml:51
#, fuzzy, kde-format
#| msgid "Closed poll"
#, kde-format
msgctxt "@item:inlistbox"
msgid "Closed poll"
msgstr "Sondaggio chiuso"
#: src/app/qml/NewPollDialog.qml:56
#, fuzzy, kde-format
#| msgid "Voters can see the result as soon as they have voted"
#, kde-format
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
#, fuzzy, kde-format
#| msgid "Results are revealed only after the poll has closed"
#, kde-format
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
#, fuzzy, kde-format
#| msgid "Question:"
#, kde-format
msgctxt "@label"
msgid "Question:"
msgstr "Domanda:"
@@ -925,50 +918,43 @@ msgid "Scan a QR Code"
msgstr "Scansione di un codice QR"
#: src/app/qml/QuickFormatBar.qml:22
#, fuzzy, kde-format
#| msgid "Bold"
#, kde-format
msgctxt "@action:button"
msgid "Bold"
msgstr "Grassetto"
#: src/app/qml/QuickFormatBar.qml:41
#, fuzzy, kde-format
#| msgid "Italic"
#, kde-format
msgctxt "@action:button"
msgid "Italic"
msgstr "Corsivo"
#: src/app/qml/QuickFormatBar.qml:60
#, fuzzy, kde-format
#| msgid "Strikethrough"
#, kde-format
msgctxt "@action:button"
msgid "Strikethrough"
msgstr "Barrato"
#: src/app/qml/QuickFormatBar.qml:79
#, fuzzy, kde-format
#| msgid "Spoiler"
#, kde-format
msgctxt "@action:button"
msgid "Spoiler"
msgstr "Visualizza nascosto"
#: src/app/qml/QuickFormatBar.qml:98
#, fuzzy, kde-format
#| msgid "Code block"
#, kde-format
msgctxt "@action:button"
msgid "Code block"
msgstr "Blocco di codice"
#: src/app/qml/QuickFormatBar.qml:117
#, fuzzy, kde-format
#| msgid "Quote"
#, kde-format
msgctxt "@action:button"
msgid "Quote"
msgstr "Citazione"
#: src/app/qml/QuickFormatBar.qml:136
#, fuzzy, kde-format
#| msgid "Insert link"
#, kde-format
msgctxt "@action:button"
msgid "Insert link"
msgstr "Inserisci collegamento"
@@ -1225,8 +1211,7 @@ msgid "Ignore this user"
msgstr "Ignora questo utente"
#: src/app/qml/UserDetailDialog.qml:156
#, fuzzy, kde-format
#| msgid "Kick this user"
#, kde-format
msgctxt "@action:button"
msgid "Kick this user"
msgstr "Espelli questo utente"
@@ -1250,15 +1235,13 @@ msgid "Kick"
msgstr "Espelli"
#: src/app/qml/UserDetailDialog.qml:179
#, fuzzy, kde-format
#| msgid "Invite this user"
#, kde-format
msgctxt "@action:button"
msgid "Invite this user"
msgstr "Invita questo utente"
#: src/app/qml/UserDetailDialog.qml:190
#, fuzzy, kde-format
#| msgid "Ban this user"
#, kde-format
msgctxt "@action:button"
msgid "Ban this user"
msgstr "Bandisci questo utente"
@@ -1282,15 +1265,13 @@ msgid "Ban"
msgstr "Bando"
#: src/app/qml/UserDetailDialog.qml:213
#, fuzzy, kde-format
#| msgid "Unban this user"
#, kde-format
msgctxt "@action:button"
msgid "Unban this user"
msgstr "Rimuovi il bando questo utente"
#: src/app/qml/UserDetailDialog.qml:224
#, fuzzy, kde-format
#| msgid "Set user power level"
#, kde-format
msgctxt "@action:button"
msgid "Set user power level"
msgstr "Imposta il livello di potere dell'utente"
@@ -4042,15 +4023,13 @@ msgid "Create New"
msgstr "Crea nuovo"
#: src/rooms/ExploreComponentMobile.qml:143
#, fuzzy, kde-format
#| msgid "Create a Room"
#, kde-format
msgctxt "@action:button"
msgid "Create a Room"
msgstr "Crea una stanza"
#: src/rooms/ExploreComponentMobile.qml:161
#, fuzzy, kde-format
#| msgid "Create a Space"
#, kde-format
msgctxt "@action:button"
msgid "Create a Space"
msgstr "Crea uno spazio"
@@ -4587,15 +4566,13 @@ msgid "Confirm new display name"
msgstr "Conferma il nuovo nome visualizzato"
#: src/settings/DeviceDelegate.qml:89
#, fuzzy, kde-format
#| msgid "Edit device name"
#, kde-format
msgctxt "@action:button"
msgid "Edit device name"
msgstr "Modifica il nome del dispositivo"
#: src/settings/DeviceDelegate.qml:99
#, fuzzy, kde-format
#| msgid "Verify device"
#, kde-format
msgctxt "@action:button"
msgid "Verify device"
msgstr "Verifica il dispositivo"
@@ -4607,8 +4584,7 @@ msgid "Verified"
msgstr "Verificato"
#: src/settings/DeviceDelegate.qml:124
#, fuzzy, kde-format
#| msgid "Logout device"
#, kde-format
msgctxt "@action:button"
msgid "Logout device"
msgstr "Disconnetti il dispositivo"
@@ -5899,8 +5875,7 @@ msgid "Canonical"
msgstr "Canonico"
#: src/settings/RoomGeneralPage.qml:274
#, fuzzy, kde-format
#| msgid "Make canonical parent"
#, kde-format
msgctxt "@action:button"
msgid "Make canonical parent"
msgstr "Crea genitore canonico"
@@ -6773,22 +6748,19 @@ msgstr ""
"punto."
#: src/timeline/TimelineView.qml:219
#, fuzzy, kde-format
#| msgid "Jump to first unread message"
#, kde-format
msgctxt "@action:button"
msgid "Jump to first unread message"
msgstr "Passa al primo messaggio non letto"
#: src/timeline/TimelineView.qml:219
#, fuzzy, kde-format
#| msgid "Jump to oldest loaded message"
#, kde-format
msgctxt "@action:button"
msgid "Jump to oldest loaded message"
msgstr "Salta al messaggio caricato più vecchio"
#: src/timeline/TimelineView.qml:250
#, fuzzy, kde-format
#| msgid "Jump to latest message"
#, kde-format
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
com.github.quotient_im.libquotient
io.github.quotient_im.libquotient
IMPORTS
org.kde.neochat.libneochat
org.kde.neochat.rooms

View File

@@ -126,14 +126,32 @@ Kirigami.Dialog {
}
}
Kirigami.Chip {
visible: root.room
text: root.room ? QmlUtils.nameForPowerLevelValue(root.room.memberEffectivePowerLevel(root.user.id)) : ""
closable: false
checkable: false
Flow {
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
com.github.quotient_im.libquotient
io.github.quotient_im.libquotient
)
ecm_qt_declare_logging_category(LibNeoChat