Commit | Line | Data |
---|---|---|
808e4c14 EF |
1 | https://salsa.debian.org/debian/tipp10/-/raw/debian/2.1.0-5/debian/patches/qt5.patch |
2 | ||
3 | Author: Reiner Herrmann <reiner@reiner-h.de> | |
4 | Description: Port to Qt5 | |
5 | Bug-Debian: https://bugs.debian.org/875207 | |
6 | ||
7 | --- a/tipp10.pro | |
8 | +++ b/tipp10.pro | |
9 | @@ -14,6 +14,7 @@ | |
10 | DEPENDPATH += .\r | |
11 | INCLUDEPATH += .\r | |
12 | CONFIG += qt\r | |
13 | +QT += widgets multimedia printsupport\r | |
14 | QT += sql\r | |
15 | RC_FILE += tipp10.rc\r | |
16 | RESOURCES += tipp10.qrc\r | |
17 | --- a/main.cpp | |
18 | +++ b/main.cpp | |
19 | @@ -24,7 +24,6 @@ | |
20 | ****************************************************************/\r | |
21 | \r | |
22 | #include <QApplication>\r | |
23 | -#include <QPlastiqueStyle>\r | |
24 | #include <QString>\r | |
25 | #include <QSettings>\r | |
26 | #include <QCoreApplication>\r | |
27 | @@ -212,7 +211,7 @@ | |
28 | \r | |
29 | // Set windows style\r | |
30 | if (!useNativeStyle) {\r | |
31 | - app.setStyle("plastique");\r | |
32 | + app.setStyle("fusion");\r | |
33 | }\r | |
34 | \r | |
35 | // Translation\r | |
36 | --- a/games/abcrainwidget.cpp | |
37 | +++ b/games/abcrainwidget.cpp | |
38 | @@ -235,8 +235,7 @@ | |
39 | charballs.last()->wind = (qrand() % 8) + 2;\r | |
40 | charballs.last()->rad = 0;\r | |
41 | \r | |
42 | - chartext.append(new QGraphicsTextItem(QString(characterTemp),\r | |
43 | - charballs.last(), scene));\r | |
44 | + chartext.append(new QGraphicsTextItem(QString(characterTemp), charballs.last()));\r | |
45 | chartext.last()->setFont(QFont("Courier", 16, 100));\r | |
46 | chartext.last()->setPos(-(chartext.last()->boundingRect().width() / 2), -(chartext.last()->boundingRect().height() / 2));\r | |
47 | \r | |
48 | --- a/sql/chartablesql.cpp | |
49 | +++ b/sql/chartablesql.cpp | |
50 | @@ -137,7 +137,7 @@ | |
51 | sortColumn(4);\r | |
52 | \r | |
53 | headerview->setStretchLastSection(true);\r | |
54 | - headerview->setResizeMode(QHeaderView::Interactive);\r | |
55 | + headerview->setSectionResizeMode(QHeaderView::Interactive);\r | |
56 | headerview->setSortIndicatorShown(true);\r | |
57 | \r | |
58 | // Resize the columns\r | |
59 | --- a/sql/lessontablesql.cpp | |
60 | +++ b/sql/lessontablesql.cpp | |
61 | @@ -202,7 +202,7 @@ | |
62 | sortColumn(-1);\r | |
63 | \r | |
64 | headerview->setStretchLastSection(true);\r | |
65 | - headerview->setResizeMode(QHeaderView::Interactive);\r | |
66 | + headerview->setSectionResizeMode(QHeaderView::Interactive);\r | |
67 | headerview->setSortIndicatorShown(true);\r | |
68 | \r | |
69 | // Resize the columns\r |