Changeset 58862 in vbox
- Timestamp:
- Nov 25, 2015 3:02:41 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 104343
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp
r58426 r58862 24 24 # include <QDir> 25 25 # include <QPointer> 26 # include <VBox/version.h> 26 # if QT_VERSION >= 0x050000 27 # include <QUrl> 28 # include <QUrlQuery> 29 # endif /* QT_VERSION >= 0x050000 */ 27 30 28 31 /* GUI includes: */ … … 48 51 # include <iprt/path.h> 49 52 # include <iprt/system.h> 53 # include <VBox/version.h> 50 54 51 55 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 174 178 { 175 179 /* Compose query: */ 180 #if QT_VERSION >= 0x050000 181 QUrlQuery url; 182 #else /* QT_VERSION < 0x050000 */ 176 183 QUrl url(m_url); 184 #endif /* QT_VERSION < 0x050000 */ 177 185 url.addQueryItem("platform", vboxGlobal().virtualBox().GetPackageType()); 178 186 /* Check if branding is active: */ … … 198 206 UserDictionary headers; 199 207 headers["User-Agent"] = strUserAgent; 208 #if QT_VERSION >= 0x050000 209 QUrl fullUrl(m_url); 210 fullUrl.setQuery(url); 211 createNetworkRequest(UINetworkRequestType_GET, QList<QUrl>() << fullUrl, headers); 212 #else /* QT_VERSION < 0x050000 */ 200 213 createNetworkRequest(UINetworkRequestType_GET, QList<QUrl>() << url, headers); 214 #endif /* QT_VERSION < 0x050000 */ 201 215 } 202 216
Note:
See TracChangeset
for help on using the changeset viewer.