##// END OF EJS Templates
Creates settings dialog and adds it to a new menu in MainWindow...
Creates settings dialog and adds it to a new menu in MainWindow The dialog will contain a set of widgets saved as a list (one entry per widget). By selecting an entry in the list, the corresponding widget will be displayed

File last commit:

r463:6a4aa86600f2
r463:6a4aa86600f2
Show More
SqpSettingsDialog.cpp
17 lines | 496 B | text/x-c | CppLexer
/ gui / src / Settings / SqpSettingsDialog.cpp
Alexandre Leroux
Creates settings dialog and adds it to a new menu in MainWindow...
r463 #include "Settings/SqpSettingsDialog.h"
#include "ui_SqpSettingsDialog.h"
SqpSettingsDialog::SqpSettingsDialog(QWidget *parent)
: QDialog{parent}, ui{new Ui::SqpSettingsDialog}
{
ui->setupUi(this);
// Connection to change the current page to the selection of an entry in the list
connect(ui->listWidget, &QListWidget::currentRowChanged, ui->stackedWidget,
&QStackedWidget::setCurrentIndex);
}
SqpSettingsDialog::~SqpSettingsDialog() noexcept
{
delete ui;
}