Added File Menu entry Save as Draft for MessageComposer.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2995 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-05-25 10:41:26 +00:00
parent b0c1467abe
commit 097caf6e98
2 changed files with 12 additions and 1 deletions

View File

@ -605,6 +605,10 @@ void MessageComposer::setupFileActions()
a = new QAction(tr("Save &As..."), this);
connect(a, SIGNAL(triggered()), this, SLOT(fileSaveAs()));
menu->addAction(a);
a = new QAction(tr("Save &As Draft"), this);
connect(a, SIGNAL(triggered()), this, SLOT(saveasDraft()));
menu->addAction(a);
menu->addSeparator();
a = new QAction(QIcon(":/images/textedit/fileprint.png"), tr("&Print..."), this);
@ -892,6 +896,12 @@ bool MessageComposer::fileSaveAs()
return fileSave();
}
void MessageComposer::saveasDraft()
{
sendMessage_internal(true);
}
void MessageComposer::filePrint()
{
#ifndef QT_NO_PRINTER

View File

@ -84,7 +84,8 @@ private slots:
void fileOpen();
bool fileSave();
bool fileSaveAs();
void filePrint();
void filePrint();
void saveasDraft();
//void filePrintPreview();
void filePrintPdf();