Skip to content

Commit fe59796

Browse files
committedNov 17, 2024
Updated sources to Qt 6.8
1 parent 8d76784 commit fe59796

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed
 

‎Demo/android/build.gradle

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:7.4.1'
8+
classpath 'com.android.tools.build:gradle:8.6.0'
99
}
1010
}
1111

@@ -14,11 +14,11 @@ repositories {
1414
mavenCentral()
1515
}
1616

17-
apply plugin: 'com.android.application'
17+
apply plugin: qtGradlePluginType
1818

1919
dependencies {
2020
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
21-
implementation 'androidx.core:core:1.10.1'
21+
implementation 'androidx.core:core:1.13.1'
2222
}
2323

2424
android {
@@ -29,12 +29,14 @@ android {
2929
* - qtAndroidDir - holds the path to qt android files
3030
* needed to build any Qt application
3131
* on Android.
32+
* - qtGradlePluginType - whether to build an app or a library
3233
*
3334
* are defined in gradle.properties file. This file is
3435
* updated by QtCreator and androiddeployqt tools.
3536
* Changing them manually might break the compilation!
3637
*******************************************************/
3738

39+
namespace androidPackageName
3840
compileSdkVersion androidCompileSdkVersion
3941
buildToolsVersion androidBuildToolsVersion
4042
ndkVersion androidNdkVersion

‎QSQLite3MultipleCiphers/qsql_sqlite.cpp

+11-7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <qdatetime.h>
88
#include <qdebug.h>
99
#include <qlist.h>
10+
#include <qloggingcategory.h>
1011
#include <qsqlerror.h>
1112
#include <qsqlfield.h>
1213
#include <qsqlindex.h>
@@ -38,6 +39,8 @@ Q_DECLARE_METATYPE(sqlite3_stmt*)
3839

3940
QT_BEGIN_NAMESPACE
4041

42+
static Q_LOGGING_CATEGORY(lcSqlite, "qt.sql.sqlite")
43+
4144
using namespace Qt::StringLiterals;
4245

4346
static int qGetColumnType(const QString &tpName)
@@ -247,7 +250,6 @@ void QSQLiteResultPrivate::initColumns(bool emptyResultset)
247250
}
248251

249252
QSqlField fld(colName, QMetaType(fieldType), tableName);
250-
fld.setSqlType(stp);
251253
rInf.append(fld);
252254
}
253255
}
@@ -804,7 +806,7 @@ bool QSQLiteDriver::open(const QString & db, const QString &, const QString &, c
804806
}
805807
#endif
806808
else
807-
qWarning("Unsupported option '%ls'", qUtf16Printable(option.toString()));
809+
qCWarning(lcSqlite, "Unsupported option '%ls'", qUtf16Printable(option.toString()));
808810
}
809811

810812
int openMode = (openReadOnlyOption ? SQLITE_OPEN_READONLY : (SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
@@ -815,7 +817,7 @@ bool QSQLiteDriver::open(const QString & db, const QString &, const QString &, c
815817
#if defined(SQLITE_OPEN_NOFOLLOW)
816818
openMode |= SQLITE_OPEN_NOFOLLOW;
817819
#else
818-
qWarning("SQLITE_OPEN_NOFOLLOW not supported with the SQLite version %s", sqlite3_libversion());
820+
qCWarning(lcSqlite, "SQLITE_OPEN_NOFOLLOW not supported with the SQLite version %s", sqlite3_libversion());
819821
#endif
820822
}
821823

@@ -1056,12 +1058,13 @@ bool QSQLiteDriver::subscribeToNotification(const QString &name)
10561058
{
10571059
Q_D(QSQLiteDriver);
10581060
if (!isOpen()) {
1059-
qWarning("Database not open.");
1061+
qCWarning(lcSqlite, "QSQLiteDriver::subscribeToNotification: Database not open.");
10601062
return false;
10611063
}
10621064

10631065
if (d->notificationid.contains(name)) {
1064-
qWarning("Already subscribing to '%ls'.", qUtf16Printable(name));
1066+
qCWarning(lcSqlite, "QSQLiteDriver::subscribeToNotification: Already subscribing to '%ls'.",
1067+
qUtf16Printable(name));
10651068
return false;
10661069
}
10671070

@@ -1077,12 +1080,13 @@ bool QSQLiteDriver::unsubscribeFromNotification(const QString &name)
10771080
{
10781081
Q_D(QSQLiteDriver);
10791082
if (!isOpen()) {
1080-
qWarning("Database not open.");
1083+
qCWarning(lcSqlite, "QSQLiteDriver::unsubscribeFromNotification: Database not open.");
10811084
return false;
10821085
}
10831086

10841087
if (!d->notificationid.contains(name)) {
1085-
qWarning("Not subscribed to '%ls'.", qUtf16Printable(name));
1088+
qCWarning(lcSqlite, "QSQLiteDriver::unsubscribeFromNotification: Not subscribed to '%ls'.",
1089+
qUtf16Printable(name));
10861090
return false;
10871091
}
10881092

‎QSQLite3MultipleCiphers/smain.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
QT_BEGIN_NAMESPACE
1010

11+
using namespace Qt::StringLiterals;
12+
1113
class QSQLite3MultipleCiphersDriverPlugin : public QSqlDriverPlugin
1214
{
1315
Q_OBJECT
@@ -27,7 +29,7 @@ QSQLite3MultipleCiphersDriverPlugin::QSQLite3MultipleCiphersDriverPlugin()
2729

2830
QSqlDriver* QSQLite3MultipleCiphersDriverPlugin::create(const QString &name)
2931
{
30-
if(name == QLatin1String("SQLITE_MULTIPLE_CIPHERS"))
32+
if(name == "SQLITE_MULTIPLE_CIPHERS"_L1)
3133
{
3234
QSQLite3MultipleCiphersDriver *driver = new QSQLite3MultipleCiphersDriver();
3335
return driver;

0 commit comments

Comments
 (0)
Please sign in to comment.