-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path废弃代码片段.txt
168 lines (141 loc) · 5.44 KB
/
废弃代码片段.txt
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/*for(int j=0;j<99;j++)
{
x0=j*beam1->leng/100.0;
y0=-beam1->bending(x0);
x1=(j+1)*beam1->leng/100.0;
y1=-beam1->bending(x1);
painter.drawLine((QPoint((5.0*j+200+50),(ratio*5000.0*y0*beam1->leng/100.0+100))),
(QPoint((5.0*(j+1)+200+50),(ratio*5000.0*y1*beam1->leng/100.0+100))));
}*/
double x0,y0,x1,y1;
/*for(int j=0;j<100;j++)
{
x0=j*beam1->leng/100.0;
y0=-beam1->bending(x0);
x1=(j+1)*beam1->leng/100.0;
y1=-beam1->bending(x1);
painter.drawLine((QPoint((5.0*j+200+50),(ratio*5000.0*y0*beam1->leng/100.0+100))),
(QPoint((5.0*(j+1)+200+50),(ratio*5000.0*y1*beam1->leng/100.0+100))));
}*/
QComboBox {
min-width: 6em;
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, /*三个坐标对应的是上。中。下的background的颜色*/
stop: 0 #122C39, stop: 0.5 #758385,
stop: 1.0 #15A8FF);
border-color: #11505C; /*改变boder的颜色,以便实现动态感觉*/
border-style: outset;
border-width: 5px; /*boder的长度,有突出效果*/
border-radius: 1px;
padding: 1px;
background-image=url(:/icon/dark/appbar.arrow.down.png);
}
QComboBox::hover{
border-color:#5D8B9E;
}
QComboBox:editable {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #080B10,
stop: 1.0 #212C3F);
}
QComboBox:!editable, QComboBox::drop-down:editable {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #080B10,
stop: 1.0 #212C3F);
}
/* QComboBox gets the "on" state when the popup is open */
QComboBox:!editable:on, QComboBox::drop-down:editable:on {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #080B10,
stop: 1.0 #212C3F);;
}
QComboBox:on { /* shift the text when the popup opens */
padding-top: 3px;
padding-left: 4px;
}
QComboBox::drop-down {
subcontrol-origin: padding;
subcontrol-position: top right;
width: 15px;
border-left-width: 1px;
border-left-color: 32435E;
border-left-style: solid; /* just a single line */
border-top-right-radius: 3px; /* same radius as the QComboBox */
border-bottom-right-radius: 3px;
}
QComboBox::down-arrow {
image: url(:/icon/dark/appbar.arrow.down.png);
}
QComboBox::down-arrow:on { /* shift the arrow when popup is open */
top: 1px;
left: 1px;
}
QComboBox QAbstractItemView {
border: 2px solid #32435E;
selection-background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #506B79,
stop: 1.0 #0D95A6);
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #1B2534, stop: 0.4 #010101,
stop: 0.5 #000101, stop: 1.0 #1F2B3C);
}
------------------------------------------
QComboBox {
min-width: 6em;
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, /*三个坐标对应的是上。中。下的background的颜色*/
stop: 0 #122C39, stop: 0.5 #758385,
stop: 1.0 #15A8FF);
border-color: #11505C; /*改变boder的颜色,以便实现动态感觉*/
border-style: outset;
border-width: 3px; /*boder的长度,有突出效果*/
border-radius: 1px;
padding: 1px;
}
QComboBox::hover{
border-color:#5D8B9E;
}
QComboBox:editable {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #080B10,
stop: 1.0 #212C3F);
}
QComboBox:!editable, QComboBox::drop-down:editable {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #080B10,
stop: 1.0 #212C3F);
}
/* QComboBox gets the "on" state when the popup is open */
QComboBox:!editable:on, QComboBox::drop-down:editable:on {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #080B10,
stop: 1.0 #212C3F);;
}
QComboBox:on { /* shift the text when the popup opens */
padding-top: 3px;
padding-left: 4px;
}
QComboBox::drop-down {
subcontrol-origin: padding;
subcontrol-position: top right;
width: 15px;
border-left-width: 1px;
border-left-color: 32435E;
border-left-style: solid; /* just a single line */
border-top-right-radius: 3px; /* same radius as the QComboBox */
border-bottom-right-radius: 3px;
}
QComboBox::down-arrow {
image: url(:/icon/light/appbar.arrow.down.png);
}
QComboBox::down-arrow:on { /* shift the arrow when popup is open */
top: 6px;
left: 6px;
}
QComboBox QAbstractItemView {
border: 2px solid #32435E;
selection-background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #506B79,
stop: 1.0 #0D95A6);
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #1B2534, stop: 0.4 #010101,
stop: 0.5 #000101, stop: 1.0 #1F2B3C);
}