Songbook-Client
0.7
This application is a manager of customguitar songbooks
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Pages
src
label.hh
Go to the documentation of this file.
1
// Copyright (C) 2009-2011, Romain Goffe <romain.goffe@gmail.com>
2
// Copyright (C) 2009-2011, Alexandre Dupas <alexandre.dupas@gmail.com>
3
//
4
// This program is free software; you can redistribute it and/or
5
// modify it under the terms of the GNU General Public License as
6
// published by the Free Software Foundation; either version 2 of the
7
// License, or (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
// General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17
// 02110-1301, USA.
18
//******************************************************************************
19
20
#ifndef __LABEL_HH__
21
#define __LABEL_HH__
22
23
#include <QLabel>
24
30
class
CLabel
:
public
QLabel
31
{
32
Q_OBJECT
33
Q_PROPERTY(Qt::TextElideMode
elideMode
READ
elideMode
WRITE
setElideMode
)
34
35
public
:
37
CLabel
(QWidget *parent = 0);
38
40
~CLabel
();
41
45
Qt::TextElideMode
elideMode
()
const
;
46
49
void
setElideMode
(Qt::TextElideMode mode);
50
51
protected
:
52
void
paintEvent(QPaintEvent *event);
53
54
private
:
55
Qt::TextElideMode m_elideMode;
56
QString m_textCache;
57
};
58
59
#endif // __LABEL_HH__
Generated on Fri Jul 20 2012 20:46:38 for Songbook-Client by
1.8.1.1