BibleTime
|
#include <btconfigdialog.h>
Classes | |
class | Page |
Signals | |
void | signalSettingsChanged () |
Public Member Functions | |
void | addPage (Page *const pageWidget) |
Adds the page to this dialog, taking ownership. More... | |
BtConfigDialog (QWidget *const parent=nullptr, Qt::WindowFlags const flags=Qt::WindowFlags()) | |
void | save () |
Private Attributes | |
QListWidget *const | m_contentsList |
int | m_maxItemWidth = 0 |
QStackedWidget *const | m_pageWidget |
Base class for configuration dialogs. A dialog which has a page chooser (icons
Usage: add BtConfigPage pages with addPage(), add a button box with addButtonBox(). Connect the button box signals. Use setAttribute(Qt::WA_DeleteOnClose) if you want an auto-destroying window.
Definition at line 36 of file btconfigdialog.h.
BtConfigDialog::BtConfigDialog | ( | QWidget *const | parent = nullptr , |
Qt::WindowFlags const | flags = Qt::WindowFlags() |
||
) |
Definition at line 65 of file btconfigdialog.cpp.
References BT_CONNECT, m_contentsList, m_pageWidget, message::prepareDialogBox(), and anonymous_namespace{btconfigdialog.cpp}::resizeListWidget().
void BtConfigDialog::addPage | ( | Page *const | pageWidget | ) |
Adds the page to this dialog, taking ownership.
[in] | page | pointer to the page to add. |
Definition at line 116 of file btconfigdialog.cpp.
References m_contentsList, BtConfigDialog::Page::m_listWidgetItem, BtConfigDialog::Page::m_ownsListWidgetItem, m_pageWidget, and anonymous_namespace{btconfigdialog.cpp}::resizeListWidget().
Referenced by CConfigurationDialog::CConfigurationDialog().
void BtConfigDialog::save | ( | ) |
Definition at line 127 of file btconfigdialog.cpp.
References BT_ASSERT, m_pageWidget, and signalSettingsChanged().
Referenced by BibleTime::saveConfigSettings().
|
signal |
Referenced by save(), and BibleTime::slotSettingsOptions().
|
private |
Definition at line 82 of file btconfigdialog.h.
Referenced by addPage(), and BtConfigDialog().
|
private |
Definition at line 84 of file btconfigdialog.h.
|
private |
Definition at line 83 of file btconfigdialog.h.
Referenced by addPage(), BtConfigDialog(), and save().