X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=code%2Ffamily-shop-mgr%2FGoShoppingView.cpp;h=0421948a3643b8a5f1370c70fbc059ff94ba2251;hb=6b123284a767b5488c96d3db7690c9e9f7d5d044;hp=5304afac8737c007eee8e569c8476331889ab7c1;hpb=3932e368f35b670d8d2b427aa582afe166807d33;p=family-shop-mgr diff --git a/code/family-shop-mgr/GoShoppingView.cpp b/code/family-shop-mgr/GoShoppingView.cpp index 5304afa..0421948 100644 --- a/code/family-shop-mgr/GoShoppingView.cpp +++ b/code/family-shop-mgr/GoShoppingView.cpp @@ -20,21 +20,18 @@ */ #include "GoShoppingView.h" -#include "ui_GoShopping.h" #include "ShoppingTreeModel.h" GoShoppingView::GoShoppingView(QString xmlFileName, QWidget *parent) - :QDialog(parent), ui(new Ui::GoShoppingView) + :QTreeView(parent) { - ui->setupUi(this); ShoppingTreeModel *model = new ShoppingTreeModel(xmlFileName, this); - ui->treeView->setModel(model); + this->setModel(model); for(int column = 0; column < model->columnCount(); column++) - ui->treeView->resizeColumnToContents(column); + this->resizeColumnToContents(column); } GoShoppingView::~GoShoppingView() { - delete ui; }