52
|
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: This is custom widget for details view in photos for displaying the description of image .
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef GlXDETAILSDESCEDIT_H
|
|
19 |
#define GlXDETAILSDESCEDIT_H
|
|
20 |
|
|
21 |
#include <hbtextedit.h>
|
|
22 |
|
|
23 |
#ifdef BUILD_DETAILSCUSTOM
|
|
24 |
#define MY_EXPORT Q_DECL_EXPORT
|
|
25 |
#else
|
|
26 |
#define MY_EXPORT Q_DECL_IMPORT
|
|
27 |
#endif
|
|
28 |
|
|
29 |
class HbEditorInterface;
|
|
30 |
class MY_EXPORT GlxDetailsTextEdit : public HbTextEdit
|
|
31 |
{
|
|
32 |
Q_OBJECT
|
|
33 |
|
|
34 |
public:
|
|
35 |
GlxDetailsTextEdit(QGraphicsItem *parent = NULL);
|
|
36 |
~GlxDetailsTextEdit();
|
|
37 |
void setItemText( const QString &text );
|
|
38 |
|
|
39 |
protected:
|
|
40 |
void focusInEvent (QFocusEvent *event) ;
|
|
41 |
void focusOutEvent (QFocusEvent *event) ;
|
|
42 |
|
|
43 |
|
|
44 |
signals :
|
|
45 |
void labelPressed();
|
|
46 |
private:
|
|
47 |
HbEditorInterface *mDesc;
|
|
48 |
};
|
|
49 |
|
|
50 |
#endif // GlXDETAILSDESCEDIT_H
|