libkdegames
KgDeclarativeView Class Reference
#include <kgdeclarativeview.h>
Inheritance diagram for KgDeclarativeView:
Public Member Functions | |
KgDeclarativeView (QWidget *parent=0) | |
Detailed Description
A QDeclarativeView that adds KDE specific module paths and javascript bindings.
- Since
- 4.11 This class is a QDeclarativeView that sets up a KDE specific environment like custom QML module paths and javascript function bindings (like i18n) to the declarative view.
For porting KDE games to QML, the central widget of main window is to be replaced by KgDeclarativeView (inside which all the .qml graphics take place), leaving the toolbars, menubars and statusbars as they are, and updating their specifics via signals from QML to C++ part of the code.
Definition at line 42 of file kgdeclarativeview.h.
Constructor & Destructor Documentation
KgDeclarativeView::KgDeclarativeView | ( | QWidget * | parent = 0 | ) |
Construcs a new KgDeclarativeView with KDE specific environment.
- Parameters
-
parent The parent widget for this view (usually the main window of the game)
Definition at line 23 of file kgdeclarativeview.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.