View Single Post
Posts: 31 | Thanked: 12 times | Joined on Jan 2012
#17
If you have never coded anything in your life, it can be tricky to know how to uncomment lines.


A comment line begins by //
But you can comment several line of codes using /* then */ or something like that.


Example : models/AppSettingsModel.qml: 3 lines, line 23/165/180

Line 23 :

traffic: true

Line 166 :
trafficOn = get('traffic');

Line 180 :
trafficOn = get('allowConnections') && get('mapSensor') && get('traffic') && device.online;



Example 2 : views/settings/settingsPage.qml: line 72, un-comment the whole ButtomItem {}.


/** TODO: uncomment when management makes up their minds
ButtonItem {
id: traffic
itemId: "traffic"
title: qsTrId("qtn_drive_traffic_settings_item")
subtitle: trafficSettingsSubtitle();
iconUrl: "../../resources/traffic/list_item/traffic_on.png"
}
*/

HAS TO BECOME :

ButtonItem {
id: traffic
itemId: "traffic"
title: qsTrId("qtn_drive_traffic_settings_item")
subtitle: trafficSettingsSubtitle();
iconUrl: "../../resources/traffic/list_item/traffic_on.png"
}
 

The Following 6 Users Say Thank You to aShtk For This Useful Post: