*/\r
\r
#include "GoShoppingView.h"\r
-#include "ui_GoShopping.h"\r
\r
#include "ShoppingTreeModel.h"\r
\r
GoShoppingView::GoShoppingView(QString xmlFileName, QWidget *parent)\r
- :QDialog(parent), ui(new Ui::GoShoppingView)\r
+ :QTreeView(parent)\r
{\r
- ui->setupUi(this);\r
ShoppingTreeModel *model = new ShoppingTreeModel(xmlFileName, this);\r
- ui->treeView->setModel(model);\r
+ this->setModel(model);\r
for(int column = 0; column < model->columnCount(); column++)\r
- ui->treeView->resizeColumnToContents(column);\r
+ this->resizeColumnToContents(column);\r
}\r
\r
GoShoppingView::~GoShoppingView()\r
{\r
- delete ui;\r
}\r