equal
deleted
inserted
replaced
76 */ |
76 */ |
77 void LocalisedHelloWidget::onInitialize() |
77 void LocalisedHelloWidget::onInitialize() |
78 { |
78 { |
79 // localisation can be used now |
79 // localisation can be used now |
80 mText = hbTrId("txt_localisedhellowidgetplugin_button_hello_world2"); |
80 mText = hbTrId("txt_localisedhellowidgetplugin_button_hello_world2"); |
81 QString testing = hbTrId("txt_localisedhellowidgetplugin_button_hello_world2"); |
|
82 testing = hbTrId("txt_localisedhellowidgetplugin_button_hello_world1"); |
|
83 testing = hbTrId("txt_localisedhellowidgetplugin_dblist_hello_world_title"); |
|
84 testing = hbTrId("txt_localisedhellowidgetplugin_dblist_hello_world_desc"); |
|
85 mButton->setText(hbTrId("txt_localisedhellowidgetplugin_button_hello_world1")); |
81 mButton->setText(hbTrId("txt_localisedhellowidgetplugin_button_hello_world1")); |
86 // roothPath is set thus we can use it |
82 // roothPath is set thus we can use it |
87 QString iconPath = QDir::toNativeSeparators(mRootPath + "/localisedhellowidgetplugin.png"); |
83 QString iconPath = QDir::toNativeSeparators(mRootPath + "/localisedhellowidgetplugin.png"); |
88 mIcon = new HbIconItem(iconPath); |
84 mIcon = new HbIconItem(iconPath); |
89 static_cast<QGraphicsLinearLayout*>(layout())->addItem(mIcon); |
85 static_cast<QGraphicsLinearLayout*>(layout())->addItem(mIcon); |