equal
deleted
inserted
replaced
119 void SettingsTree::refresh() |
119 void SettingsTree::refresh() |
120 { |
120 { |
121 if (!settings) |
121 if (!settings) |
122 return; |
122 return; |
123 |
123 |
124 disconnect(this, SIGNAL(itemChanged(QTreeWidgetItem *, int)), |
124 disconnect(this, SIGNAL(itemChanged(QTreeWidgetItem*,int)), |
125 this, SLOT(updateSetting(QTreeWidgetItem *))); |
125 this, SLOT(updateSetting(QTreeWidgetItem*))); |
126 |
126 |
127 settings->sync(); |
127 settings->sync(); |
128 updateChildItems(0); |
128 updateChildItems(0); |
129 |
129 |
130 connect(this, SIGNAL(itemChanged(QTreeWidgetItem *, int)), |
130 connect(this, SIGNAL(itemChanged(QTreeWidgetItem*,int)), |
131 this, SLOT(updateSetting(QTreeWidgetItem *))); |
131 this, SLOT(updateSetting(QTreeWidgetItem*))); |
132 } |
132 } |
133 |
133 |
134 bool SettingsTree::event(QEvent *event) |
134 bool SettingsTree::event(QEvent *event) |
135 { |
135 { |
136 if (event->type() == QEvent::WindowActivate) { |
136 if (event->type() == QEvent::WindowActivate) { |