43 { |
44 { |
44 |
45 |
45 //Create a layout with a heading "Select theme" at top and the list below it. |
46 //Create a layout with a heading "Select theme" at top and the list below it. |
46 HbWidget* contentWidget = new HbWidget(this); |
47 HbWidget* contentWidget = new HbWidget(this); |
47 QGraphicsLinearLayout* layout = new QGraphicsLinearLayout(Qt::Vertical); |
48 QGraphicsLinearLayout* layout = new QGraphicsLinearLayout(Qt::Vertical); |
48 |
|
49 |
|
50 |
49 |
51 //setup the heading. |
50 //setup the heading. |
52 HbLabel* label = new HbLabel(hbTrId("txt_cp_title_select_theme"), contentWidget); |
51 HbLabel* label = new HbLabel(hbTrId("txt_cp_title_select_theme"), contentWidget);//txt_cp_title_select_theme |
53 label->setFontSpec(HbFontSpec(HbFontSpec::Primary)); |
|
54 layout->addItem(label); |
52 layout->addItem(label); |
55 |
53 |
56 connect(mThemeList, SIGNAL(activated(const QModelIndex&)), |
54 connect(mThemeList, SIGNAL(activated(const QModelIndex&)), |
57 this, SIGNAL(newThemeSelected(const QModelIndex&))); |
55 this, SIGNAL(newThemeSelected(const QModelIndex&))); |
58 |
56 |
|
57 HbListViewItem* listViewItem = mThemeList->listItemPrototype(); |
|
58 listViewItem->setGraphicsSize(HbListViewItem::LargeIcon); |
|
59 |
59 //add the list to layout. |
60 //add the list to layout. |
60 layout->addItem(mThemeList); |
61 layout->addItem(mThemeList); |
61 |
62 |
62 contentWidget->setLayout(layout); |
63 contentWidget->setLayout(layout); |
63 |
64 |