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

kanagram

  • sources
  • kde-4.12
  • kdeedu
  • kanagram
  • src
  • plasma-active
  • src
kdeclarativeview.h
Go to the documentation of this file.
1 /***************************************************************************
2  * *
3  * Copyright 2011 Sebastian Kügler <sebas@kde.org> *
4  * Copyright 2011 Marco Martin <mart@kde.org> *
5  * *
6  * This program is free software; you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation; either version 2 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this program; if not, write to the *
18  * Free Software Foundation, Inc., *
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
20  ***************************************************************************/
21 
22 #ifndef KDECLARATIVEVIEW_H
23 #define KDECLARATIVEVIEW_H
24 
25 #include <QDeclarativeView>
26 
27 
28 namespace Plasma
29 {
30  class Package;
31 }
32 
33 class KDeclarativeViewPrivate;
34 
35 class KDeclarativeView : public QDeclarativeView
36 {
37  Q_OBJECT
38 
39 public:
40  KDeclarativeView(QWidget *parent = 0);
41  ~KDeclarativeView();
42 
47  void setUseGL(const bool on);
51  bool useGL() const;
52 
59  void setPackageName(const QString &packageName);
63  QString packageName() const;
64 
70  //FIXME: remove this function?
71  void setPackage(Plasma::Package *package);
75  Plasma::Package *package() const;
76 
77 private:
78  KDeclarativeViewPrivate *const d;
79 };
80 
81 #endif //KDECLARATIVEVIEW_H
KDeclarativeView
Definition: kdeclarativeview.h:35
KDeclarativeView::useGL
bool useGL() const
Definition: kdeclarativeview.cpp:117
QDeclarativeView
KDeclarativeView::~KDeclarativeView
~KDeclarativeView()
Definition: kdeclarativeview.cpp:72
KDeclarativeView::setPackageName
void setPackageName(const QString &packageName)
Sets the package from where load the application QML UI The package must be of the type "Generic pack...
Definition: kdeclarativeview.cpp:77
QWidget
KDeclarativeView::packageName
QString packageName() const
Definition: kdeclarativeview.cpp:84
KDeclarativeView::setUseGL
void setUseGL(const bool on)
Sets wether the application uses opengl.
Definition: kdeclarativeview.cpp:105
KDeclarativeView::KDeclarativeView
KDeclarativeView(QWidget *parent=0)
Definition: kdeclarativeview.cpp:49
KDeclarativeView::package
Plasma::Package * package() const
Definition: kdeclarativeview.cpp:100
KDeclarativeView::setPackage
void setPackage(Plasma::Package *package)
Sets the package used for the application QML UI.
Definition: kdeclarativeview.cpp:89
This file is part of the KDE documentation.
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.

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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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