src/hbcore/gui/hbmenu.h
changeset 2 06ff229162e9
parent 1 f7ac710697a9
child 5 627c4a0fd0e7
equal deleted inserted replaced
1:f7ac710697a9 2:06ff229162e9
    49         ContextMenu = 0,
    49         ContextMenu = 0,
    50         OptionsMenu,
    50         OptionsMenu,
    51         SubMenu
    51         SubMenu
    52     };
    52     };
    53 
    53 
    54     HbAction *exec(const QPointF &pos, HbAction *action = 0);
       
    55 
       
    56     using HbPopup::addAction;
    54     using HbPopup::addAction;
    57     HbAction *addAction(const QString &text);
    55     HbAction *addAction(const QString &text);
    58     HbAction *addAction(const QString &text, const QObject *receiver, const char *member);
    56     HbAction *addAction(const QString &text, const QObject *receiver, const char *member);
    59 
    57 
    60     HbAction *addMenu(HbMenu *menu);       
    58     HbAction *addMenu(HbMenu *menu);       
    78     enum { Type = Hb::ItemType_Menu };
    76     enum { Type = Hb::ItemType_Menu };
    79     int type() const { return Type; }
    77     int type() const { return Type; }
    80     QPainterPath shape() const;
    78     QPainterPath shape() const;
    81 
    79 
    82 public slots:
    80 public slots:
    83     HbAction *exec(HbAction *action = 0);
       
    84     void open(QObject *receiver = 0, const char *member = 0);
    81     void open(QObject *receiver = 0, const char *member = 0);
    85 
    82 
    86 signals:
    83 signals:
    87     void triggered(HbAction *action);
    84     void triggered(HbAction *action);
    88 
    85