File tree 3 files changed +16
-14
lines changed 3 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -207,13 +207,14 @@ void guiappSetApplicationDisplayName(const char *path, int pathLen)
207
207
208
208
QGuiApplication::setApplicationDisplayName (qsappDispName);
209
209
}
210
- void guiappSetDesktopFileName (const char *path, int pathLen)
211
- {
212
- QByteArray qfileName (path, pathLen);
213
- QString qsfileName = QString::fromUtf8 (qfileName);
214
-
215
- QGuiApplication::setDesktopFileName (qsfileName);
216
- }
210
+ // Added in Qt 5.7
211
+ // void guiappSetDesktopFileName(const char *path, int pathLen)
212
+ // {
213
+ // QByteArray qfileName(path, pathLen);
214
+ // QString qsfileName = QString::fromUtf8(qfileName);
215
+ //
216
+ // QGuiApplication::setDesktopFileName(qsfileName);
217
+ // }
217
218
void guiappSetWindowIcon (const char *path, int pathLen)
218
219
{
219
220
QByteArray qiconPath (path, pathLen);
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ void coreSetOrganizationDomain(const char *path, int pathLen);
139
139
void coreSetOrganizationName (const char * path , int pathLen );
140
140
141
141
void guiappSetApplicationDisplayName (const char * path , int pathLen );
142
- void guiappSetDesktopFileName (const char * path , int pathLen );
142
+ // void guiappSetDesktopFileName(const char *path, int pathLen); // Qt 5.7
143
143
void guiappSetWindowIcon (const char * path , int pathLen );
144
144
145
145
void contextGetProperty (QQmlContext_ * context , QString_ * name , DataValue * value );
Original file line number Diff line number Diff line change @@ -55,12 +55,13 @@ func SetApplicationDisplayName(name string) {
55
55
})
56
56
}
57
57
58
- func SetDesktopFileName (path string ) {
59
- cpath , cpathLen := util .UnsafeStringData (path )
60
- RunMain (func () {
61
- C .guiappSetDesktopFileName ((* C .char )(cpath ), C .int (cpathLen ))
62
- })
63
- }
58
+ // Qt 5.7
59
+ // func SetDesktopFileName(path string) {
60
+ // cpath, cpathLen := util.UnsafeStringData(path)
61
+ // RunMain(func() {
62
+ // C.guiappSetDesktopFileName((*C.char)(cpath), C.int(cpathLen))
63
+ // })
64
+ // }
64
65
65
66
func SetWindowIcon (path string ) {
66
67
cpath , cpathLen := util .UnsafeStringData (path )
You can’t perform that action at this time.
0 commit comments