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

kdgantt2

  • sources
  • kde-4.12
  • kdepim
  • kdgantt2
kdganttstyleoptionganttitem.cpp
Go to the documentation of this file.
1 /****************************************************************************
2  ** Copyright (C) 2001-2006 Klarälvdalens Datakonsult AB. All rights reserved.
3  **
4  ** This file is part of the KD Gantt library.
5  **
6  ** This file may be distributed and/or modified under the terms of the
7  ** GNU General Public License version 2 as published by the Free Software
8  ** Foundation and appearing in the file LICENSE.GPL included in the
9  ** packaging of this file.
10  **
11  ** Licensees holding valid commercial KD Gantt licenses may use this file in
12  ** accordance with the KD Gantt Commercial License Agreement provided with
13  ** the Software.
14  **
15  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17  **
18  ** See http://www.kdab.net/kdgantt for
19  ** information about KD Gantt Commercial License Agreements.
20  **
21  ** Contact info@kdab.net if any conditions of this
22  ** licensing are not clear to you.
23  **
24  **********************************************************************/
25 #include "kdganttstyleoptionganttitem.h"
26 
27 using namespace KDGantt;
28 
34 typedef QStyleOptionViewItem BASE;
35 
37 StyleOptionGanttItem::StyleOptionGanttItem()
38  : BASE(),
39  grid( 0 )
40 {
41  type = QStyleOption::SO_CustomBase+89;
42  version = 1;
43 }
44 
46 StyleOptionGanttItem::StyleOptionGanttItem( const StyleOptionGanttItem& other )
47  : BASE(other)
48 {
49  operator=( other );
50 }
51 
53 StyleOptionGanttItem& StyleOptionGanttItem::operator=( const StyleOptionGanttItem& other )
54 {
55  BASE::operator=( other );
56  boundingRect = other.boundingRect;
57  itemRect = other.itemRect;
58  displayPosition = other.displayPosition;
59  grid = other.grid;
60  text = other.text;
61  return *this;
62 }
63 
64 #ifndef QT_NO_DEBUG_STREAM
65 QDebug operator<<( QDebug dbg, KDGantt::StyleOptionGanttItem::Position p)
66 {
67  switch( p ) {
68  case KDGantt::StyleOptionGanttItem::Left: dbg << "KDGantt::StyleOptionGanttItem::Left"; break;
69  case KDGantt::StyleOptionGanttItem::Right: dbg << "KDGantt::StyleOptionGanttItem::Right"; break;
70  case KDGantt::StyleOptionGanttItem::Center: dbg << "KDGantt::StyleOptionGanttItem::Center"; break;
71  default: dbg << static_cast<int>( p );
72  }
73  return dbg;
74 }
75 
76 QDebug operator<<( QDebug dbg, const KDGantt::StyleOptionGanttItem& s )
77 {
78  dbg << "KDGantt::StyleOptionGanttItem[ boundingRect="<<s.boundingRect
79  <<", itemRect="<<s.itemRect
80  <<", displayPosition="<<s.displayPosition
81  <<", grid="<<s.grid
82  <<", text="<<s.text
83  <<"]";
84  return dbg;
85 }
86 
87 #endif /* QT_NO_DEBUG_STREAM */
88 
89 
KDGantt::StyleOptionGanttItem::text
QString text
Definition: kdganttstyleoptionganttitem.h:48
BASE
QStyleOptionViewItem BASE
Definition: kdganttstyleoptionganttitem.cpp:34
KDGantt::StyleOptionGanttItem::displayPosition
Position displayPosition
Definition: kdganttstyleoptionganttitem.h:46
KDGantt::StyleOptionGanttItem::Center
Definition: kdganttstyleoptionganttitem.h:38
KDGantt::StyleOptionGanttItem::operator=
StyleOptionGanttItem & operator=(const StyleOptionGanttItem &other)
Definition: kdganttstyleoptionganttitem.cpp:53
KDGantt::StyleOptionGanttItem::StyleOptionGanttItem
StyleOptionGanttItem()
Definition: kdganttstyleoptionganttitem.cpp:37
kdganttstyleoptionganttitem.h
KDGantt::StyleOptionGanttItem::Position
Position
Definition: kdganttstyleoptionganttitem.h:38
KDGantt::StyleOptionGanttItem::Left
Definition: kdganttstyleoptionganttitem.h:38
operator<<
QDebug operator<<(QDebug dbg, KDGantt::StyleOptionGanttItem::Position p)
Definition: kdganttstyleoptionganttitem.cpp:65
QAbstractProxyModel
KDGantt::StyleOptionGanttItem::itemRect
QRectF itemRect
Definition: kdganttstyleoptionganttitem.h:45
KDGantt::StyleOptionGanttItem
QStyleOption subclass for gantt items.
Definition: kdganttstyleoptionganttitem.h:36
QStyleOptionViewItem
KDGantt::StyleOptionGanttItem::Right
Definition: kdganttstyleoptionganttitem.h:38
KDGantt::StyleOptionGanttItem::boundingRect
QRectF boundingRect
Definition: kdganttstyleoptionganttitem.h:44
KDGantt::StyleOptionGanttItem::grid
AbstractGrid * grid
Definition: kdganttstyleoptionganttitem.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdgantt2

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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