src/hbinput/inputwidgets/hbinputsmileypicker.cpp
changeset 21 4633027730f5
parent 7 923ff622b8b9
child 23 e6ad4ef83b23
--- a/src/hbinput/inputwidgets/hbinputsmileypicker.cpp	Tue Jul 06 14:36:53 2010 +0300
+++ b/src/hbinput/inputwidgets/hbinputsmileypicker.cpp	Wed Aug 18 10:05:37 2010 +0300
@@ -66,15 +66,14 @@
 {
     Q_UNUSED(rows);
     Q_UNUSED(columns);
-    Q_Q(HbInputSmileyPicker);
     // we should make sure that it comes above vkb
     setPriority(HbPopupPrivate::VirtualKeyboard + 1);
 
     // create a view and set the rows and columns.
-    mView = new HbGridView(q);
+    mView = new HbGridView();
     mView->setScrollDirections(Qt::Horizontal);
     mView->setHorizontalScrollBarPolicy(HbScrollArea::ScrollBarAsNeeded);
-    mModel = new QStandardItemModel(q);
+    mModel = new QStandardItemModel(mView);
     mView->setModel(mModel);
 }