forked from blue/squawk
some more thoughts about settings widgets
This commit is contained in:
parent
841e526e59
commit
a8a7ce2538
12 changed files with 248 additions and 45 deletions
|
@ -6,9 +6,19 @@ Settings::Settings(QWidget* parent):
|
|||
m_ui(new Ui::Settings())
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
|
||||
connect(m_ui->list, &QListWidget::currentItemChanged, this, &Settings::onCurrentPageChanged);
|
||||
}
|
||||
|
||||
Settings::~Settings()
|
||||
{
|
||||
}
|
||||
|
||||
void Settings::onCurrentPageChanged(QListWidgetItem* current)
|
||||
{
|
||||
if (current != nullptr) {
|
||||
m_ui->header->setText(current->text());
|
||||
|
||||
m_ui->content->setCurrentIndex(m_ui->list->currentRow());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue