mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-18 12:24:22 -05:00
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:
parent
b0c1467abe
commit
097caf6e98
@ -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
|
||||
|
@ -84,7 +84,8 @@ private slots:
|
||||
void fileOpen();
|
||||
bool fileSave();
|
||||
bool fileSaveAs();
|
||||
void filePrint();
|
||||
void filePrint();
|
||||
void saveasDraft();
|
||||
|
||||
//void filePrintPreview();
|
||||
void filePrintPdf();
|
||||
|
Loading…
Reference in New Issue
Block a user