Added methods to set title, notes and link on PostedCreatePostDialog from outside

This commit is contained in:
thunder2 2023-04-16 22:43:40 +02:00
parent 63390fddee
commit bcb4e52768
2 changed files with 19 additions and 0 deletions

View File

@ -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);
}

View File

@ -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;