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

kanagram

Public Slots | Signals | Public Member Functions | Properties | List of all members
KDeclarativeMainWindow Class Reference

#include <kdeclarativemainwindow.h>

Inheritance diagram for KDeclarativeMainWindow:
Inheritance graph
[legend]

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 60 of file kdeclarativemainwindow.cpp.

KDeclarativeMainWindow::~KDeclarativeMainWindow ( )

Definition at line 96 of file kdeclarativemainwindow.cpp.

Member Function Documentation

QString KDeclarativeMainWindow::caption ( ) const
void KDeclarativeMainWindow::captionChanged ( )
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 107 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 102 of file kdeclarativemainwindow.cpp.

void KDeclarativeMainWindow::setCaption ( const QString &  caption)
slot

Definition at line 127 of file kdeclarativemainwindow.cpp.

void KDeclarativeMainWindow::setCaption ( const QString &  caption,
bool  modified 
)
slot

Definition at line 138 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 117 of file kdeclarativemainwindow.cpp.

Property Documentation

QString KDeclarativeMainWindow::caption
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.

QStringList KDeclarativeMainWindow::startupArguments
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:
  • kdeclarativemainwindow.h
  • kdeclarativemainwindow.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kanagram

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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