• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. Kirigami
  • KDE Home
  • Contact Us

Quick Links

Skip menu "Kirigami"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Related Pages

Class Picker

About

QtQuick plugins to build user interfaces based on the KDE UX guidelines

Maintainer
Marco Martin
Supported platforms
Android, Linux
Community
IRC: #plasma on Freenode
Mailing list: plasma-devel
Use with CMake
find_package(KF5Kirigami)
target_link_libraries(yourapp KF5::Kirigami)
Clone
git clone git://anongit.kde.org/kirigami1.git
Browse source
Kirigami on cgit.kde.org

Kirigami

  • View on LXR
  • org
  • kde
  • kirigami
  • RefreshableScrollView
Properties | List of all members
org::kde::kirigami::RefreshableScrollView Class Reference

Inherits QtQuick.Controls.Scrollview, and ScrollView.

Properties

int bottomPadding
 
int leftPadding
 
bool refreshing
 
int rightPadding
 
bool supportsRefreshing
 
int topPadding
 

Detailed Description

RefreshableScrollView is a scroll view for any Flickable that supports the "scroll down to refresh" behavior, and also allows the contents of the flickable to have more top margins in order to make possible to scroll down the list to reach it with the thumb while using the phone with a single hand.

Example usage:

import org.kde.kirigami 1.0 as Kirigami
[...]
Kirigami.RefreshableScrollView {
id: view
supportsRefreshing: true
onRefreshingChanged: {
if (refreshing) {
myModel.refresh();
}
}
ListView {
//NOTE: MyModel doesn't come from the components,
//it's purely an example on how it can be used together
//some application logic that can update the list model
//and signals when it's done.
model: MyModel {
onRefreshDone: view.refreshing = false;
}
delegate: BasicListItem {}
}
}
[...]

Definition at line 62 of file RefreshableScrollView.qml.

Property Documentation

int org::kde::kirigami::RefreshableScrollView::bottomPadding

bottomPadding: int default contents padding at bottom

Definition at line 96 of file RefreshableScrollView.qml.

int org::kde::kirigami::RefreshableScrollView::leftPadding

leftPadding: int default contents padding at left

Definition at line 81 of file RefreshableScrollView.qml.

bool org::kde::kirigami::RefreshableScrollView::refreshing

type: bool If true the list is asking for refresh and will show a loading spinner.

it will automatically be set to true when the user pulls down enough the list. This signals the application logic to start its refresh procedure. The application itself will have to set back this property to false when done.

Definition at line 71 of file RefreshableScrollView.qml.

int org::kde::kirigami::RefreshableScrollView::rightPadding

rightPadding: int default contents padding at right

Definition at line 91 of file RefreshableScrollView.qml.

bool org::kde::kirigami::RefreshableScrollView::supportsRefreshing

type: bool If true the list supports the "pull down to refresh" behavior.

Definition at line 76 of file RefreshableScrollView.qml.

int org::kde::kirigami::RefreshableScrollView::topPadding

topPadding: int default contents padding at top

Definition at line 86 of file RefreshableScrollView.qml.


The documentation for this class was generated from the following file:
  • RefreshableScrollView.qml
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Fri Feb 17 2017 11:09:23 by doxygen 1.8.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

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