kanagram
#include <kdeclarativemainwindow.h>

Public Slots | |
void | setCaption (const QString &caption) |
void | setCaption (const QString &caption, bool modified) |
Signals | |
void | captionChanged () |
Public Member Functions | |
KDeclarativeMainWindow () | |
~KDeclarativeMainWindow () | |
QString | caption () const |
KConfigGroup | config (const QString &group="Default") |
KDeclarativeView * | declarativeView () const |
QStringList | startupArguments () const |
Q_INVOKABLE QString | startupOption (const QString &option) const |
Properties | |
QString | caption |
QStringList | startupArguments |
Detailed Description
Definition at line 33 of file kdeclarativemainwindow.h.
Constructor & Destructor Documentation
KDeclarativeMainWindow::KDeclarativeMainWindow | ( | ) |
Definition at line 61 of file kdeclarativemainwindow.cpp.
KDeclarativeMainWindow::~KDeclarativeMainWindow | ( | ) |
Definition at line 97 of file kdeclarativemainwindow.cpp.
Member Function Documentation
QString KDeclarativeMainWindow::caption | ( | ) | const |
|
signal |
KConfigGroup KDeclarativeMainWindow::config | ( | const QString & | group = "Default" | ) |
The main kconfiggroup to be used for this application The configuration file name is derived from the application name.
- QString group the kconfigugroup name
Definition at line 108 of file kdeclarativemainwindow.cpp.
KDeclarativeView * KDeclarativeMainWindow::declarativeView | ( | ) | const |
- Returns
- the declarative view that will contain the application UI It loads a Plasma::Package rather than an absolute path
- See also
- KDeclarativeView
- Plasma::Package
Definition at line 103 of file kdeclarativemainwindow.cpp.
|
slot |
Definition at line 128 of file kdeclarativemainwindow.cpp.
|
slot |
Definition at line 139 of file kdeclarativemainwindow.cpp.
QStringList KDeclarativeMainWindow::startupArguments | ( | ) | const |
QString KDeclarativeMainWindow::startupOption | ( | const QString & | option | ) | const |
Read out a string option.
The option must have a corresponding KCmdLineOptions entry of the form: options.add("option <argument>", ki18n("Description"), "default");
You cannot test for the presence of an alias - you must always test for the full option.
- QString option The name of the option without '-'.
- Returns
- The value of the option. If the option was not present on the command line the default is returned. If the option was present more than once, the value of the last occurrence is used.
Definition at line 118 of file kdeclarativemainwindow.cpp.
Property Documentation
|
readwrite |
The caption of the main window.
Do not include the application name in this string. It will be added automatically according to the KDE standard.
Definition at line 43 of file kdeclarativemainwindow.h.
|
read |
the list of all startup arguments, such as urls to open
Definition at line 39 of file kdeclarativemainwindow.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.