mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 14:12:43 -04:00
Added methods to set title, notes and link on PostedCreatePostDialog from outside
This commit is contained in:
parent
63390fddee
commit
bcb4e52768
2 changed files with 19 additions and 0 deletions
|
@ -330,3 +330,18 @@ void PostedCreatePostDialog::reject()
|
||||||
|
|
||||||
QDialog::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);
|
explicit PostedCreatePostDialog(RsPosted* posted, const RsGxsGroupId& grpId, const RsGxsId& default_author=RsGxsId(),QWidget *parent = 0);
|
||||||
~PostedCreatePostDialog();
|
~PostedCreatePostDialog();
|
||||||
|
|
||||||
|
void setTitle(const QString& title);
|
||||||
|
void setNotes(const QString& notes);
|
||||||
|
void setLink(const QString& link);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString imagefilename;
|
QString imagefilename;
|
||||||
QByteArray imagebytes;
|
QByteArray imagebytes;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue