• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版d039bc7f6fc5f0193659f3769dd0862e493dcea7 (tree)
时间2014-04-11 12:48:56
作者jakago <jakago777@gmai...>
Commiterjakago

Log Message

GUI変更中

更改概述

差异

--- a/default.qss
+++ b/default.qss
@@ -1,6 +1,23 @@
11 QWidget {
2- background-color: #698aab;
3- color: #e7e7eb;
2+ background-color: gainsboro;
3+ /*background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6f7fa, stop: 1 #dadbde);*/
4+ /*color: #e7e7eb;*/
5+}
6+
7+QMenuBar {
8+ background-color: gainsboro;
9+}
10+
11+QMenuBar::item {
12+ background: transparent;
13+}
14+
15+QMenuBar::item:selected {
16+ background: #a8a8a8;
17+}
18+
19+QMenuBar::item:pressed {
20+ background: #888888;
421 }
522
623 /*
@@ -9,25 +26,34 @@ QPlainTextEdit {
926 }
1027 */
1128
12-/* We provide a min-width and min-height for push buttons
13- so that they look elegant regardless of the width of the text. */
14-/*QPushButton {
15- background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6f7fa, stop: 1 #dadbde);
16- border: 1px solid #8f8f91;
17- border-radius: 6px;
29+QPushButton {
30+ /*background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6f7fa, stop: 1 #dadbde);*/
31+ background-color: gainsboro;
32+ border-top: 1px solid white;
33+ border-left: 1px solid white;
34+ border-right: 2px solid dimgray;
35+ border-bottom: 2px solid dimgray;
36+ border-radius: 10px;
37+ /*
1838 padding: 3px;
1939 min-width: 9ex;
2040 min-height: 2.5ex;
21-}*/
41+ */
42+}
2243
23-/*QPushButton:hover {
44+/*
45+QPushButton:hover {
2446 background-color: steelblue;
25-}*/
47+}
48+*/
2649
27-/* Increase the padding, so the text is shifted when the button is
28- pressed. */
29-/*QPushButton:pressed {
50+QPushButton:pressed {
51+ border-top: 2px solid dimgray;
52+ border-left: 2px solid dimgray;
53+ border-right: 1px solid white;
54+ border-bottom: 1px solid white;
55+ /*
3056 padding-left: 5px;
3157 padding-top: 5px;
32- background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa);
33-}*/
58+ */
59+}
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -6,8 +6,8 @@
66 <rect>
77 <x>0</x>
88 <y>0</y>
9- <width>541</width>
10- <height>453</height>
9+ <width>500</width>
10+ <height>420</height>
1111 </rect>
1212 </property>
1313 <property name="sizePolicy">
@@ -18,16 +18,21 @@
1818 </property>
1919 <property name="minimumSize">
2020 <size>
21- <width>541</width>
22- <height>453</height>
21+ <width>500</width>
22+ <height>420</height>
2323 </size>
2424 </property>
2525 <property name="maximumSize">
2626 <size>
27- <width>541</width>
28- <height>453</height>
27+ <width>500</width>
28+ <height>420</height>
2929 </size>
3030 </property>
31+ <property name="font">
32+ <font>
33+ <pointsize>11</pointsize>
34+ </font>
35+ </property>
3136 <property name="windowTitle">
3237 <string>語学講座ダウンローダ</string>
3338 </property>
@@ -41,10 +46,10 @@
4146 <widget class="QWidget" name="gridLayoutWidget_3">
4247 <property name="geometry">
4348 <rect>
44- <x>9</x>
45- <y>9</y>
46- <width>521</width>
47- <height>401</height>
49+ <x>10</x>
50+ <y>10</y>
51+ <width>481</width>
52+ <height>361</height>
4853 </rect>
4954 </property>
5055 <layout class="QGridLayout" name="gridLayout_3" rowstretch="0,0,0,0,0,0,0,0,0,0,0,0,0,0">
@@ -60,7 +65,7 @@
6065 </property>
6166 <property name="font">
6267 <font>
63- <pointsize>12</pointsize>
68+ <pointsize>11</pointsize>
6469 </font>
6570 </property>
6671 <property name="text">
@@ -85,7 +90,7 @@
8590 </property>
8691 <property name="font">
8792 <font>
88- <pointsize>12</pointsize>
93+ <pointsize>11</pointsize>
8994 </font>
9095 </property>
9196 <property name="text">
@@ -110,7 +115,7 @@
110115 </property>
111116 <property name="font">
112117 <font>
113- <pointsize>12</pointsize>
118+ <pointsize>11</pointsize>
114119 </font>
115120 </property>
116121 <property name="text">
@@ -145,7 +150,7 @@
145150 </property>
146151 <property name="font">
147152 <font>
148- <pointsize>12</pointsize>
153+ <pointsize>11</pointsize>
149154 </font>
150155 </property>
151156 <property name="text">
@@ -170,7 +175,7 @@
170175 </property>
171176 <property name="font">
172177 <font>
173- <pointsize>12</pointsize>
178+ <pointsize>11</pointsize>
174179 </font>
175180 </property>
176181 <property name="text">
@@ -198,7 +203,7 @@
198203 </property>
199204 <property name="font">
200205 <font>
201- <pointsize>12</pointsize>
206+ <pointsize>11</pointsize>
202207 </font>
203208 </property>
204209 <property name="text">
@@ -226,7 +231,7 @@
226231 </property>
227232 <property name="font">
228233 <font>
229- <pointsize>12</pointsize>
234+ <pointsize>11</pointsize>
230235 </font>
231236 </property>
232237 <property name="text">
@@ -248,14 +253,14 @@
248253 </property>
249254 <property name="font">
250255 <font>
251- <pointsize>12</pointsize>
256+ <pointsize>11</pointsize>
252257 </font>
253258 </property>
254259 <property name="layoutDirection">
255260 <enum>Qt::LeftToRight</enum>
256261 </property>
257262 <property name="text">
258- <string>     拡張子:</string>
263+ <string>     拡張子:</string>
259264 </property>
260265 <property name="alignment">
261266 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
@@ -265,14 +270,14 @@
265270 <item>
266271 <widget class="QComboBox" name="comboBox_extension">
267272 <property name="sizePolicy">
268- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
273+ <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
269274 <horstretch>0</horstretch>
270275 <verstretch>0</verstretch>
271276 </sizepolicy>
272277 </property>
273278 <property name="font">
274279 <font>
275- <pointsize>12</pointsize>
280+ <pointsize>11</pointsize>
276281 </font>
277282 </property>
278283 <item>
@@ -341,7 +346,7 @@
341346 </property>
342347 <property name="font">
343348 <font>
344- <pointsize>12</pointsize>
349+ <pointsize>11</pointsize>
345350 </font>
346351 </property>
347352 <property name="text">
@@ -366,7 +371,7 @@
366371 </property>
367372 <property name="font">
368373 <font>
369- <pointsize>12</pointsize>
374+ <pointsize>11</pointsize>
370375 </font>
371376 </property>
372377 <property name="text">
@@ -391,7 +396,7 @@
391396 </property>
392397 <property name="font">
393398 <font>
394- <pointsize>12</pointsize>
399+ <pointsize>11</pointsize>
395400 </font>
396401 </property>
397402 <property name="text">
@@ -416,7 +421,7 @@
416421 </property>
417422 <property name="font">
418423 <font>
419- <pointsize>12</pointsize>
424+ <pointsize>11</pointsize>
420425 </font>
421426 </property>
422427 <property name="text">
@@ -455,7 +460,7 @@
455460 </property>
456461 <property name="font">
457462 <font>
458- <pointsize>12</pointsize>
463+ <pointsize>11</pointsize>
459464 </font>
460465 </property>
461466 <property name="text">
@@ -480,7 +485,7 @@
480485 </property>
481486 <property name="font">
482487 <font>
483- <pointsize>12</pointsize>
488+ <pointsize>11</pointsize>
484489 </font>
485490 </property>
486491 <property name="text">
@@ -505,7 +510,7 @@
505510 </property>
506511 <property name="font">
507512 <font>
508- <pointsize>12</pointsize>
513+ <pointsize>11</pointsize>
509514 </font>
510515 </property>
511516 <property name="text">
@@ -530,7 +535,7 @@
530535 </property>
531536 <property name="font">
532537 <font>
533- <pointsize>12</pointsize>
538+ <pointsize>11</pointsize>
534539 </font>
535540 </property>
536541 <property name="text">
@@ -555,7 +560,7 @@
555560 </property>
556561 <property name="font">
557562 <font>
558- <pointsize>12</pointsize>
563+ <pointsize>11</pointsize>
559564 </font>
560565 </property>
561566 <property name="text">
@@ -580,7 +585,7 @@
580585 </property>
581586 <property name="font">
582587 <font>
583- <pointsize>12</pointsize>
588+ <pointsize>11</pointsize>
584589 </font>
585590 </property>
586591 <property name="text">
@@ -605,7 +610,7 @@
605610 </property>
606611 <property name="font">
607612 <font>
608- <pointsize>12</pointsize>
613+ <pointsize>11</pointsize>
609614 </font>
610615 </property>
611616 <property name="text">
@@ -630,7 +635,7 @@
630635 </property>
631636 <property name="font">
632637 <font>
633- <pointsize>12</pointsize>
638+ <pointsize>11</pointsize>
634639 </font>
635640 </property>
636641 <property name="text">
@@ -655,7 +660,7 @@
655660 </property>
656661 <property name="font">
657662 <font>
658- <pointsize>12</pointsize>
663+ <pointsize>11</pointsize>
659664 </font>
660665 </property>
661666 <property name="text">
@@ -680,7 +685,7 @@
680685 </property>
681686 <property name="font">
682687 <font>
683- <pointsize>12</pointsize>
688+ <pointsize>11</pointsize>
684689 </font>
685690 </property>
686691 <property name="text">
@@ -1042,7 +1047,7 @@
10421047 <rect>
10431048 <x>0</x>
10441049 <y>0</y>
1045- <width>541</width>
1050+ <width>500</width>
10461051 <height>22</height>
10471052 </rect>
10481053 </property>
--- a/messagewindow.cpp
+++ b/messagewindow.cpp
@@ -32,7 +32,7 @@
3232 namespace {
3333 const QString SETTING_GROUP( "MessageWindow" );
3434 const QString SETTING_GEOMETRY( "geometry" );
35- const int DEFAULT_WIDTH = 541;
35+ const int DEFAULT_WIDTH = 500;
3636 const int DEFAULT_HEIGHT = 300;
3737 }
3838
@@ -63,6 +63,9 @@ void MessageWindow::setupGui() {
6363 textEdit = new QPlainTextEdit;
6464 textEdit->setReadOnly( true );
6565 textEdit->setWordWrapMode( QTextOption::WrapAnywhere );
66+ QFont* font = new QFont();
67+ font->setPixelSize( 11 );
68+ textEdit->setFont( *font );
6669
6770 clearTextButton = new QPushButton( QString::fromUtf8( "クリア" ) );
6871 connect( clearTextButton, SIGNAL(clicked()), this, SLOT(clearText()) );
--- a/messagewindow.ui
+++ b/messagewindow.ui
@@ -10,6 +10,11 @@
1010 <height>300</height>
1111 </rect>
1212 </property>
13+ <property name="font">
14+ <font>
15+ <pointsize>11</pointsize>
16+ </font>
17+ </property>
1318 <property name="windowTitle">
1419 <string>Form</string>
1520 </property>
@@ -28,6 +33,11 @@
2833 </property>
2934 <item>
3035 <widget class="QPlainTextEdit" name="plainTextEdit">
36+ <property name="font">
37+ <font>
38+ <pointsize>11</pointsize>
39+ </font>
40+ </property>
3141 <property name="readOnly">
3242 <bool>false</bool>
3343 </property>