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

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • active
  • app
  • package
  • contents
  • ui
Thumbnails.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.mobilecomponents 0.1 as MobileComponents
24 
25 ThumbnailsBase {
26  id: root
27  model: documentItem.matchingPages
28 
29  anchors.fill: parent
30  tools: Item {
31  id: toolBarContent
32  width: root.width
33  height: searchField.height
34  MobileComponents.ViewSearch {
35  id: searchField
36  enabled: documentItem.supportsSearch
37  anchors.centerIn: parent
38  busy: documentItem.searchInProgress
39  onSearchQueryChanged: {
40  if (searchQuery.length > 2) {
41  documentItem.searchText(searchQuery)
42  } else {
43  view.currentIndex = pageArea.delegate.pageNumber
44  documentItem.resetSearch()
45  }
46  }
47  }
48  PlasmaComponents.Label {
49  anchors {
50  left: searchField.right
51  verticalCenter: searchField.verticalCenter
52  }
53  visible: documentItem.matchingPages.length == 0
54  text: i18n("No results found.")
55  }
56  }
57 }
ThumbnailsBase
Definition: ThumbnailsBase.qml:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 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