kdgantt
kdganttstyleoptionganttitem.cpp
Go to the documentation of this file.00001 /**************************************************************************** 00002 ** Copyright (C) 2001-2006 Klarälvdalens Datakonsult AB. All rights reserved. 00003 ** 00004 ** This file is part of the KD Gantt library. 00005 ** 00006 ** This file may be used under the terms of the GNU General Public 00007 ** License versions 2.0 or 3.0 as published by the Free Software 00008 ** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 00009 ** included in the packaging of this file. Alternatively you may (at 00010 ** your option) use any later version of the GNU General Public 00011 ** License if such license has been publicly approved by 00012 ** Klarälvdalens Datakonsult AB (or its successors, if any). 00013 ** 00014 ** This file is provided "AS IS" with NO WARRANTY OF ANY KIND, 00015 ** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR 00016 ** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights 00017 ** not expressly granted herein. 00018 ** 00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00021 ** 00022 **********************************************************************/ 00023 #include "kdganttstyleoptionganttitem.h" 00024 00025 using namespace KDGantt; 00026 00032 typedef QStyleOptionViewItem BASE; 00033 00035 StyleOptionGanttItem::StyleOptionGanttItem() 00036 : BASE(), 00037 grid( 0 ) 00038 { 00039 type = QStyleOption::SO_CustomBase+89; 00040 version = 1; 00041 } 00042 00044 StyleOptionGanttItem::StyleOptionGanttItem( const StyleOptionGanttItem& other ) 00045 : BASE(other) 00046 { 00047 operator=( other ); 00048 } 00049 00051 StyleOptionGanttItem& StyleOptionGanttItem::operator=( const StyleOptionGanttItem& other ) 00052 { 00053 BASE::operator=( other ); 00054 boundingRect = other.boundingRect; 00055 itemRect = other.itemRect; 00056 displayPosition = other.displayPosition; 00057 grid = other.grid; 00058 text = other.text; 00059 return *this; 00060 } 00061 00062 #ifndef QT_NO_DEBUG_STREAM 00063 00064 QDebug operator<<( QDebug dbg, const KDGantt::StyleOptionGanttItem& s ) 00065 { 00066 dbg << "KDGantt::StyleOptionGanttItem[ boundingRect="<<s.boundingRect 00067 <<", itemRect="<<s.itemRect 00068 <<", displayPosition="<<s.displayPosition 00069 <<", grid="<<s.grid 00070 <<", text="<<s.text 00071 <<"]"; 00072 return dbg; 00073 } 00074 00075 #endif /* QT_NO_DEBUG_STREAM */ 00076 00077
KDE 4.2 API Reference