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

libkdegames

  • sources
  • kde-4.14
  • kdegames
  • libkdegames
kgthemeselector_p.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright 2009-2012 Stefan Majewsky <majewsky@gmx.net> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU Library General Public License *
6  * version 2 as published by the Free Software Foundation *
7  * *
8  * This program is distributed in the hope that it will be useful, *
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
11  * GNU Library General Public License for more details. *
12  * *
13  * You should have received a copy of the GNU Library General Public *
14  * License along with this program; if not, write to the *
15  * Free Software Foundation, Inc., *
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
17  ***************************************************************************/
18 
19 #ifndef KGAME_GRAPHICSDELEGATE_P_H
20 #define KGAME_GRAPHICSDELEGATE_P_H
21 
22 #include <QtGui/QStyledItemDelegate>
23 
24 #include <libkdegames_export.h>
25 
26 class KgThemeDelegate : public QStyledItemDelegate
27 {
28  public:
29  enum Roles
30  {
31  DescriptionRole = Qt::UserRole,
32  AuthorRole,
33  AuthorEmailRole,
34  IdRole //not displayed, but used internally
35  };
36 
37  KgThemeDelegate(QObject* parent = 0);
38  virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
40  virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
41  QRect thumbnailRect(const QRect& baseRect) const;
42 };
43 
44 #endif // KGAME_GRAPHICSDELEGATE_P_H
QModelIndex
KgThemeDelegate::KgThemeDelegate
KgThemeDelegate(QObject *parent=0)
Definition: kgthemeselector.cpp:225
KgThemeDelegate::thumbnailRect
QRect thumbnailRect(const QRect &baseRect) const
Definition: kgthemeselector.cpp:233
libkdegames_export.h
QRect
KgThemeDelegate
Definition: kgthemeselector_p.h:26
KgThemeDelegate::AuthorRole
Definition: kgthemeselector_p.h:32
QStyleOptionViewItem
QObject
QPainter
KgThemeDelegate::sizeHint
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: kgthemeselector.cpp:319
QSize
KgThemeDelegate::AuthorEmailRole
Definition: kgthemeselector_p.h:33
KgThemeDelegate::paint
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: kgthemeselector.cpp:242
KgThemeDelegate::DescriptionRole
Definition: kgthemeselector_p.h:31
KgThemeDelegate::Roles
Roles
Definition: kgthemeselector_p.h:29
KgThemeDelegate::IdRole
Definition: kgthemeselector_p.h:34
QObject::parent
QObject * parent() const
QStyledItemDelegate
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdegames

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

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

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