Changeset View
Changeset View
Standalone View
Standalone View
languages/clang/clangsettings/sessionsettings/sessionsettings.cpp
Show All 17 Lines | |||||
18 | * | 18 | * | ||
19 | * You should have received a copy of the GNU General Public License | 19 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 20 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
21 | * | 21 | * | ||
22 | */ | 22 | */ | ||
23 | 23 | | |||
24 | #include "sessionsettings.h" | 24 | #include "sessionsettings.h" | ||
25 | 25 | | |||
26 | #include <QVBoxLayout> | | |||
27 | | ||||
28 | #include "sessionconfig.h" | 26 | #include "sessionconfig.h" | ||
29 | #include "ui_sessionsettings.h" | 27 | #include "ui_sessionsettings.h" | ||
30 | 28 | | |||
31 | SessionSettings::SessionSettings(QWidget* parent) | 29 | SessionSettings::SessionSettings(QWidget* parent) | ||
32 | : ConfigPage(nullptr, SessionConfig::self(), parent) | 30 | : ConfigPage(nullptr, SessionConfig::self(), parent) | ||
33 | , m_settings(new Ui::SessionSettings) | 31 | , m_settings(new Ui::SessionSettings) | ||
34 | { | 32 | { | ||
35 | auto l = new QVBoxLayout(this); | 33 | m_settings->setupUi(this); | ||
36 | auto w = new QWidget(this); | | |||
37 | | ||||
38 | m_settings->setupUi(w); | | |||
39 | | ||||
40 | l->addWidget(w); | | |||
41 | } | 34 | } | ||
42 | 35 | | |||
43 | void SessionSettings::reset() | 36 | void SessionSettings::reset() | ||
44 | { | 37 | { | ||
45 | ConfigPage::reset(); | 38 | ConfigPage::reset(); | ||
46 | 39 | | |||
47 | Q_ASSERT(ICore::self()->activeSession()); | 40 | Q_ASSERT(ICore::self()->activeSession()); | ||
48 | } | 41 | } | ||
Show All 28 Lines |