equal
deleted
inserted
replaced
45 parent) |
45 parent) |
46 { |
46 { |
47 //Create a CpThemeControl. the themeControl takes care of displaying the themes |
47 //Create a CpThemeControl. the themeControl takes care of displaying the themes |
48 //and letting user select a theme and apply a theme change. |
48 //and letting user select a theme and apply a theme change. |
49 mThemeControl = new CpThemeControl(); |
49 mThemeControl = new CpThemeControl(); |
50 |
50 |
51 setEntryItemIcon(mThemeControl->currentThemeIcon()); |
|
52 setDescription(mThemeControl->currentThemeName()); |
51 setDescription(mThemeControl->currentThemeName()); |
53 |
52 |
54 //connect to signal to update the current theme name and icon whenever the theme changes. |
53 //connect to signal to update the current theme name and icon whenever the theme changes. |
55 QObject::connect(mThemeControl, SIGNAL(themeUpdated(const QString&, const HbIcon&)), this, |
54 QObject::connect(mThemeControl, SIGNAL(themeUpdated(const QString&, const HbIcon&)), this, |
56 SLOT(themeUpdated(const QString&, const HbIcon&))); |
55 SLOT(themeUpdated(const QString&, const HbIcon&))); |
69 Slot used for updating entry item's description and icon with current theme name and its |
68 Slot used for updating entry item's description and icon with current theme name and its |
70 preview icon. |
69 preview icon. |
71 */ |
70 */ |
72 void CpThemePluginEntryItemData::themeUpdated(const QString& themeName, const HbIcon& icon) |
71 void CpThemePluginEntryItemData::themeUpdated(const QString& themeName, const HbIcon& icon) |
73 { |
72 { |
74 setEntryItemIcon(icon); |
73 Q_UNUSED(icon); |
75 setDescription(themeName); |
74 setDescription(themeName); |
76 } |
75 } |
77 |
76 |
78 /*! |
77 /*! |
79 Return the theme changer UI view. Returns 0 if it can't create |
78 Return the theme changer UI view. Returns 0 if it can't create |