• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • sources
  • kde-4.14
  • kdegraphics
  • okular
  • active
  • app
  • package
  • contents
  • ui
TableOfContents.qml
Go to the documentation of this file.
1 /*
2  * Copyright 2012 Marco Martin <mart@kde.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2,
7  * or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details
13  *
14  * You should have received a copy of the GNU General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 import QtQuick 1.1
21 import org.kde.plasma.components 0.1 as PlasmaComponents
22 import org.kde.plasma.core 0.1 as PlasmaCore
23 import org.kde.plasma.extras 0.1 as PlasmaExtras
24 import org.kde.plasma.mobilecomponents 0.1 as MobileComponents
25 
26 PlasmaComponents.Page {
27  property alias contentY: flickable.contentY
28  property alias contentHeight: flickable.contentHeight
29 
30  tools: MobileComponents.ViewSearch {
31  id: searchField
32  anchors.centerIn: parent
33  busy: documentItem.searchInProgress
34  }
35  PlasmaExtras.ScrollArea {
36  anchors.fill: parent
37 
38  Flickable {
39  id: flickable
40  anchors.fill: parent
41  contentWidth: width
42  contentHeight: treeView.height
43  Column {
44  id: treeView
45  width: flickable.width
46  Repeater {
47  model: VisualDataModel {
48  id: tocModel
49  model: documentItem.tableOfContents
50  delegate: TreeDelegate {
51  sourceModel: tocModel
52  width: treeView.width
53  }
54  }
55  }
56  }
57  }
58  }
59 }
TreeDelegate
Definition: TreeDelegate.qml:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal