mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 06:59:27 -05:00
Added methods to set title, notes and link on PostedCreatePostDialog from outside
This commit is contained in:
parent
63390fddee
commit
bcb4e52768
@ -330,3 +330,18 @@ void PostedCreatePostDialog::reject()
|
||||
|
||||
QDialog::reject();
|
||||
}
|
||||
|
||||
void PostedCreatePostDialog::setTitle(const QString& title)
|
||||
{
|
||||
ui->titleEdit->setText(title);
|
||||
}
|
||||
|
||||
void PostedCreatePostDialog::setNotes(const QString& notes)
|
||||
{
|
||||
ui->RichTextEditWidget->setText(notes);
|
||||
}
|
||||
|
||||
void PostedCreatePostDialog::setLink(const QString& link)
|
||||
{
|
||||
ui->linkEdit->setText(link);
|
||||
}
|
||||
|
@ -41,6 +41,10 @@ public:
|
||||
explicit PostedCreatePostDialog(RsPosted* posted, const RsGxsGroupId& grpId, const RsGxsId& default_author=RsGxsId(),QWidget *parent = 0);
|
||||
~PostedCreatePostDialog();
|
||||
|
||||
void setTitle(const QString& title);
|
||||
void setNotes(const QString& notes);
|
||||
void setLink(const QString& link);
|
||||
|
||||
private:
|
||||
QString imagefilename;
|
||||
QByteArray imagebytes;
|
||||
|
Loading…
Reference in New Issue
Block a user