~ubuntu-branches/ubuntu/utopic/psi/utopic

« back to all changes in this revision

Viewing changes to src/tools/optionstree/optionstreeviewtest/optionstreeviewtest.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
public:
15
15
        MyHeaderViewWidget(QWidget* parent = 0) : QWidget(parent) {
16
 
                o_.loadOptions("../options.xml","OptionsTest","0.1");
 
16
                o_.loadOptions("../options.xml","OptionsTest", "", "0.1");
17
17
                tm_ = new OptionsTreeModel(&o_);
18
18
                
19
19
                QVBoxLayout* layout = new QVBoxLayout(this);
28
28
                connect(cb_,SIGNAL(toggled(bool)),tm_,SLOT(setFlat(bool)));
29
29
                layout->addWidget(cb_);
30
30
        }
31
 
 
 
31
        ~MyHeaderViewWidget() {
 
32
                o_.saveOptions("../options.xml","OptionsTest", "", "0.1");
 
33
        }
32
34
private:
33
35
        OptionsTree o_;
34
36
        QTreeView* tv_;