/*******************************************************************/
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);
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()));
// 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()),
void FamilyShoppingManagerMainWindow::showGoShopping()
{
menuBar()->clear();
- delete editMenu;
+// delete editMenu;
delete goShoppingAction;
delete activityView;