telutils/dialpad/inc/dialpadnumericbutton.h
changeset 52 d841fb1cc818
parent 50 2313cb430f28
equal deleted inserted replaced
50:2313cb430f28 52:d841fb1cc818
    23 
    23 
    24 class DialpadNumericButton : public HbInputButton
    24 class DialpadNumericButton : public HbInputButton
    25 {
    25 {
    26     Q_OBJECT
    26     Q_OBJECT
    27 
    27 
       
    28     // use label instead of text to override input button properties
       
    29     Q_PROPERTY(QString iconName READ iconName)
       
    30     Q_PROPERTY(QString primaryLabel READ primaryLabel WRITE setPrimaryLabel)
       
    31     Q_PROPERTY(QString secondaryLabel READ secondaryLabel WRITE setSecondaryLabel)
       
    32     Q_PROPERTY(QString secondaryLabelRow2 READ secondaryLabelRow2 WRITE setSecondaryLabelRow2)
       
    33 
    28 public:
    34 public:
    29     explicit DialpadNumericButton(int keyCode, const QPoint &position, const QSize &size = QSize(1, 1));
    35     explicit DialpadNumericButton(int keyCode, const QPoint &position, const QSize &size = QSize(1, 1));
    30     virtual ~DialpadNumericButton();
    36     virtual ~DialpadNumericButton();
    31 
    37 
    32     void setIcon(const HbIcon& icon);
    38     void setIcon(const HbIcon& icon);
    33     HbIcon& icon();
    39     HbIcon& icon();
       
    40     QString iconName() const;
    34 
    41 
    35     void setText(const QString& text);
    42     void setPrimaryLabel(const QString& value);
    36     QString text() const;
    43     QString primaryLabel() const;
    37 
    44 
    38     void setSecondaryText(const QString& text);
    45     void setSecondaryLabel(const QString& value);
    39     QString secondaryText() const;
    46     QString secondaryLabel() const;
    40 
    47 
    41     void setSecondary2ndRowText(const QString& text);
    48     void setSecondaryLabelRow2(const QString& value);
    42     QString secondary2ndRowText() const;
    49     QString secondaryLabelRow2() const;
    43 
    50 
    44 private:
    51 private:
    45     HbIcon mIcon;
    52     HbIcon mIcon;
    46     QString mText;
    53     QString mPrimaryLabel;
    47     QString mSecondaryText;
    54     QString mSecondaryLabel;
    48     QString mSecondaryTextRow2;
    55     QString mSecondaryLabelRow2;
    49 };
    56 };
    50 
    57 
    51 #endif // DIALPADNUMERICBUTTON_H
    58 #endif // DIALPADNUMERICBUTTON_H