34
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: VideoDetailsLabel class implementation
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include "videodetailslabel.h"
|
|
19 |
|
|
20 |
// SYSTEM INCLUDES
|
|
21 |
#include <HbLabel>
|
|
22 |
#include <QGraphicsSceneMouseEvent>
|
|
23 |
|
|
24 |
//---------------------------------------------------------------
|
|
25 |
// VideoDetailsLabel::VideoDetailsLabel
|
|
26 |
// @see header
|
|
27 |
//---------------------------------------------------------------
|
|
28 |
VideoDetailsLabel::VideoDetailsLabel(QGraphicsItem *parent) :
|
|
29 |
HbLabel(parent)
|
|
30 |
{
|
|
31 |
}
|
|
32 |
|
|
33 |
//---------------------------------------------------------------
|
|
34 |
// VideoDetailsLabel::~VideoDetailsLabel
|
|
35 |
// @see header
|
|
36 |
//---------------------------------------------------------------
|
|
37 |
VideoDetailsLabel::~VideoDetailsLabel()
|
|
38 |
{
|
|
39 |
}
|
|
40 |
|
|
41 |
//---------------------------------------------------------------
|
|
42 |
// VideoDetailsLabel::click
|
|
43 |
// @see header
|
|
44 |
//---------------------------------------------------------------
|
|
45 |
void VideoDetailsLabel::click()
|
|
46 |
{
|
|
47 |
emit clicked(true);
|
|
48 |
}
|
|
49 |
|
|
50 |
//---------------------------------------------------------------
|
|
51 |
// VideoDetailsLabel::init
|
|
52 |
// @see header
|
|
53 |
//---------------------------------------------------------------
|
|
54 |
void VideoDetailsLabel::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
|
55 |
{
|
|
56 |
Q_UNUSED(event);
|
|
57 |
emit clicked(true);
|
|
58 |
}
|
|
59 |
|
|
60 |
// EOF
|