15 #include <QDialogButtonBox>
17 #include <QFormLayout>
21 #include <QTextOption>
22 #include <QVBoxLayout>
23 #include "../../util/btconnect.h"
24 #include "../../util/cresmgr.h"
25 #include "../messagedialog.h"
30 const QString &description,
32 Qt::WindowFlags wflags)
35 QVBoxLayout *mainLayout =
new QVBoxLayout(
this);
38 setWindowIcon(CResMgr::mainIndex::bookmark::icon());
57 m_buttonBox =
new QDialogButtonBox(QDialogButtonBox::Cancel
58 | QDialogButtonBox::NoButton
59 | QDialogButtonBox::Ok,
66 this, &BtEditBookmarkDialog::accept);
68 this, &BtEditBookmarkDialog::reject);
76 setWindowTitle(tr(
"Edit Bookmark"));
QTextEdit * m_descriptionEdit
QDialogButtonBox * m_buttonBox
BtEditBookmarkDialog(const QString &key, const QString &title, const QString &description, QWidget *parent=nullptr, Qt::WindowFlags wflags=Qt::Dialog)
QLabel * m_descriptionLabel
void prepareDialogBox(QDialogButtonBox *box)