src/hbwidgets/widgets/hblabel.h
changeset 21 4633027730f5
parent 6 c3690ec91ef8
equal deleted inserted replaced
7:923ff622b8b9 21:4633027730f5
    44     Q_PROPERTY(Qt::TextElideMode elideMode READ elideMode WRITE setElideMode)
    44     Q_PROPERTY(Qt::TextElideMode elideMode READ elideMode WRITE setElideMode)
    45     Q_PROPERTY(Hb::TextWrapping textWrapping READ textWrapping WRITE setTextWrapping)
    45     Q_PROPERTY(Hb::TextWrapping textWrapping READ textWrapping WRITE setTextWrapping)
    46     Q_PROPERTY(QColor textColor READ textColor WRITE setTextColor)
    46     Q_PROPERTY(QColor textColor READ textColor WRITE setTextColor)
    47     Q_PROPERTY(HbIcon icon READ icon WRITE setIcon)
    47     Q_PROPERTY(HbIcon icon READ icon WRITE setIcon)
    48     Q_PROPERTY(Qt::AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode)
    48     Q_PROPERTY(Qt::AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode)
       
    49     Q_PROPERTY(int maximumLines READ maximumLines WRITE setMaximumLines)
    49 
    50 
    50 public:
    51 public:
    51 
    52 
    52     explicit HbLabel (QGraphicsItem *parent = 0);
    53     explicit HbLabel (QGraphicsItem *parent = 0);
    53     explicit HbLabel (const QString &displayText, QGraphicsItem *parent = 0);
    54     explicit HbLabel (const QString &displayText, QGraphicsItem *parent = 0);
    72     Qt::Alignment alignment() const;
    73     Qt::Alignment alignment() const;
    73 
    74 
    74     void setTextColor( const QColor &textColor );
    75     void setTextColor( const QColor &textColor );
    75     QColor textColor() const;
    76     QColor textColor() const;
    76 
    77 
       
    78     void setMaximumLines(int maxLines);
       
    79     int maximumLines() const;
       
    80 
    77     bool isEmpty() const;
    81     bool isEmpty() const;
    78 
    82 
    79     virtual QGraphicsItem *primitive(HbStyle::Primitive primitive) const;
    83     virtual QGraphicsItem *primitive(HbStyle::Primitive primitive) const;
    80 
    84 
    81     enum {Type = Hb::ItemType_Label};
    85     enum {Type = Hb::ItemType_Label};