-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdialog.cpp
More file actions
42 lines (35 loc) · 720 Bytes
/
dialog.cpp
File metadata and controls
42 lines (35 loc) · 720 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
37
38
39
40
41
42
#include "dialog.h"
#include "ui_dialog.h"
Dialog::Dialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog)
{
ui->setupUi(this);
dbtype="QMYSQL";
}
Dialog::~Dialog()
{
delete ui;
}
void Dialog::on_pushButton_clicked()
{
host=ui->lineEdit->text();
dbname=ui->lineEdit_2->text();
uname=ui->lineEdit_3->text();
passwd=ui->lineEdit_4->text();
tabname=ui->lineEdit_5->text();
this->close();
}
void Dialog::on_pushButton_2_clicked()
{
this->close();
}
void Dialog::on_comboBox_activated(const QString &arg1)
{
if(arg1=="MySQL")
dbtype="QMYSQL";
else if(arg1=="Microsoft SQL Server (ODBC)")
dbtype="QODBC";
else
dbtype="QMYSQL";
}