examples/tools/settingseditor/settingstree.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   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) {