calendarui/agendaeventviewer/src/agendaeventvieweritem.cpp
changeset 55 2c54b51f39c4
parent 45 b6db4fd4947b
child 70 a5ed90760192
equal deleted inserted replaced
51:0b38fc5b94c6 55:2c54b51f39c4
    24 #include <hbtextitem.h>
    24 #include <hbtextitem.h>
    25 #include <hbiconitem.h>
    25 #include <hbiconitem.h>
    26 
    26 
    27 // User Includes.
    27 // User Includes.
    28 #include "agendaeventvieweritem.h"
    28 #include "agendaeventvieweritem.h"
       
    29 #include "OstTraceDefinitions.h"
       
    30 #ifdef OST_TRACE_COMPILER_IN_USE
       
    31 #include "agendaeventvieweritemTraces.h"
       
    32 #endif
       
    33 
    29 
    34 
    30 /*!
    35 /*!
    31  \class AgendaEventViewerItem
    36  \class AgendaEventViewerItem
    32 
    37 
    33  This class creates all the primitives for AgendaEventViewer item.
    38  This class creates all the primitives for AgendaEventViewer item.
    41 AgendaEventViewerItem::AgendaEventViewerItem(QGraphicsItem *parent) :
    46 AgendaEventViewerItem::AgendaEventViewerItem(QGraphicsItem *parent) :
    42 	HbWidget(parent), mPrimaryText(NULL), mSecondaryText(NULL),
    47 	HbWidget(parent), mPrimaryText(NULL), mSecondaryText(NULL),
    43 	        mPrimaryIcon(NULL), mSecondaryIcon(NULL),mPrimaryRightIcon(NULL),
    48 	        mPrimaryIcon(NULL), mSecondaryIcon(NULL),mPrimaryRightIcon(NULL),
    44 	        mPrimaryLeftIcon(NULL)
    49 	        mPrimaryLeftIcon(NULL)
    45 {
    50 {
       
    51     OstTraceFunctionEntry0( AGENDAEVENTVIEWERITEM_AGENDAEVENTVIEWERITEM_ENTRY );
    46 
    52 
    47 	// Path for widgetml and css files.
    53 	// Path for widgetml and css files.
    48 	HbStyleLoader::registerFilePath(":/");
    54 	HbStyleLoader::registerFilePath(":/");
    49 
    55 
       
    56 	OstTraceFunctionExit0( AGENDAEVENTVIEWERITEM_AGENDAEVENTVIEWERITEM_EXIT );
    50 }
    57 }
    51 
    58 
    52 /*!
    59 /*!
    53  Destructor.
    60  Destructor.
    54  */
    61  */
    55 AgendaEventViewerItem::~AgendaEventViewerItem()
    62 AgendaEventViewerItem::~AgendaEventViewerItem()
    56 {
    63 {
       
    64 	OstTraceFunctionEntry0( DUP1_AGENDAEVENTVIEWERITEM_AGENDAEVENTVIEWERITEM_ENTRY );
    57 	HbStyleLoader::unregisterFilePath(":/");
    65 	HbStyleLoader::unregisterFilePath(":/");
    58 
    66 
       
    67 	OstTraceFunctionExit0( DUP1_AGENDAEVENTVIEWERITEM_AGENDAEVENTVIEWERITEM_EXIT );
    59 }
    68 }
    60 
    69 
    61 /*!
    70 /*!
    62  Sets the data for EventViewer items
    71  Sets the data for EventViewer items
    63  To set textitem data use Qt::DisplayRole
    72  To set textitem data use Qt::DisplayRole
    66  \param role qt role of text and icon item
    75  \param role qt role of text and icon item
    67  */
    76  */
    68 void AgendaEventViewerItem::setEventViewerItemData(const QStringList &itemData,
    77 void AgendaEventViewerItem::setEventViewerItemData(const QStringList &itemData,
    69                                                    int role)
    78                                                    int role)
    70 {
    79 {
       
    80 	OstTraceFunctionEntry0( AGENDAEVENTVIEWERITEM_SETEVENTVIEWERITEMDATA_ENTRY );
    71 	if (!itemData.isEmpty()) {
    81 	if (!itemData.isEmpty()) {
    72 		QString firstItemData(QString::null);
    82 		QString firstItemData(QString::null);
    73 		QString secondItemData(QString::null);
    83 		QString secondItemData(QString::null);
    74 		QString thirdItemData(QString::null);
    84 		QString thirdItemData(QString::null);
    75         if (itemData.count() == 2) {
    85         if (itemData.count() == 2) {
   161 
   171 
   162 			}
   172 			}
   163 		}
   173 		}
   164 	}
   174 	}
   165 	repolish();
   175 	repolish();
       
   176 	OstTraceFunctionExit0( AGENDAEVENTVIEWERITEM_SETEVENTVIEWERITEMDATA_EXIT );
   166 }
   177 }
   167 
   178 
   168 // End of file	--Don't remove this.
   179 // End of file	--Don't remove this.