mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-18 20:34:26 -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);
|
a = new QAction(tr("Save &As..."), this);
|
||||||
connect(a, SIGNAL(triggered()), this, SLOT(fileSaveAs()));
|
connect(a, SIGNAL(triggered()), this, SLOT(fileSaveAs()));
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
|
||||||
|
a = new QAction(tr("Save &As Draft"), this);
|
||||||
|
connect(a, SIGNAL(triggered()), this, SLOT(saveasDraft()));
|
||||||
|
menu->addAction(a);
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
|
|
||||||
a = new QAction(QIcon(":/images/textedit/fileprint.png"), tr("&Print..."), this);
|
a = new QAction(QIcon(":/images/textedit/fileprint.png"), tr("&Print..."), this);
|
||||||
@ -892,6 +896,12 @@ bool MessageComposer::fileSaveAs()
|
|||||||
return fileSave();
|
return fileSave();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MessageComposer::saveasDraft()
|
||||||
|
{
|
||||||
|
sendMessage_internal(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void MessageComposer::filePrint()
|
void MessageComposer::filePrint()
|
||||||
{
|
{
|
||||||
#ifndef QT_NO_PRINTER
|
#ifndef QT_NO_PRINTER
|
||||||
|
@ -85,6 +85,7 @@ private slots:
|
|||||||
bool fileSave();
|
bool fileSave();
|
||||||
bool fileSaveAs();
|
bool fileSaveAs();
|
||||||
void filePrint();
|
void filePrint();
|
||||||
|
void saveasDraft();
|
||||||
|
|
||||||
//void filePrintPreview();
|
//void filePrintPreview();
|
||||||
void filePrintPdf();
|
void filePrintPdf();
|
||||||
|
Loading…
Reference in New Issue
Block a user