Warning, /network/neochat/src/qml/DevtoolsPage.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2022 Tobias Fella <tobias.fella@kde.org>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 import QtQuick
0005 import QtQuick.Controls as QQC2
0006 import QtQuick.Layouts
0007 
0008 import org.kde.kirigamiaddons.formcard as FormCard
0009 
0010 import org.kde.neochat
0011 
0012 FormCard.FormCardPage {
0013     id: root
0014 
0015     property NeoChatRoom room
0016     required property NeoChatConnection connection
0017 
0018     title: i18n("Developer Tools")
0019 
0020     leftPadding: 0
0021     rightPadding: 0
0022 
0023     header: QQC2.TabBar {
0024         id: tabBar
0025 
0026         QQC2.TabButton {
0027             text: qsTr("Room Data")
0028         }
0029         QQC2.TabButton {
0030             text: qsTr("Server Info")
0031         }
0032     }
0033 
0034     StackLayout {
0035         id: swipeView
0036 
0037         currentIndex: tabBar.currentIndex
0038 
0039         RoomData {
0040             room: root.room
0041             connection: root.connection
0042         }
0043         ServerData {
0044             connection: root.connection
0045         }
0046     }
0047 }