15 #include <QDialogButtonBox>
17 #include <QVBoxLayout>
18 #include "../backend/drivers/cswordmoduleinfo.h"
19 #include "../util/btconnect.h"
29 QVBoxLayout *mainLayout =
new QVBoxLayout;
37 auto * const dialog = new BTAboutModuleDialog(module, this);
38 dialog->setAttribute(Qt::WA_DeleteOnClose);
44 m_buttonBox =
new QDialogButtonBox(QDialogButtonBox::Cancel | QDialogButtonBox::Ok,
45 Qt::Horizontal,
this);
47 this, &BtModuleChooserDialog::accept);
49 this, &BtModuleChooserDialog::reject);
52 setLayout(mainLayout);
void moduleActivated(CSwordModuleInfo *item)
BtModuleChooserDialog(QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
QDialogButtonBox * m_buttonBox
BtBookshelfWidget * m_bookshelfWidget
void prepareDialogBox(QDialogButtonBox *box)