"Fossies" - the Fresh Open Source Software Archive

Member "labplot-2.8.2/src/kdefrontend/welcomescreen/HelpList.qml" (24 Feb 2021, 2784 Bytes) of package /linux/privat/labplot-2.8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) QML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "HelpList.qml": 2.8.1_vs_2.8.2.

    1 import QtQuick 2.6
    2 import QtQuick.XmlListModel 2.0
    3 import QtQuick.Layouts 1.3
    4 import QtQuick.Controls 2.5
    5 
    6 ListView {
    7                 id: listView2
    8                 width: parent.width
    9                 Layout.fillHeight: true
   10                 Layout.fillWidth: true
   11                 clip: true
   12                 ScrollBar.vertical: ScrollBar { }
   13                 model: ListModel {
   14                     ListElement {
   15                         name: "Documentation"
   16                         link: "https://docs.kde.org/?application=labplot2"
   17                     }
   18 
   19                     ListElement {
   20                         name: "FAQ"
   21                         link: "https://docs.kde.org/?application=labplot2&branch=trunk5&path=faq.html"
   22                     }
   23 
   24                     ListElement {
   25                         name: "Features"
   26                         link: "https://labplot.kde.org/features/"
   27                     }
   28 
   29                     ListElement {
   30                         name: "Support"
   31                         link: "https://labplot.kde.org/support/"
   32                     }
   33                 }
   34                 delegate: Rectangle {
   35                     width: parent.width
   36                     height: 25
   37                     RowLayout {
   38                         id: row3
   39                         width: parent.width
   40                         height: parent.height
   41                         spacing: 10
   42 
   43                         Rectangle {
   44                             Layout.alignment: Qt.AlignVCenter
   45                             width: 5
   46                             height: 5
   47                             color: "#7a7d82"
   48                         }
   49 
   50                         Label {
   51                             height: parent.height
   52                             width: parent.width - 5 - parent.spacing
   53                             Layout.minimumWidth: parent.width - 5 - parent.spacing
   54                             Layout.preferredWidth: parent.width - 5 - parent.spacing
   55                             text: name
   56                             font.bold: true
   57                             font.pixelSize: 18
   58                             minimumPixelSize: 1
   59                             fontSizeMode: Text.Fit
   60 
   61                             verticalAlignment: Text.AlignVCenter
   62                             horizontalAlignment: Text.AlignHCenter
   63                             //wrapMode: Text.WordWrap
   64                         }
   65                     }
   66 
   67                     MouseArea {
   68                         anchors.fill: parent
   69                         hoverEnabled: true
   70                         onEntered: {parent.color = '#fdffbf' }
   71                         onExited: {parent.color = '#ffffff'}
   72                         onClicked: {Qt.openUrlExternally(link)}
   73                     }
   74                 }
   75             }