From 0b84b5f31fd6be36c2c13598cde0d7c4d44ab5fe Mon Sep 17 00:00:00 2001 From: nils Date: Mon, 27 Sep 2010 19:25:31 +0000 Subject: more error handling for encryption in context.cpp git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@378 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- gpgwin.cpp | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'gpgwin.cpp') diff --git a/gpgwin.cpp b/gpgwin.cpp index 53d5d1e..d9d740d 100644 --- a/gpgwin.cpp +++ b/gpgwin.cpp @@ -324,7 +324,31 @@ void GpgWin::createToolBars() void GpgWin::createStatusBar() { - statusBar()->showMessage(tr("Ready")); + QWidget *langBox = new QWidget(); + QHBoxLayout *vbox2 = new QHBoxLayout(); + + langBox->setLayout(vbox2); + +// langBox->addMenuAction(appendSelectedKeysAct); + + + statusBar()->showMessage(tr("Ready"),2000); + statusBar()->setContentsMargins(0,0,0,0); + QLabel *label; + QPixmap *pixmap; + QMenu *menu; + pixmap = new QPixmap(iconPath + "statusbar_txt3.png"); + label = new QLabel(statusBar()); + label->setPixmap(*pixmap); + langBox->setLayout(vbox2); + menu = new QMenu(label); + QMenu *filemenu; + filemenu= menu->addMenu(tr("&File")); + label->setStatusTip("Es liegen Dateien im Attachments-Ordner"); + label->setWhatsThis("Attachment vorhanden"); + + statusBar()->insertPermanentWidget(0,label,0); + statusBar()->setFixedHeight(30); } void GpgWin::createDockWindows() @@ -346,8 +370,6 @@ void GpgWin::createDockWindows() // hide till attachmendt is decrypted viewMenu->addAction(aDock->toggleViewAction()); aDock->hide(); - - } void GpgWin::closeEvent(QCloseEvent *event) -- cgit v1.2.3