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

kapptemplate

  • sources
  • kde-4.12
  • kdesdk
  • kapptemplate
apptemplatesmodel.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright 2007 Alexander Dymo <adymo@kdevelop.org> *
3  * Copyright 2008 Anne-Marie Mahfouf <annma@kde.org> *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 
21 #ifndef _APPTEMPLATESMODEL_H_
22 #define _APPTEMPLATESMODEL_H_
23 
24 #include <QMap>
25 #include <QStandardItemModel>
26 #include <QVariant>
27 #include <QMap>
28 
29 class ChoicePage;
30 class AppTemplateItem;
31 
38 class AppTemplatesModel: public QStandardItemModel {
39 public:
40  AppTemplatesModel(ChoicePage *parent);
41  // Refresh the model data
42  void refresh();
43  // Display the header
44  QVariant headerData(int section, Qt::Orientation orientation, int role) const;
45 
46 private:
47  // Based on QStandardItem, create a model item
48  AppTemplateItem *createItem(const QString &name, const QString &category);
49  // Instance of the view
50  ChoicePage *m_choicePage;
51  QMap<QString, QStandardItem*> m_templateItems;
52 };
53 
54 #endif
55 
QStandardItemModel
AppTemplateItem
Definition: apptemplateitem.h:26
AppTemplatesModel::headerData
QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition: apptemplatesmodel.cpp:129
AppTemplatesModel
Templates Model class.
Definition: apptemplatesmodel.h:38
AppTemplatesModel::refresh
void refresh()
Definition: apptemplatesmodel.cpp:73
ChoicePage
Definition: choicepage.h:32
AppTemplatesModel::AppTemplatesModel
AppTemplatesModel(ChoicePage *parent)
Definition: apptemplatesmodel.cpp:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kapptemplate

Skip menu "kapptemplate"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

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