-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathselectiondialog.cpp
More file actions
36 lines (28 loc) · 921 Bytes
/
selectiondialog.cpp
File metadata and controls
36 lines (28 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// Created by pengx on 2026/2/6.
//
// You may need to build the project (run Qt uic code generator) to get "ui_SelectionDialog.h" resolved
#include "selectiondialog.hpp"
#include "ui_selectiondialog.h"
SelectionDialog::SelectionDialog(QWidget* parent) : QDialog(parent), ui(new Ui::SelectionDialog) {
ui->setupUi(this);
connect(ui->exitButton, &QPushButton::clicked, this, &SelectionDialog::onExitClicked);
connect(ui->enterButton, &QPushButton::clicked, this, &SelectionDialog::onEnterClicked);
}
void SelectionDialog::onExitClicked() {
close();
}
void SelectionDialog::onEnterClicked() {
if (ui->radioButton->isChecked()) {
_selectedType = Integrated;
} else {
_selectedType = Separated;
}
accept();
}
SelectionDialog::InterfaceType SelectionDialog::getSelectedType() const {
return _selectedType;
}
SelectionDialog::~SelectionDialog() {
delete ui;
}