OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
Source at commit fa4bfacd58001480909e406f1538c138268d37bb created 13 years 3 months ago. By kyak, qstardict: initial port | |
---|---|
1 | diff -ur qstardict-0.13.1.or/qstardict/keyboard.cpp qstardict-0.13.1/qstardict/keyboard.cpp |
2 | --- qstardict-0.13.1.or/qstardict/keyboard.cpp 2009-02-10 15:33:30.000000000 +0300 |
3 | +++ qstardict-0.13.1/qstardict/keyboard.cpp 2010-12-07 21:52:31.613898108 +0300 |
4 | @@ -82,7 +82,28 @@ |
5 | |
6 | } // namespace |
7 | |
8 | -#endif // Q_WS_WIN |
9 | +#elif defined(Q_WS_QWS) // Q_WS_WIN |
10 | + |
11 | +namespace |
12 | +{ |
13 | +const unsigned mAlt = 0010; |
14 | +const unsigned mCtrl = 0004; |
15 | +const unsigned mShift = 0001; |
16 | +const unsigned mWin = 0100; |
17 | +} |
18 | + |
19 | +namespace QStarDict |
20 | +{ |
21 | + |
22 | +Qt::KeyboardModifiers Keyboard::activeModifiers() |
23 | +{ |
24 | + Qt::KeyboardModifiers result; |
25 | + return result; |
26 | +} |
27 | + |
28 | +} // namespace |
29 | + |
30 | +#endif // Q_WS_QWS |
31 | |
32 | // vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab cindent textwidth=120 formatoptions=tc |
33 | |
34 | diff -ur qstardict-0.13.1.or/qstardict/mainwindow.ui qstardict-0.13.1/qstardict/mainwindow.ui |
35 | --- qstardict-0.13.1.or/qstardict/mainwindow.ui 2009-02-10 15:33:30.000000000 +0300 |
36 | +++ qstardict-0.13.1/qstardict/mainwindow.ui 2010-12-08 16:40:21.843773360 +0300 |
37 | @@ -5,8 +5,8 @@ |
38 | <rect> |
39 | <x>0</x> |
40 | <y>0</y> |
41 | - <width>742</width> |
42 | - <height>511</height> |
43 | + <width>320</width> |
44 | + <height>240</height> |
45 | </rect> |
46 | </property> |
47 | <property name="windowTitle" > |
48 | @@ -19,15 +19,15 @@ |
49 | <widget class="QWidget" name="centralwidget" > |
50 | <layout class="QGridLayout" > |
51 | <property name="margin" > |
52 | - <number>9</number> |
53 | + <number>0</number> |
54 | </property> |
55 | <property name="spacing" > |
56 | - <number>6</number> |
57 | + <number>0</number> |
58 | </property> |
59 | <item row="0" column="0" > |
60 | <layout class="QHBoxLayout" > |
61 | <property name="spacing" > |
62 | - <number>6</number> |
63 | + <number>0</number> |
64 | </property> |
65 | <property name="margin" > |
66 | <number>0</number> |
67 | @@ -90,17 +90,16 @@ |
68 | <number>1</number> |
69 | </attribute> |
70 | <widget class="QWidget" name="dockWidgetContents" > |
71 | - <layout class="QGridLayout" > |
72 | - <property name="margin" > |
73 | - <number>9</number> |
74 | - </property> |
75 | - <property name="spacing" > |
76 | - <number>6</number> |
77 | + <widget class="QListWidget" name="wordsList" > |
78 | + <property name="geometry"> |
79 | + <rect> |
80 | + <x>9</x> |
81 | + <y>9</y> |
82 | + <width>185</width> |
83 | + <height>184</height> |
84 | + </rect> |
85 | </property> |
86 | - <item row="0" column="0" > |
87 | - <widget class="QListWidget" name="wordsList" /> |
88 | - </item> |
89 | - </layout> |
90 | + </widget> |
91 | </widget> |
92 | </widget> |
93 | <widget class="QMenuBar" name="menubar" > |
94 | @@ -108,8 +107,8 @@ |
95 | <rect> |
96 | <x>0</x> |
97 | <y>0</y> |
98 | - <width>742</width> |
99 | - <height>22</height> |
100 | + <width>320</width> |
101 | + <height>18</height> |
102 | </rect> |
103 | </property> |
104 | <widget class="QMenu" name="menu_File" > |
105 | diff -ur qstardict-0.13.1.or/qstardict/settingsdialog.ui qstardict-0.13.1/qstardict/settingsdialog.ui |
106 | --- qstardict-0.13.1.or/qstardict/settingsdialog.ui 2009-02-10 15:33:30.000000000 +0300 |
107 | +++ qstardict-0.13.1/qstardict/settingsdialog.ui 2010-12-08 10:27:03.160773247 +0300 |
108 | @@ -5,8 +5,8 @@ |
109 | <rect> |
110 | <x>0</x> |
111 | <y>0</y> |
112 | - <width>463</width> |
113 | - <height>498</height> |
114 | + <width>320</width> |
115 | + <height>240</height> |
116 | </rect> |
117 | </property> |
118 | <property name="windowTitle" > |
119 | @@ -45,8 +45,8 @@ |
120 | <rect> |
121 | <x>0</x> |
122 | <y>0</y> |
123 | - <width>441</width> |
124 | - <height>414</height> |
125 | + <width>320</width> |
126 | + <height>240</height> |
127 | </rect> |
128 | </property> |
129 | <attribute name="title" > |
130 | @@ -104,8 +104,8 @@ |
131 | <rect> |
132 | <x>0</x> |
133 | <y>0</y> |
134 | - <width>441</width> |
135 | - <height>414</height> |
136 | + <width>320</width> |
137 | + <height>240</height> |
138 | </rect> |
139 | </property> |
140 | <attribute name="title" > |
141 | @@ -282,8 +282,8 @@ |
142 | <rect> |
143 | <x>0</x> |
144 | <y>0</y> |
145 | - <width>640</width> |
146 | - <height>409</height> |
147 | + <width>320</width> |
148 | + <height>240</height> |
149 | </rect> |
150 | </property> |
151 | <attribute name="title" > |
152 | @@ -565,8 +565,8 @@ |
153 | <rect> |
154 | <x>0</x> |
155 | <y>0</y> |
156 | - <width>640</width> |
157 | - <height>409</height> |
158 | + <width>320</width> |
159 | + <height>240</height> |
160 | </rect> |
161 | </property> |
162 | <attribute name="title" > |
163 |