Description: Debian patches to make tipp10 compile Author: Christoph Martin Last-Update: 2016-07-20 https://sources.debian.net/data/main/t/tipp10/2.1.0-2/debian/patches/0001-FixCompiling --- a/widget/tickerboard.cpp +++ b/widget/tickerboard.cpp @@ -97,7 +97,8 @@ void TickerBoard::startTicker(bool wasPa if (tickerSpeed == 50) { scrollOffset = 290; - scroll(-290, 0, QRect::QRect(10, 15, 590, 35)); //contentsRect()); + const QRect qr = QRect(10, 15, 590, 35); + scroll(-290, 0, qr); //contentsRect()); } startFlag = true; @@ -153,7 +154,8 @@ void TickerBoard::changeChar() { scrollOffset = 0; } else { scrollOffset = 290; - scroll(-290, 0, QRect::QRect(10, 15, 590, 35)); //contentsRect()); + const QRect qr = QRect(10, 15, 590, 35); + scroll(-290, 0, qr); //contentsRect()); } splitLesson(); } @@ -242,7 +244,8 @@ void TickerBoard::progress() { // Move ticker 1 pixel to
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2020-02-26 14:46:21 +0100
committerGuillaume Le Vaillant <glv@posteo.net>2020-02-28 23:38:37 +0100
commita5f4428770e32acf9dd70b95da6a0bc279fa0794 (patch)
tree374a867e909e4d4f5af55ce4e7b53c9d6dae4568
parent5ae56f681bfbda09c2831e79280a1dee101aad0e (diff)
downloadguix-a5f4428770e32acf9dd70b95da6a0bc279fa0794.tar.gz
guix-a5f4428770e32acf9dd70b95da6a0bc279fa0794.zip
gnu: Add sbcl-clsql-uffi.
* gnu/packages/lisp-xyz.scm (sbcl-clsql-uffi): New variable.
"http://www.tipp10.com" #define APP_DB "tipp10v2.template" #define APP_USER_DB "tipp10v2.db" +#define APP_SHARE_DIR "/usr/share/tipp10" // Update constants #define UPDATE_URL "www.tipp10.com" --- a/tipp10.pro +++ b/tipp10.pro @@ -88,3 +88,15 @@ SOURCES += main.cpp \ sql/startsql.cpp \ games/abcrainwidget.cpp \ games/charball.cpp + +target.path = /usr/bin/ +INSTALLS += target +share.path = /usr/share/tipp10/ +share.files = release/* *wav +INSTALLS += share +desktop.path = /usr/share/applications/ +desktop.files = tipp10.desktop +INSTALLS += desktop +pixmap.path = /usr/share/pixmaps/ +pixmap.files = tipp10.png +INSTALLS += pixmap --- a/sql/connection.h +++ b/sql/connection.h @@ -179,11 +179,13 @@ static bool createConnection() { CANCEL_NO, "Betroffener Pfad:\n" + dbPath);*/ // Try to create new databae in user path // Exist a database in the program dir? - if (QFile::exists(QCoreApplication::applicationDirPath() + "/" + dbNameTemplate)) { + // if (QFile::exists(QCoreApplication::applicationDirPath() + "/" + dbNameTemplate)) { + if (QFile::exists(QString(APP_SHARE_DIR) + "/" + dbNameTemplate)) { //if (QFile::exists(":/" + dbNameTemplate)) { // A database exist in the program dir // -> copy database to user home dir - QFile file(QCoreApplication::applicationDirPath() + "/" + dbNameTemplate); + // QFile file(QCoreApplication::applicationDirPath() + "/" + dbNameTemplate); + QFile file(QString(APP_SHARE_DIR) + "/" + dbNameTemplate); //QFile file(":/" + dbNameTemplate); if (file.copy(dbPath)) { QFile::setPermissions(dbPath, QFile::permissions(dbPath) | QFile::WriteUser); @@ -229,7 +231,8 @@ static bool createConnection() { // Exist a database in user's home dir? if (!QFile::exists(dbPath)) { // Exist a database template in the program dir? - dbPath = QCoreApplication::applicationDirPath() + "/" + dbNameTemplate; + // dbPath = QCoreApplication::applicationDirPath() + "/" + dbNameTemplate; + dbPath = QString(APP_SHARE_DIR) + "/" + dbNameTemplate; //dbPath = ":/" + dbNameTemplate; if (QFile::exists(dbPath)) { // A database template exist in the program dir --- a/widget/helpbrowser.cpp +++ b/widget/helpbrowser.cpp @@ -52,13 +52,15 @@ HelpBrowser::HelpBrowser(QString link, Q textBrowser->setOpenExternalLinks(true); textBrowser->setSource(QString("file:///") + - QCoreApplication::applicationDirPath() + + // QCoreApplication::applicationDirPath() + + APP_SHARE_DIR + QString("/help/") + language + QString("/index.html")); if (link != "") { textBrowser->setSource(QString("file:///") + - QCoreApplication::applicationDirPath() + + // QCoreApplication::applicationDirPath() + + APP_SHARE_DIR + QString("/help/") + language + QString("/content/") + link); } --- a/tipp10.desktop +++ b/tipp10.desktop @@ -1,10 +1,10 @@ [Desktop Entry] -Encoding=UTF-8 Name=TIPP10 Comment=Touch Typing Tutor Comment[de]=10-Finger-Schreibtrainer Exec=tipp10 Icon=tipp10.png Terminal=false Type=Application Categories=Education; +Keywords=learning;touchtyping