equal
deleted
inserted
replaced
43 { |
43 { |
44 Q_OBJECT |
44 Q_OBJECT |
45 Q_PROPERTY(HbAbstractItemView::SelectionMode selectionMode READ selectionMode WRITE setSelectionMode) |
45 Q_PROPERTY(HbAbstractItemView::SelectionMode selectionMode READ selectionMode WRITE setSelectionMode) |
46 Q_PROPERTY(QStringList items READ stringItems WRITE setStringItems) |
46 Q_PROPERTY(QStringList items READ stringItems WRITE setStringItems) |
47 Q_PROPERTY(QList<QVariant> selectedItems READ selectedItems WRITE setSelectedItems) |
47 Q_PROPERTY(QList<QVariant> selectedItems READ selectedItems WRITE setSelectedItems) |
48 |
48 Q_PROPERTY(QString selectionTitle READ selectionTitle WRITE setSelectionTitle) |
49 public: |
49 public: |
50 enum { Type = Hb::ItemType_SelectionDialog }; |
50 enum { Type = Hb::ItemType_SelectionDialog }; |
51 int type() const { return Type; } |
51 int type() const { return Type; } |
52 |
52 |
53 explicit HbSelectionDialog(QGraphicsItem* parent=0); |
53 explicit HbSelectionDialog(QGraphicsItem* parent=0); |
68 QList<QVariant> selectedItems() const; |
68 QList<QVariant> selectedItems() const; |
69 void setSelectedItems(const QList<QVariant> items); |
69 void setSelectedItems(const QList<QVariant> items); |
70 |
70 |
71 QModelIndexList selectedModelIndexes() const; |
71 QModelIndexList selectedModelIndexes() const; |
72 |
72 |
|
73 QString selectionTitle() const; |
|
74 void setSelectionTitle(const QString& title); |
|
75 |
73 protected: |
76 protected: |
74 void showEvent(QShowEvent *event); |
77 void showEvent(QShowEvent *event); |
75 |
78 signals: |
|
79 void selectionChanged(); |
76 private: |
80 private: |
77 Q_DISABLE_COPY(HbSelectionDialog) |
81 Q_DISABLE_COPY(HbSelectionDialog) |
78 Q_DECLARE_PRIVATE_D(d_ptr, HbSelectionDialog) |
82 Q_DECLARE_PRIVATE_D(d_ptr, HbSelectionDialog) |
79 }; |
83 }; |
80 |
84 |