1/********************************************************************************
2** Form generated from reading UI file 'qsqlconnectiondialog.ui'
3**
4** Created by: Qt User Interface Compiler version 5.15.9
5**
6** WARNING! All changes made in this file will be lost when recompiling UI file!
7********************************************************************************/
8
9#ifndef UI_QSQLCONNECTIONDIALOG_H
10#define UI_QSQLCONNECTIONDIALOG_H
11
12#include <QtCore/QVariant>
13#include <QtWidgets/QApplication>
14#include <QtWidgets/QCheckBox>
15#include <QtWidgets/QComboBox>
16#include <QtWidgets/QDialog>
17#include <QtWidgets/QGridLayout>
18#include <QtWidgets/QGroupBox>
19#include <QtWidgets/QHBoxLayout>
20#include <QtWidgets/QLabel>
21#include <QtWidgets/QLineEdit>
22#include <QtWidgets/QPushButton>
23#include <QtWidgets/QSpacerItem>
24#include <QtWidgets/QSpinBox>
25#include <QtWidgets/QVBoxLayout>
26
27QT_BEGIN_NAMESPACE
28
29class Ui_QSqlConnectionDialogUi
30{
31public:
32 QVBoxLayout *vboxLayout;
33 QGroupBox *connGroupBox;
34 QGridLayout *gridLayout;
35 QComboBox *comboDriver;
36 QLabel *textLabel4;
37 QLabel *textLabel2;
38 QLineEdit *editDatabase;
39 QSpinBox *portSpinBox;
40 QLabel *textLabel3;
41 QLineEdit *editPassword;
42 QLineEdit *editUsername;
43 QLineEdit *editHostname;
44 QLabel *textLabel5;
45 QLabel *textLabel5_2;
46 QLabel *textLabel4_2;
47 QHBoxLayout *hboxLayout;
48 QSpacerItem *spacerItem;
49 QCheckBox *dbCheckBox;
50 QHBoxLayout *hboxLayout1;
51 QSpacerItem *spacerItem1;
52 QPushButton *okButton;
53 QPushButton *cancelButton;
54
55 void setupUi(QDialog *QSqlConnectionDialogUi)
56 {
57 if (QSqlConnectionDialogUi->objectName().isEmpty())
58 QSqlConnectionDialogUi->setObjectName(QString::fromUtf8(str: "QSqlConnectionDialogUi"));
59 QSqlConnectionDialogUi->resize(w: 315, h: 302);
60 vboxLayout = new QVBoxLayout(QSqlConnectionDialogUi);
61#ifndef Q_OS_MAC
62 vboxLayout->setSpacing(6);
63#endif
64 vboxLayout->setContentsMargins(left: 8, top: 8, right: 8, bottom: 8);
65 vboxLayout->setObjectName(QString::fromUtf8(str: "vboxLayout"));
66 connGroupBox = new QGroupBox(QSqlConnectionDialogUi);
67 connGroupBox->setObjectName(QString::fromUtf8(str: "connGroupBox"));
68 gridLayout = new QGridLayout(connGroupBox);
69#ifndef Q_OS_MAC
70 gridLayout->setSpacing(6);
71#endif
72 gridLayout->setContentsMargins(left: 8, top: 8, right: 8, bottom: 8);
73 gridLayout->setObjectName(QString::fromUtf8(str: "gridLayout"));
74 comboDriver = new QComboBox(connGroupBox);
75 comboDriver->setObjectName(QString::fromUtf8(str: "comboDriver"));
76
77 gridLayout->addWidget(comboDriver, row: 0, column: 1, rowSpan: 1, columnSpan: 1);
78
79 textLabel4 = new QLabel(connGroupBox);
80 textLabel4->setObjectName(QString::fromUtf8(str: "textLabel4"));
81
82 gridLayout->addWidget(textLabel4, row: 2, column: 0, rowSpan: 1, columnSpan: 1);
83
84 textLabel2 = new QLabel(connGroupBox);
85 textLabel2->setObjectName(QString::fromUtf8(str: "textLabel2"));
86
87 gridLayout->addWidget(textLabel2, row: 0, column: 0, rowSpan: 1, columnSpan: 1);
88
89 editDatabase = new QLineEdit(connGroupBox);
90 editDatabase->setObjectName(QString::fromUtf8(str: "editDatabase"));
91
92 gridLayout->addWidget(editDatabase, row: 1, column: 1, rowSpan: 1, columnSpan: 1);
93
94 portSpinBox = new QSpinBox(connGroupBox);
95 portSpinBox->setObjectName(QString::fromUtf8(str: "portSpinBox"));
96 portSpinBox->setMaximum(65535);
97 portSpinBox->setMinimum(-1);
98 portSpinBox->setValue(-1);
99
100 gridLayout->addWidget(portSpinBox, row: 5, column: 1, rowSpan: 1, columnSpan: 1);
101
102 textLabel3 = new QLabel(connGroupBox);
103 textLabel3->setObjectName(QString::fromUtf8(str: "textLabel3"));
104
105 gridLayout->addWidget(textLabel3, row: 1, column: 0, rowSpan: 1, columnSpan: 1);
106
107 editPassword = new QLineEdit(connGroupBox);
108 editPassword->setObjectName(QString::fromUtf8(str: "editPassword"));
109 editPassword->setEchoMode(QLineEdit::Password);
110
111 gridLayout->addWidget(editPassword, row: 3, column: 1, rowSpan: 1, columnSpan: 1);
112
113 editUsername = new QLineEdit(connGroupBox);
114 editUsername->setObjectName(QString::fromUtf8(str: "editUsername"));
115
116 gridLayout->addWidget(editUsername, row: 2, column: 1, rowSpan: 1, columnSpan: 1);
117
118 editHostname = new QLineEdit(connGroupBox);
119 editHostname->setObjectName(QString::fromUtf8(str: "editHostname"));
120
121 gridLayout->addWidget(editHostname, row: 4, column: 1, rowSpan: 1, columnSpan: 1);
122
123 textLabel5 = new QLabel(connGroupBox);
124 textLabel5->setObjectName(QString::fromUtf8(str: "textLabel5"));
125
126 gridLayout->addWidget(textLabel5, row: 4, column: 0, rowSpan: 1, columnSpan: 1);
127
128 textLabel5_2 = new QLabel(connGroupBox);
129 textLabel5_2->setObjectName(QString::fromUtf8(str: "textLabel5_2"));
130
131 gridLayout->addWidget(textLabel5_2, row: 5, column: 0, rowSpan: 1, columnSpan: 1);
132
133 textLabel4_2 = new QLabel(connGroupBox);
134 textLabel4_2->setObjectName(QString::fromUtf8(str: "textLabel4_2"));
135
136 gridLayout->addWidget(textLabel4_2, row: 3, column: 0, rowSpan: 1, columnSpan: 1);
137
138
139 vboxLayout->addWidget(connGroupBox);
140
141 hboxLayout = new QHBoxLayout();
142#ifndef Q_OS_MAC
143 hboxLayout->setSpacing(6);
144#endif
145 hboxLayout->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0);
146 hboxLayout->setObjectName(QString::fromUtf8(str: "hboxLayout"));
147 spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
148
149 hboxLayout->addItem(spacerItem);
150
151 dbCheckBox = new QCheckBox(QSqlConnectionDialogUi);
152 dbCheckBox->setObjectName(QString::fromUtf8(str: "dbCheckBox"));
153
154 hboxLayout->addWidget(dbCheckBox);
155
156
157 vboxLayout->addLayout(layout: hboxLayout);
158
159 hboxLayout1 = new QHBoxLayout();
160#ifndef Q_OS_MAC
161 hboxLayout1->setSpacing(6);
162#endif
163 hboxLayout1->setContentsMargins(left: 0, top: 0, right: 0, bottom: 0);
164 hboxLayout1->setObjectName(QString::fromUtf8(str: "hboxLayout1"));
165 spacerItem1 = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
166
167 hboxLayout1->addItem(spacerItem1);
168
169 okButton = new QPushButton(QSqlConnectionDialogUi);
170 okButton->setObjectName(QString::fromUtf8(str: "okButton"));
171
172 hboxLayout1->addWidget(okButton);
173
174 cancelButton = new QPushButton(QSqlConnectionDialogUi);
175 cancelButton->setObjectName(QString::fromUtf8(str: "cancelButton"));
176
177 hboxLayout1->addWidget(cancelButton);
178
179
180 vboxLayout->addLayout(layout: hboxLayout1);
181
182#if QT_CONFIG(shortcut)
183 textLabel4->setBuddy(editUsername);
184 textLabel2->setBuddy(comboDriver);
185 textLabel3->setBuddy(editDatabase);
186 textLabel5->setBuddy(editHostname);
187 textLabel5_2->setBuddy(portSpinBox);
188 textLabel4_2->setBuddy(editPassword);
189#endif // QT_CONFIG(shortcut)
190 QWidget::setTabOrder(comboDriver, editDatabase);
191 QWidget::setTabOrder(editDatabase, editUsername);
192 QWidget::setTabOrder(editUsername, editPassword);
193 QWidget::setTabOrder(editPassword, editHostname);
194 QWidget::setTabOrder(editHostname, portSpinBox);
195 QWidget::setTabOrder(portSpinBox, dbCheckBox);
196 QWidget::setTabOrder(dbCheckBox, okButton);
197 QWidget::setTabOrder(okButton, cancelButton);
198
199 retranslateUi(QSqlConnectionDialogUi);
200
201 okButton->setDefault(true);
202
203
204 QMetaObject::connectSlotsByName(o: QSqlConnectionDialogUi);
205 } // setupUi
206
207 void retranslateUi(QDialog *QSqlConnectionDialogUi)
208 {
209 QSqlConnectionDialogUi->setWindowTitle(QCoreApplication::translate(context: "QSqlConnectionDialogUi", key: "Connect...", disambiguation: nullptr));
210 connGroupBox->setTitle(QCoreApplication::translate(context: "QSqlConnectionDialogUi", key: "Connection settings", disambiguation: nullptr));
211 textLabel4->setText(QCoreApplication::translate(context: "QSqlConnectionDialogUi", key: "&Username:", disambiguation: nullptr));
212 textLabel2->setText(QCoreApplication::translate(context: "QSqlConnectionDialogUi", key: "D&river", disambiguation: nullptr));
213 portSpinBox->setSpecialValueText(QCoreApplication::translate(context: "QSqlConnectionDialogUi", key: "Default", disambiguation: nullptr));
214 textLabel3->setText(QCoreApplication::translate(context: "QSqlConnectionDialogUi", key: "Database Name:", disambiguation: nullptr));
215 textLabel5->setText(QCoreApplication::translate(context: "QSqlConnectionDialogUi", key: "&Hostname:", disambiguation: nullptr));
216 textLabel5_2->setText(QCoreApplication::translate(context: "QSqlConnectionDialogUi", key: "P&ort:", disambiguation: nullptr));
217 textLabel4_2->setText(QCoreApplication::translate(context: "QSqlConnectionDialogUi", key: "&Password:", disambiguation: nullptr));
218 dbCheckBox->setText(QCoreApplication::translate(context: "QSqlConnectionDialogUi", key: "Us&e predefined in-memory database", disambiguation: nullptr));
219 okButton->setText(QCoreApplication::translate(context: "QSqlConnectionDialogUi", key: "&OK", disambiguation: nullptr));
220 cancelButton->setText(QCoreApplication::translate(context: "QSqlConnectionDialogUi", key: "&Cancel", disambiguation: nullptr));
221 } // retranslateUi
222
223};
224
225namespace Ui {
226 class QSqlConnectionDialogUi: public Ui_QSqlConnectionDialogUi {};
227} // namespace Ui
228
229QT_END_NAMESPACE
230
231#endif // UI_QSQLCONNECTIONDIALOG_H
232

source code of qtbase/examples/sql/sqlbrowser/.uic/ui_qsqlconnectiondialog.h