File: LinkDialog.qml

package info (click to toggle)
marknote 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,724 kB
  • sloc: cpp: 3,006; xml: 295; makefile: 5; sh: 1
file content (33 lines) | stat: -rw-r--r-- 841 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// SPDX-FileCopyrightText: 2024 Carl Schwan <carl@carlschwan.eu>
// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL

import QtQuick
import QtQuick.Controls as QQC2
import QtQuick.Layouts

import org.kde.kirigami as Kirigami
import org.kde.kirigamiaddons.formcard as FormCard

FormCard.FormCardDialog {
    id: root

    property alias linkText: linkTextField.text
    property alias linkUrl: linkUrlField.text

    title: i18nc("@title:window", "Insert Link")
    standardButtons: QQC2.Dialog.Ok | QQC2.Dialog.Cancel

    FormCard.FormTextFieldDelegate {
        id: linkTextField

        label: i18nc("@label:textbox", "Link Text:")
    }

    FormCard.FormDelegateSeparator {}

    FormCard.FormTextFieldDelegate {
        id: linkUrlField

        label: i18nc("@label:textbox", "Link URL:")
    }
}