Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 21195a2

Browse filesBrowse files
andy-fillebrownpauldotknopf
authored andcommitted
Use updated versions of Qt functions deprecated in Qt 5.14
1 parent c2540cc commit 21195a2
Copy full SHA for 21195a2

File tree

Expand file treeCollapse file tree

2 files changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-5
lines changed

‎src/native/QmlNet/Hosting/CoreHost.cpp

Copy file name to clipboardExpand all lines: src/native/QmlNet/Hosting/CoreHost.cpp
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ int CoreHost::run(QGuiApplication& app, QQmlApplicationEngine& engine, runCallba
144144
execArgs.push_back(runContext.managedExe);
145145

146146
QString appPtr;
147-
appPtr.sprintf("%llu", (quintptr)&app);
147+
appPtr.asprintf("%llu", (quintptr)&app);
148148
QString enginePtr;
149-
enginePtr.sprintf("%llu", (quintptr)&engine);
149+
enginePtr.asprintf("%llu", (quintptr)&engine);
150150
QString callbackPtr;
151-
callbackPtr.sprintf("%llu", (quintptr)runCallback);
151+
callbackPtr.asprintf("%llu", (quintptr)runCallback);
152152
QString exportedSymbolPointer;
153-
exportedSymbolPointer.sprintf("%llu", (quintptr)getExportedFunction);
153+
exportedSymbolPointer.asprintf("%llu", (quintptr)getExportedFunction);
154154

155155
execArgs.push_back(appPtr);
156156
execArgs.push_back(enginePtr);

‎src/native/QmlNet/QmlNet/qml/NetQObjectArg.cpp

Copy file name to clipboardExpand all lines: src/native/QmlNet/QmlNet/qml/NetQObjectArg.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void NetQObjectArg::pack()
149149
break;
150150
}
151151

152-
_variant = qVariantFromValue(casted);
152+
_variant = QVariant::fromValue(casted);
153153

154154
break;
155155
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.