--- a/src/hbcore/gui/hbdialog.h Tue Jul 06 14:36:53 2010 +0300
+++ b/src/hbcore/gui/hbdialog.h Wed Aug 18 10:05:37 2010 +0300
@@ -35,10 +35,11 @@
class HB_CORE_EXPORT HbDialog : public HbPopup
{
Q_OBJECT
+ Q_PROPERTY( bool dismissOnAction READ dismissOnAction WRITE setDismissOnAction )
public:
enum DialogCode { Rejected, Accepted };
-
+
explicit HbDialog( QGraphicsItem *parent = 0 );
virtual ~HbDialog();
@@ -48,6 +49,9 @@
QGraphicsWidget *contentWidget() const;
void setContentWidget( QGraphicsWidget *contentWidget );
+ bool dismissOnAction() const;
+ void setDismissOnAction(bool dismissOnAction);
+
HbAction *primaryAction() const;
void setPrimaryAction( HbAction *action );
@@ -56,7 +60,7 @@
void open( QObject* receiver, const char* member );
- enum { Type = Hb::ItemType_Dialog }; // TODO: Hb::ItemType_Dialog
+ enum { Type = Hb::ItemType_Dialog };
int type() const { return Type; }
public slots:
@@ -83,6 +87,8 @@
private:
Q_DECLARE_PRIVATE_D( d_ptr, HbDialog )
Q_DISABLE_COPY( HbDialog )
+ Q_PRIVATE_SLOT(d_func(), void _q_actionTriggered())
+
};
#endif // HBDIALOG_H