百人一首かるた 流しの練習用
修訂 | 6a6eb3b664d31fed3f42d65ed348c59658c83676 (tree) |
---|---|
時間 | 2015-11-14 16:51:31 |
作者 | alucky4416 <alucky4416@user...> |
Commiter | alucky4416 |
support Qt5
@@ -4,7 +4,7 @@ | ||
4 | 4 | # |
5 | 5 | #------------------------------------------------- |
6 | 6 | |
7 | -QT += core gui | |
7 | +QT += widgets | |
8 | 8 | |
9 | 9 | TARGET = QtKarutaNagashi |
10 | 10 | TEMPLATE = app |
@@ -1,7 +1,5 @@ | ||
1 | 1 | #include "fudaimgview.h" |
2 | 2 | |
3 | -#include <QDebug> | |
4 | - | |
5 | 3 | FudaImgView::FudaImgView(QWidget *parent) : |
6 | 4 | QGraphicsView(parent) |
7 | 5 | { |
@@ -1,7 +1,7 @@ | ||
1 | 1 | #ifndef FUDAIMGVIEW_H |
2 | 2 | #define FUDAIMGVIEW_H |
3 | 3 | |
4 | -#include <QtGui> | |
4 | +#include <QGraphicsView> | |
5 | 5 | |
6 | 6 | class FudaImgView : public QGraphicsView |
7 | 7 | { |
@@ -1,4 +1,4 @@ | ||
1 | -#include <QtGui/QApplication> | |
1 | +#include <QApplication> | |
2 | 2 | #include "mainwindow.h" |
3 | 3 | |
4 | 4 | int main(int argc, char *argv[]) |
@@ -3,6 +3,11 @@ | ||
3 | 3 | #include "textrsc.h" |
4 | 4 | |
5 | 5 | #include <QDebug> |
6 | + | |
7 | +#include <QMessageBox> | |
8 | +#include <QTime> | |
9 | +#include <QTimer> | |
10 | + | |
6 | 11 | #include <QTextCodec> |
7 | 12 | |
8 | 13 | int RandomNumber(int min, int max) |
@@ -36,7 +41,7 @@ MainWindow::MainWindow(QWidget *parent) : | ||
36 | 41 | ui->setupUi(this); |
37 | 42 | |
38 | 43 | // QTextCodec::setCodecForTr(QTextCodec::codecForLocale()); |
39 | - QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); // source codec is UTF-8 | |
44 | +// QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); // source codec is UTF-8 | |
40 | 45 | |
41 | 46 | ui->Slct_Mode->addItem(tr("自動")); |
42 | 47 | ui->Slct_Mode->addItem(tr("手動")); |
@@ -262,7 +267,7 @@ void MainWindow::on_actionExit_triggered() | ||
262 | 267 | |
263 | 268 | void MainWindow::on_actionAbout_triggered() |
264 | 269 | { |
265 | - QMessageBox::about(this, "About", tr("流しの練習 v0.3")); | |
270 | + QMessageBox::about(this, "About", tr("流しの練習 v0.4")); | |
266 | 271 | } |
267 | 272 | |
268 | 273 | void MainWindow::on_actionAbout_Qt_triggered() |
@@ -3,7 +3,9 @@ | ||
3 | 3 | |
4 | 4 | #include <QMainWindow> |
5 | 5 | |
6 | -#include <QtGui> | |
6 | +#include <QGraphicsScene> | |
7 | +#include <QGraphicsView> | |
8 | +#include <QGraphicsItem> | |
7 | 9 | |
8 | 10 | namespace Ui { |
9 | 11 | class MainWindow; |
@@ -90,6 +90,9 @@ p, li { white-space: pre-wrap; } | ||
90 | 90 | <property name="alignment"> |
91 | 91 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
92 | 92 | </property> |
93 | + <property name="decimals"> | |
94 | + <number>1</number> | |
95 | + </property> | |
93 | 96 | <property name="minimum"> |
94 | 97 | <double>0.100000000000000</double> |
95 | 98 | </property> |
@@ -164,7 +167,7 @@ p, li { white-space: pre-wrap; } | ||
164 | 167 | <property name="geometry"> |
165 | 168 | <rect> |
166 | 169 | <x>360</x> |
167 | - <y>40</y> | |
170 | + <y>30</y> | |
168 | 171 | <width>221</width> |
169 | 172 | <height>291</height> |
170 | 173 | </rect> |
@@ -213,7 +216,7 @@ p, li { white-space: pre-wrap; } | ||
213 | 216 | <property name="geometry"> |
214 | 217 | <rect> |
215 | 218 | <x>362</x> |
216 | - <y>20</y> | |
219 | + <y>10</y> | |
217 | 220 | <width>211</width> |
218 | 221 | <height>20</height> |
219 | 222 | </rect> |
@@ -271,8 +274,8 @@ p, li { white-space: pre-wrap; } | ||
271 | 274 | <property name="geometry"> |
272 | 275 | <rect> |
273 | 276 | <x>360</x> |
274 | - <y>330</y> | |
275 | - <width>221</width> | |
277 | + <y>320</y> | |
278 | + <width>231</width> | |
276 | 279 | <height>16</height> |
277 | 280 | </rect> |
278 | 281 | </property> |
@@ -320,7 +323,7 @@ p, li { white-space: pre-wrap; } | ||
320 | 323 | <property name="geometry"> |
321 | 324 | <rect> |
322 | 325 | <x>340</x> |
323 | - <y>40</y> | |
326 | + <y>30</y> | |
324 | 327 | <width>21</width> |
325 | 328 | <height>291</height> |
326 | 329 | </rect> |
@@ -438,7 +441,7 @@ p, li { white-space: pre-wrap; } | ||
438 | 441 | <x>0</x> |
439 | 442 | <y>0</y> |
440 | 443 | <width>600</width> |
441 | - <height>22</height> | |
444 | + <height>25</height> | |
442 | 445 | </rect> |
443 | 446 | </property> |
444 | 447 | <widget class="QMenu" name="menuFile"> |