src/hbinput/inputwidgets/hbinputsmileypicker.cpp
changeset 21 4633027730f5
parent 7 923ff622b8b9
child 23 e6ad4ef83b23
equal deleted inserted replaced
7:923ff622b8b9 21:4633027730f5
    64 HbInputSmileyPickerPrivate::HbInputSmileyPickerPrivate(int rows, int columns)
    64 HbInputSmileyPickerPrivate::HbInputSmileyPickerPrivate(int rows, int columns)
    65     : mView(0), mModel(0)
    65     : mView(0), mModel(0)
    66 {
    66 {
    67     Q_UNUSED(rows);
    67     Q_UNUSED(rows);
    68     Q_UNUSED(columns);
    68     Q_UNUSED(columns);
    69     Q_Q(HbInputSmileyPicker);
       
    70     // we should make sure that it comes above vkb
    69     // we should make sure that it comes above vkb
    71     setPriority(HbPopupPrivate::VirtualKeyboard + 1);
    70     setPriority(HbPopupPrivate::VirtualKeyboard + 1);
    72 
    71 
    73     // create a view and set the rows and columns.
    72     // create a view and set the rows and columns.
    74     mView = new HbGridView(q);
    73     mView = new HbGridView();
    75     mView->setScrollDirections(Qt::Horizontal);
    74     mView->setScrollDirections(Qt::Horizontal);
    76     mView->setHorizontalScrollBarPolicy(HbScrollArea::ScrollBarAsNeeded);
    75     mView->setHorizontalScrollBarPolicy(HbScrollArea::ScrollBarAsNeeded);
    77     mModel = new QStandardItemModel(q);
    76     mModel = new QStandardItemModel(mView);
    78     mView->setModel(mModel);
    77     mView->setModel(mModel);
    79 }
    78 }
    80 
    79 
    81 HbInputSmileyPickerPrivate::~HbInputSmileyPickerPrivate()
    80 HbInputSmileyPickerPrivate::~HbInputSmileyPickerPrivate()
    82 {
    81 {