29 pages_list -> setViewMode(QListView::IconMode);
35 pages_list -> setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
44 QHBoxLayout *hlayout1 =
new QHBoxLayout();
48 QVBoxLayout *vlayout1 =
new QVBoxLayout();
49 vlayout1 -> addLayout(hlayout1);
55 connect(
buttons, SIGNAL(rejected()),
this, SLOT(reject()));
60 setWindowFlags(Qt::Sheet);
83 QListWidgetItem *new_button =
new QListWidgetItem(
pages_list);
84 new_button -> setIcon(page -> icon());
85 new_button -> setText(page -> title());
86 new_button -> setTextAlignment(Qt::AlignHCenter);
87 new_button -> setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
104 if (!page ||
pages.contains(page))
return;
void setCurrentPage(const int index)
ConfigDialog::setCurrentPage Set the current index to .
QStackedWidget * pages_widget
ConfigDialog(QWidget *=nullptr)
QDialogButtonBox * buttons
void addPage(ConfigPage *)
~ConfigDialog() override
Destructeur.
QList< ConfigPage * > pages
void addPageToList(ConfigPage *)