comparison src/gui/dialog/settings.cpp @ 62:4c6dd5999b39

*: update 1. updated animia 2. use widestrings for filesystem on Windows
author Paper <mrpapersonic@gmail.com>
date Sun, 01 Oct 2023 06:16:06 -0400
parents d0adc4aedfc8
children fe719c109dbc
comparison
equal deleted inserted replaced
61:327568ad9be9 62:4c6dd5999b39
35 35
36 tab_widget = new QTabWidget(this); 36 tab_widget = new QTabWidget(this);
37 tab_widget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); 37 tab_widget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
38 38
39 QVBoxLayout* layout = new QVBoxLayout; 39 QVBoxLayout* layout = new QVBoxLayout;
40 layout->setMargin(0); 40 layout->setContentsMargins(0, 0, 0, 0);
41 layout->addWidget(page_title); 41 layout->addWidget(page_title);
42 layout->addWidget(tab_widget); 42 layout->addWidget(tab_widget);
43 setLayout(layout); 43 setLayout(layout);
44 } 44 }
45 45
99 connect(sidebar, &QListWidget::currentRowChanged, stacked, &QStackedWidget::setCurrentIndex); 99 connect(sidebar, &QListWidget::currentRowChanged, stacked, &QStackedWidget::setCurrentIndex);
100 100
101 layout = new QHBoxLayout; 101 layout = new QHBoxLayout;
102 layout->addWidget(sidebar); 102 layout->addWidget(sidebar);
103 layout->addWidget(stacked); 103 layout->addWidget(stacked);
104 layout->setMargin(0); 104 layout->setContentsMargins(0, 0, 0, 0);
105 widget->setLayout(layout); 105 widget->setLayout(layout);
106 106
107 QDialogButtonBox* button_box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this); 107 QDialogButtonBox* button_box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
108 connect(button_box, &QDialogButtonBox::accepted, this, &SettingsDialog::OnOK); 108 connect(button_box, &QDialogButtonBox::accepted, this, &SettingsDialog::OnOK);
109 connect(button_box, &QDialogButtonBox::rejected, this, &QDialog::reject); 109 connect(button_box, &QDialogButtonBox::rejected, this, &QDialog::reject);