From 7206143f863fa03a578efe7ecb95d1cfa4752824 Mon Sep 17 00:00:00 2001 From: nils Date: Mon, 17 Jan 2011 21:39:54 +0000 Subject: added quitdialog with checklist for documents to save, but there has to be some handling for the saving git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@439 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- gpgwin.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gpgwin.cpp') diff --git a/gpgwin.cpp b/gpgwin.cpp index 7a6e496..905d902 100644 --- a/gpgwin.cpp +++ b/gpgwin.cpp @@ -36,7 +36,7 @@ GpgWin::GpgWin() setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea); setCorner(Qt::BottomRightCorner, Qt::RightDockWidgetArea); - edit = new TextEdit(); + edit = new TextEdit(iconPath); setCentralWidget(edit); /* the list of Keys available*/ @@ -298,12 +298,12 @@ void GpgWin::createActions() switchTabUpAct = new QAction(this); switchTabUpAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Tab)); connect(switchTabUpAct, SIGNAL(triggered()), edit, SLOT(switchTabUp())); - this->addAction(switchTabUpAct); + //this->addAction(switchTabUpAct); switchTabDownAct = new QAction(this); switchTabDownAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Shift+ Qt::Key_Tab)); connect(switchTabDownAct, SIGNAL(triggered()), edit, SLOT(switchTabDown())); - this->addAction(switchTabDownAct); + //this->addAction(switchTabDownAct); } void GpgWin::createMenus() @@ -424,7 +424,6 @@ void GpgWin::createDockWindows() void GpgWin::closeEvent(QCloseEvent *event) { - /** * ask to save changes, if there are * modified documents in any tab -- cgit v1.2.3