Skip to content

Commit

Permalink
基本功能完成
Browse files Browse the repository at this point in the history
  • Loading branch information
HuaGouFdog committed Aug 28, 2020
1 parent 23e301b commit 925ba99
Show file tree
Hide file tree
Showing 13 changed files with 3,708 additions and 186 deletions.
Binary file modified debug/FdpgQtStyleSheet1.exe
Binary file not shown.
Binary file modified debug/FdpgQtStyleSheet1.ilk
Binary file not shown.
Binary file modified debug/FdpgQtStyleSheet1.pdb
Binary file not shown.
Binary file modified debug/FdpgQtStyleSheet1.vc.pdb
Binary file not shown.
Binary file modified debug/main.obj
Binary file not shown.
Binary file modified debug/mainwindow.obj
Binary file not shown.
160 changes: 85 additions & 75 deletions debug/moc_mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_MainWindow_t {
QByteArrayData data[72];
char stringdata0[2103];
QByteArrayData data[74];
char stringdata0[2157];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
Expand Down Expand Up @@ -102,7 +102,9 @@ QT_MOC_LITERAL(67, 1970, 26), // "on_spinBox_18_valueChanged"
QT_MOC_LITERAL(68, 1997, 26), // "on_spinBox_17_valueChanged"
QT_MOC_LITERAL(69, 2024, 26), // "on_spinBox_19_valueChanged"
QT_MOC_LITERAL(70, 2051, 25), // "on_radioButton_11_clicked"
QT_MOC_LITERAL(71, 2077, 25) // "on_radioButton_12_clicked"
QT_MOC_LITERAL(71, 2077, 25), // "on_radioButton_12_clicked"
QT_MOC_LITERAL(72, 2103, 26), // "on_spinBox_21_valueChanged"
QT_MOC_LITERAL(73, 2130, 26) // "on_spinBox_22_valueChanged"

},
"MainWindow\0on_horizontalSlider_valueChanged\0"
Expand Down Expand Up @@ -170,7 +172,9 @@ QT_MOC_LITERAL(71, 2077, 25) // "on_radioButton_12_clicked"
"on_spinBox_17_valueChanged\0"
"on_spinBox_19_valueChanged\0"
"on_radioButton_11_clicked\0"
"on_radioButton_12_clicked"
"on_radioButton_12_clicked\0"
"on_spinBox_21_valueChanged\0"
"on_spinBox_22_valueChanged"
};
#undef QT_MOC_LITERAL

Expand All @@ -180,80 +184,82 @@ static const uint qt_meta_data_MainWindow[] = {
7, // revision
0, // classname
0, 0, // classinfo
66, 14, // methods
68, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount

// slots: name, argc, parameters, tag, flags
1, 1, 344, 2, 0x08 /* Private */,
4, 1, 347, 2, 0x08 /* Private */,
5, 1, 350, 2, 0x08 /* Private */,
6, 1, 353, 2, 0x08 /* Private */,
7, 1, 356, 2, 0x08 /* Private */,
8, 1, 359, 2, 0x08 /* Private */,
9, 1, 362, 2, 0x08 /* Private */,
10, 1, 365, 2, 0x08 /* Private */,
11, 1, 368, 2, 0x08 /* Private */,
12, 1, 371, 2, 0x08 /* Private */,
13, 1, 374, 2, 0x08 /* Private */,
14, 1, 377, 2, 0x08 /* Private */,
15, 1, 380, 2, 0x08 /* Private */,
17, 1, 383, 2, 0x08 /* Private */,
19, 1, 386, 2, 0x08 /* Private */,
20, 1, 389, 2, 0x08 /* Private */,
21, 1, 392, 2, 0x08 /* Private */,
22, 1, 395, 2, 0x08 /* Private */,
24, 1, 398, 2, 0x08 /* Private */,
25, 1, 401, 2, 0x08 /* Private */,
26, 1, 404, 2, 0x08 /* Private */,
27, 1, 407, 2, 0x08 /* Private */,
28, 1, 410, 2, 0x08 /* Private */,
29, 1, 413, 2, 0x08 /* Private */,
30, 1, 416, 2, 0x08 /* Private */,
31, 1, 419, 2, 0x08 /* Private */,
32, 1, 422, 2, 0x08 /* Private */,
33, 1, 425, 2, 0x08 /* Private */,
34, 1, 428, 2, 0x08 /* Private */,
35, 1, 431, 2, 0x08 /* Private */,
36, 1, 434, 2, 0x08 /* Private */,
37, 1, 437, 2, 0x08 /* Private */,
38, 1, 440, 2, 0x08 /* Private */,
39, 1, 443, 2, 0x08 /* Private */,
40, 1, 446, 2, 0x08 /* Private */,
41, 1, 449, 2, 0x08 /* Private */,
42, 1, 452, 2, 0x08 /* Private */,
43, 1, 455, 2, 0x08 /* Private */,
44, 1, 458, 2, 0x08 /* Private */,
45, 1, 461, 2, 0x08 /* Private */,
46, 1, 464, 2, 0x08 /* Private */,
47, 1, 467, 2, 0x08 /* Private */,
48, 1, 470, 2, 0x08 /* Private */,
49, 1, 473, 2, 0x08 /* Private */,
50, 1, 476, 2, 0x08 /* Private */,
51, 0, 479, 2, 0x08 /* Private */,
52, 0, 480, 2, 0x08 /* Private */,
53, 0, 481, 2, 0x08 /* Private */,
54, 0, 482, 2, 0x08 /* Private */,
55, 0, 483, 2, 0x08 /* Private */,
56, 0, 484, 2, 0x08 /* Private */,
57, 0, 485, 2, 0x08 /* Private */,
58, 0, 486, 2, 0x08 /* Private */,
59, 1, 487, 2, 0x08 /* Private */,
60, 1, 490, 2, 0x08 /* Private */,
61, 1, 493, 2, 0x08 /* Private */,
62, 1, 496, 2, 0x08 /* Private */,
63, 1, 499, 2, 0x08 /* Private */,
64, 1, 502, 2, 0x08 /* Private */,
65, 1, 505, 2, 0x08 /* Private */,
66, 0, 508, 2, 0x08 /* Private */,
67, 1, 509, 2, 0x08 /* Private */,
68, 1, 512, 2, 0x08 /* Private */,
69, 1, 515, 2, 0x08 /* Private */,
70, 0, 518, 2, 0x08 /* Private */,
71, 0, 519, 2, 0x08 /* Private */,
1, 1, 354, 2, 0x08 /* Private */,
4, 1, 357, 2, 0x08 /* Private */,
5, 1, 360, 2, 0x08 /* Private */,
6, 1, 363, 2, 0x08 /* Private */,
7, 1, 366, 2, 0x08 /* Private */,
8, 1, 369, 2, 0x08 /* Private */,
9, 1, 372, 2, 0x08 /* Private */,
10, 1, 375, 2, 0x08 /* Private */,
11, 1, 378, 2, 0x08 /* Private */,
12, 1, 381, 2, 0x08 /* Private */,
13, 1, 384, 2, 0x08 /* Private */,
14, 1, 387, 2, 0x08 /* Private */,
15, 1, 390, 2, 0x08 /* Private */,
17, 1, 393, 2, 0x08 /* Private */,
19, 1, 396, 2, 0x08 /* Private */,
20, 1, 399, 2, 0x08 /* Private */,
21, 1, 402, 2, 0x08 /* Private */,
22, 1, 405, 2, 0x08 /* Private */,
24, 1, 408, 2, 0x08 /* Private */,
25, 1, 411, 2, 0x08 /* Private */,
26, 1, 414, 2, 0x08 /* Private */,
27, 1, 417, 2, 0x08 /* Private */,
28, 1, 420, 2, 0x08 /* Private */,
29, 1, 423, 2, 0x08 /* Private */,
30, 1, 426, 2, 0x08 /* Private */,
31, 1, 429, 2, 0x08 /* Private */,
32, 1, 432, 2, 0x08 /* Private */,
33, 1, 435, 2, 0x08 /* Private */,
34, 1, 438, 2, 0x08 /* Private */,
35, 1, 441, 2, 0x08 /* Private */,
36, 1, 444, 2, 0x08 /* Private */,
37, 1, 447, 2, 0x08 /* Private */,
38, 1, 450, 2, 0x08 /* Private */,
39, 1, 453, 2, 0x08 /* Private */,
40, 1, 456, 2, 0x08 /* Private */,
41, 1, 459, 2, 0x08 /* Private */,
42, 1, 462, 2, 0x08 /* Private */,
43, 1, 465, 2, 0x08 /* Private */,
44, 1, 468, 2, 0x08 /* Private */,
45, 1, 471, 2, 0x08 /* Private */,
46, 1, 474, 2, 0x08 /* Private */,
47, 1, 477, 2, 0x08 /* Private */,
48, 1, 480, 2, 0x08 /* Private */,
49, 1, 483, 2, 0x08 /* Private */,
50, 1, 486, 2, 0x08 /* Private */,
51, 0, 489, 2, 0x08 /* Private */,
52, 0, 490, 2, 0x08 /* Private */,
53, 0, 491, 2, 0x08 /* Private */,
54, 0, 492, 2, 0x08 /* Private */,
55, 0, 493, 2, 0x08 /* Private */,
56, 0, 494, 2, 0x08 /* Private */,
57, 0, 495, 2, 0x08 /* Private */,
58, 0, 496, 2, 0x08 /* Private */,
59, 1, 497, 2, 0x08 /* Private */,
60, 1, 500, 2, 0x08 /* Private */,
61, 1, 503, 2, 0x08 /* Private */,
62, 1, 506, 2, 0x08 /* Private */,
63, 1, 509, 2, 0x08 /* Private */,
64, 1, 512, 2, 0x08 /* Private */,
65, 1, 515, 2, 0x08 /* Private */,
66, 0, 518, 2, 0x08 /* Private */,
67, 1, 519, 2, 0x08 /* Private */,
68, 1, 522, 2, 0x08 /* Private */,
69, 1, 525, 2, 0x08 /* Private */,
70, 0, 528, 2, 0x08 /* Private */,
71, 0, 529, 2, 0x08 /* Private */,
72, 1, 530, 2, 0x08 /* Private */,
73, 1, 533, 2, 0x08 /* Private */,

// slots: parameters
QMetaType::Void, QMetaType::Int, 3,
Expand Down Expand Up @@ -322,6 +328,8 @@ static const uint qt_meta_data_MainWindow[] = {
QMetaType::Void, QMetaType::Int, 18,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::Int, 18,
QMetaType::Void, QMetaType::Int, 18,

0 // eod
};
Expand Down Expand Up @@ -398,6 +406,8 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
case 63: _t->on_spinBox_19_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 64: _t->on_radioButton_11_clicked(); break;
case 65: _t->on_radioButton_12_clicked(); break;
case 66: _t->on_spinBox_21_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 67: _t->on_spinBox_22_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
default: ;
}
}
Expand Down Expand Up @@ -428,13 +438,13 @@ int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 66)
if (_id < 68)
qt_static_metacall(this, _c, _id, _a);
_id -= 66;
_id -= 68;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 66)
if (_id < 68)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 66;
_id -= 68;
}
return _id;
}
Expand Down
Binary file modified debug/moc_mainwindow.obj
Binary file not shown.
24 changes: 22 additions & 2 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ void MainWindow::Labelshow()
QString str_24 = QString("height:%1px;").arg(ui->spinBox_18->value());
QString str_25 = QString("width:%1px;").arg(ui->spinBox_17->value());
QString str_26 = QString("width:%1px;").arg(ui->spinBox_18->value());
QString str_27 = QString("spacing:%1px;").arg(ui->spinBox_21->value());
QString str_28 = QString("width:%1px;height:%2px;").arg(ui->spinBox_22->value()).arg(ui->spinBox_22->value());
// QCheckBox
// {
// spacing:5px;
// }
// QCheckBox::indicator
// {

// }
//int control = ui->comboBox_7->currentIndex();
QString s;
switch (control)
Expand Down Expand Up @@ -143,12 +153,12 @@ void MainWindow::Labelshow()
case 8:
break;
case 9:
s = str_1+str_2+str_3+str_4+str_5+str_6+str_7+str_21+str_22+str_23;
s = "QCheckBox{"+str_1+str_2+str_3+str_4+str_5+str_6+str_7+str_21+str_22+str_23+str_27+"}"+"QCheckBox::indicator{"+str_28+str_11+str_12+"}";
ui->checkBox->setStyleSheet(s);
ui->textEdit->setText(s);
break;
case 10:
s = str_1+str_2+str_3+str_4+str_5+str_6+str_7+str_21+str_22+str_23;
s = "QRadioButton{"+str_1+str_2+str_3+str_4+str_5+str_6+str_7+str_21+str_22+str_23+str_27+"}"+"QRadioButton::indicator{"+str_28+str_11+str_12+"}";
ui->radioButton->setStyleSheet(s);
ui->textEdit->setText(s);
break;
Expand Down Expand Up @@ -553,3 +563,13 @@ void MainWindow::on_radioButton_12_clicked()
ui->stackedWidget->setCurrentIndex(10);
control = 10;
}

void MainWindow::on_spinBox_21_valueChanged(int arg1)
{
Labelshow();
}

void MainWindow::on_spinBox_22_valueChanged(int arg1)
{
Labelshow();
}
4 changes: 4 additions & 0 deletions mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ private slots:

void on_radioButton_12_clicked();

void on_spinBox_21_valueChanged(int arg1);

void on_spinBox_22_valueChanged(int arg1);

private:
Ui::MainWindow *ui;
};
Expand Down
Loading

0 comments on commit 925ba99

Please sign in to comment.