Last change
on this file since 203 was 160, checked in by dmik, 19 years ago |
Imported table and iconview modules and a bunch of dependent examples from the official release 3.3.1 from Trolltech.
|
-
Property svn:keywords
set to
Id
|
File size:
718 bytes
|
Line | |
---|
1 | #ifndef CANVASTEXT_H
|
---|
2 | #define CANVASTEXT_H
|
---|
3 |
|
---|
4 | #include <qcanvas.h>
|
---|
5 |
|
---|
6 | class QFont;
|
---|
7 |
|
---|
8 |
|
---|
9 | class CanvasText : public QCanvasText
|
---|
10 | {
|
---|
11 | public:
|
---|
12 | enum { CANVAS_TEXT = 1100 };
|
---|
13 |
|
---|
14 | CanvasText( int index, QCanvas *canvas )
|
---|
15 | : QCanvasText( canvas ), m_index( index ) {}
|
---|
16 | CanvasText( int index, const QString& text, QCanvas *canvas )
|
---|
17 | : QCanvasText( text, canvas ), m_index( index ) {}
|
---|
18 | CanvasText( int index, const QString& text, QFont font, QCanvas *canvas )
|
---|
19 | : QCanvasText( text, font, canvas ), m_index( index ) {}
|
---|
20 |
|
---|
21 | int index() const { return m_index; }
|
---|
22 | void setIndex( int index ) { m_index = index; }
|
---|
23 |
|
---|
24 | int rtti() const { return CANVAS_TEXT; }
|
---|
25 |
|
---|
26 | private:
|
---|
27 | int m_index;
|
---|
28 | };
|
---|
29 |
|
---|
30 | #endif
|
---|
31 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.