X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=code%2Ffamily-shop-mgr%2FFamilyShoppingManagerMainWindow.cpp;h=6e56f7fd6e5235356b00ca1bf0340b3cb301e4da;hb=21a8c5a8cc3dfabd4403a7293a21377f9268e05c;hp=393639bf5f9c01f896e75eccb57ca3d007f8e502;hpb=af6e773e8d38a499f5063f98e2751aabbaa0662f;p=family-shop-mgr diff --git a/code/family-shop-mgr/FamilyShoppingManagerMainWindow.cpp b/code/family-shop-mgr/FamilyShoppingManagerMainWindow.cpp index 393639b..6e56f7f 100644 --- a/code/family-shop-mgr/FamilyShoppingManagerMainWindow.cpp +++ b/code/family-shop-mgr/FamilyShoppingManagerMainWindow.cpp @@ -30,7 +30,7 @@ /*******************************************************************/ FamilyShoppingManagerMainWindow::FamilyShoppingManagerMainWindow(QWidget *parent) - : QMainWindow(parent), activityView(NULL), editMenu(NULL), + : QMainWindow(parent), activityView(NULL), //editMenu(NULL), showCheckedItemsAction(NULL), goShoppingAction(NULL), endShoppingAction(NULL) { aboutAction = new QAction(tr("&About"), this); @@ -59,11 +59,11 @@ void FamilyShoppingManagerMainWindow::showListManager() activityView = new ListManagerView("ShoppingList.xml", this); setCentralWidget(activityView); - editMenu = new QMenu(tr("&Edit"), this); +// editMenu = new QMenu(tr("&Edit"), this); addCategoryAction = new QAction(tr("Add category"), this); connect(addCategoryAction, SIGNAL(triggered()), this, SLOT(addCategory())); - editMenu->addAction(addCategoryAction); +// editMenu->addAction(addCategoryAction); // removeCategoryAction = new QAction(tr("Remove category"), this); // connect(removeCategoryAction, SIGNAL(triggered()), // this, SLOT(removeRow())); @@ -76,7 +76,7 @@ void FamilyShoppingManagerMainWindow::showListManager() // connect(removeItemAction, SIGNAL(triggered()), // this, SLOT(removeRow())); // editMenu->addAction(removeItemAction); - menuBar()->addMenu(editMenu); + menuBar()->addAction(addCategoryAction); goShoppingAction = new QAction(tr("Go shopping!"), this); connect(goShoppingAction, SIGNAL(triggered()), @@ -91,7 +91,7 @@ void FamilyShoppingManagerMainWindow::showListManager() void FamilyShoppingManagerMainWindow::showGoShopping() { menuBar()->clear(); - delete editMenu; +// delete editMenu; delete goShoppingAction; delete activityView;