Diffstat (limited to 'noncore/apps/checkbook/qcheckbook.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/qcheckbook.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/apps/checkbook/qcheckbook.cpp b/noncore/apps/checkbook/qcheckbook.cpp index bb7a5ac..26caad9 100644 --- a/noncore/apps/checkbook/qcheckbook.cpp +++ b/noncore/apps/checkbook/qcheckbook.cpp @@ -88,12 +88,17 @@ void QCheckBook::newCheck(const QString &filename) config.setGroup("Global"); config.writeEntry("LastCheckBook", filename); initMM = false; } } +void QCheckBook::deleteCheck(const QString &filename) +{ + qDebug("Deleting "+filename); +} + void QCheckBook::close() { QApplication::exit(); } void QCheckBook::newGraph() @@ -133,12 +138,13 @@ void QCheckBook::initMainMenus() QPixmap newIcon = Resource::loadPixmap( "new" ); nb1 = new QToolButton( newIcon, "New", QString::null, m_view3, SLOT(newClicked()), bar, "new book" ); popup = new QPopupMenu(); popup->insertItem("&New", m_view3, SLOT(newClicked())); + popup->insertItem("&Delete", m_view3, SLOT(deleteClicked())); popup->insertItem("&Exit", this, SLOT(close())); mbar->insertItem("&File", popup); setCentralWidget(m_view3); m_view3->show(); |