aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-01-17 21:39:54 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-01-17 21:39:54 +0000
commit7206143f863fa03a578efe7ecb95d1cfa4752824 (patch)
tree3d8a8a269e036c5132f97d7ed6207ccd960f298f /gpgwin.cpp
parentset focus to textedit on start (diff)
downloadgpg4usb-7206143f863fa03a578efe7ecb95d1cfa4752824.tar.gz
gpg4usb-7206143f863fa03a578efe7ecb95d1cfa4752824.zip
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
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r--gpgwin.cpp7
1 files changed, 3 insertions, 4 deletions
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