From 4f8e5d10eee559dc06c0a7027575881390fcf742 Mon Sep 17 00:00:00 2001 From: David Greaves Date: Sat, 14 Mar 2009 12:07:51 +0000 Subject: [PATCH] Removed notify Removed unused function --- src/ui/CategoryDialog.cc | 2 -- src/ui/mainwindow.cc | 17 ----------------- src/ui/mainwindow.h | 1 - 3 files changed, 20 deletions(-) diff --git a/src/ui/CategoryDialog.cc b/src/ui/CategoryDialog.cc index 197304c..feea919 100644 --- a/src/ui/CategoryDialog.cc +++ b/src/ui/CategoryDialog.cc @@ -23,7 +23,6 @@ #include "shopperList.h" #include "LabelEntry.h" -#include "notify.h" #include #include @@ -285,7 +284,6 @@ namespace Shopper { DEBUG("Delete Category"); if (p->mylist->is_category_active(*p->mycat)) { - notify->showMessage("Shopper: Info", "Can't delete current category"); return; } diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index cabdc3e..3bde98c 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -26,12 +26,8 @@ #include "CategoryDialog.h" #include "ItemDialog.h" #include "PreferencesDialog.h" -#include "notify.h" #include -// Global variable -Shopper::Notify *notify; - // class MainWindow : public QMainWindow MainWindow::MainWindow(QString file) : mylist(0), @@ -204,11 +200,7 @@ MainWindow::MainWindow(QString file) : // Status statusBar()->showMessage(tr("Ready")); - // Notify is a SystemTrayIcon used for notify messages - // Note this is a globally accessible object - nothing to do with MainWin except we parent it QIcon shopper_icon("/usr/share/icons/hicolor/64x64/apps/shopper/shopper.png"); - notify=new Shopper::Notify(shopper_icon); - notify->show(); setWindowIcon(shopper_icon); // Prepare our Settings @@ -238,7 +230,6 @@ void MainWindow::loadList() { Shopper::List *l; if (mylist == 0) { -// notify->showMessage("Shopper", "Loading shopping list"); l = Shopper::List::from_file(filename); if (l) { // If filename valid create_list_view(l); @@ -396,7 +387,6 @@ void MainWindow::on_action_file_new() "" "" ))); - notify->showMessage("Shopper", "Created a sample shopping list"); } void MainWindow::on_action_file_open() { @@ -462,13 +452,6 @@ void MainWindow::on_action_file_quit() close(); //Closes the main window to quit } -bool MainWindow::on_signal_window_closed() -{ - _ENTER; - on_action_file_quit(); - return true; // propagate signal so hide() happens -} - void MainWindow::keyPressEvent ( QKeyEvent * event ) { switch (event->key()) diff --git a/src/ui/mainwindow.h b/src/ui/mainwindow.h index f0fb825..6fa5f9f 100644 --- a/src/ui/mainwindow.h +++ b/src/ui/mainwindow.h @@ -104,7 +104,6 @@ protected slots: //Signal handlers: void keyPressEvent ( QKeyEvent * event ); - bool on_signal_window_closed(); void on_action_rotate(); void closeEvent(QCloseEvent *event); -- 2.11.4.GIT