src/hbwidgets/popups/hbselectiondialog_p.h
changeset 6 c3690ec91ef8
parent 1 f7ac710697a9
child 7 923ff622b8b9
--- a/src/hbwidgets/popups/hbselectiondialog_p.h	Fri Jun 11 13:58:22 2010 +0300
+++ b/src/hbwidgets/popups/hbselectiondialog_p.h	Wed Jun 23 18:33:25 2010 +0300
@@ -37,7 +37,7 @@
 
 class HbLabel;
 class HbListWidgetItem;
-class HbListWidget;
+class HbListView;
 class HbCheckBox;
 
 class HbSelectionDialogPrivate : public HbDialogPrivate
@@ -64,6 +64,7 @@
 	QAbstractItemModel* model() const;
     QItemSelectionModel* selectionModel() const;
     QModelIndexList selectedModelIndexes() const;
+	void clearItems(bool keepItems);
 public:
     bool bOwnItems;
 	HbAbstractItemView::SelectionMode mSelectionMode;
@@ -78,7 +79,10 @@
 	int selectedItemCount() const;
 	int totalItemCount() const;
 public:
-    HbListWidget* mListWidget;
+	void createListWidget();
+	void createListView();
+	void connectSlots();
+	HbListView* mListView;
     HbSelectionDialogPrivate* d;
     HbSelectionDialogContentWidget(HbSelectionDialogPrivate *priv);
     enum { Type = Hb::ItemType_SelectionDialogContentWidget };
@@ -91,6 +95,7 @@
 private:
     HbCheckBox* chkMark;
 	HbTextItem* lbCounter;
+	bool markWidgetShown;
 private slots:    
 	void _q_listWidgetItemSelected(HbListWidgetItem *item);
 	void _q_listItemSelected(QModelIndex index);