Pages
API Documentation
On this page

Button QML Type

A button which when clicked will open a dialog with a NewStuff.Page at the base. More...

  • Import Statement: import org.kde.newstuff

Detailed Description

This component is equivalent to the old Button.

See also Button

Property Documentation

configFile : string

The configuration file to use for this button

downloadNewWhat : string

Set the text that should appear on the button. Will be set as i18nd("knewstuff6", "Download New %1…").

Note: For the sake of consistency, you should NOT override the text property, just set this one

engine : NewStuff.Engine

The engine which handles the content in this Button.

viewMode : int

The view mode of the dialog spawned by this button, which overrides the default one (ViewMode.Tiles). This should be set using the NewStuff.Page.ViewMode enum. Note that ViewMode.Icons has been removed, and asking for it will return ViewMode.Tiles.

See also NewStuff.Page.ViewMode

visibleWhenDisabled : bool

If this is true (default is false), the button will be shown when the Kiosk settings are such that Get Hot New Stuff is disallowed (and any other time enabled is set to false). Usually you would want to leave this alone, but occasionally you may have a reason to leave a button in place that the user is unable to enable.

Signal Documentation

aboutToShowDialog()

Emitted when the Hot New Stuff dialog is about to be shown, usually as a result of the user having click on the button.

Note: The corresponding handler is onAboutToShowDialog.

entryEvent(var entry, int event)

This forwards the entryEvent from the QtQuick engine.

Note: The corresponding handler is onEntryEvent.

See also Engine::entryEvent

Method Documentation

showDialog()

Show the dialog (same as clicking the button), if allowed by the Kiosk settings.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.