Changeset 58863 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Nov 25, 2015 3:09:04 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r58843 r58863 25 25 # include <QTranslator> 26 26 # include <QDesktopWidget> 27 # if QT_VERSION >= 0x050000 28 # include <QStandardPaths> 29 # endif /* QT_VERSION >= 0x050000 */ 27 30 # include <QDesktopServices> 28 31 # include <QMutex> … … 35 38 # include <QLocale> 36 39 # include <QSpinBox> 37 38 40 # ifdef Q_WS_WIN 39 41 # include <QEventLoop> 40 42 # endif /* Q_WS_WIN */ 41 42 43 # ifdef Q_WS_X11 43 44 # include <QTextBrowser> … … 45 46 # include <QX11Info> 46 47 # endif /* Q_WS_X11 */ 47 48 48 # ifdef VBOX_GUI_WITH_PIDFILE 49 49 # include <QTextStream> … … 74 74 # include "UIIconPool.h" 75 75 # include "UIVirtualBoxEventHandler.h" 76 77 76 # ifdef Q_WS_X11 78 77 # include "UIHostComboEditor.h" … … 82 81 # endif /* VBOX_OSE */ 83 82 # endif /* Q_WS_X11 */ 84 85 83 # ifdef Q_WS_MAC 86 84 # include "VBoxUtils-darwin.h" … … 88 86 # include "UIMachineWindowSeamless.h" 89 87 # endif /* Q_WS_MAC */ 90 91 88 # ifdef VBOX_WITH_VIDEOHWACCEL 92 89 # include "VBoxFBOverlay.h" … … 126 123 # include <iprt/mem.h> 127 124 # endif /* Q_WS_X11 */ 128 129 125 # include <VBox/sup.h> 130 126 # include <VBox/com/Guid.h> 131 127 128 /* External includes: */ 132 129 # ifdef Q_WS_WIN 133 130 # include "shlobj.h" … … 143 140 #endif /* VBOX_WITH_XPCOM */ 144 141 142 /* Qt includes: */ 145 143 #include <QLibraryInfo> 146 144 #include <QProgressDialog> … … 148 146 #include <QStyleOptionSpinBox> 149 147 148 /* Other VBox includes: */ 150 149 #include <VBox/VBoxOGL.h> 151 150 #include <VBox/vd.h> 152 153 151 #include <iprt/ctype.h> 154 152 #include <iprt/err.h> 155 153 #include <iprt/file.h> 156 154 155 /* External includes: */ 156 # include <math.h> 157 157 #ifdef Q_WS_MAC 158 158 # include <sys/utsname.h> 159 159 #endif /* Q_WS_MAC */ 160 161 /* External includes: */162 # include <math.h>163 164 160 #ifdef Q_WS_X11 165 161 # undef BOOL /* typedef CARD8 BOOL in Xmd.h conflicts with #define BOOL PRBool … … 171 167 # include <X11/Xatom.h> 172 168 # include <X11/extensions/Xinerama.h> 173 174 169 # define BOOL PRBool 175 170 #endif /* Q_WS_X11 */ … … 3643 3638 QString VBoxGlobal::documentsPath() 3644 3639 { 3640 #if QT_VERSION >= 0x050000 3641 QString path = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); 3642 #else /* QT_VERSION < 0x050000 */ 3645 3643 QString path = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation); 3644 #endif /* QT_VERSION < 0x050000 */ 3646 3645 QDir dir(path); 3647 3646 if (dir.exists()) -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r58815 r58863 21 21 22 22 /* Qt includes: */ 23 # include <QDesktopServices>24 23 # include <QMenuBar> 25 24 # include <QStatusBar> … … 28 27 # include <QToolButton> 29 28 # include <QTimer> 30 31 /* Local includes: */ 29 # if QT_VERSION >= 0x050000 30 # include <QStandardPaths> 31 # else /* QT_VERSION < 0x050000 */ 32 # include <QDesktopServices> 33 # endif /* QT_VERSION < 0x050000 */ 34 35 /* GUI includes: */ 32 36 # include "QISplitter.h" 33 37 # include "QIFileDialog.h" … … 61 65 # include "UIExtraDataManager.h" 62 66 # include "VBoxGlobal.h" 63 64 67 # ifdef Q_WS_MAC 65 68 # include "VBoxUtils.h" … … 968 971 const CMachine &machine = pItem->machine(); 969 972 UIDesktopServices::createMachineShortcut(machine.GetSettingsFilePath(), 973 #if QT_VERSION >= 0x050000 974 QStandardPaths::writableLocation(QStandardPaths::DesktopLocation), 975 #else /* QT_VERSION < 0x050000 */ 970 976 QDesktopServices::storageLocation(QDesktopServices::DesktopLocation), 977 #endif /* QT_VERSION < 0x050000 */ 971 978 machine.GetName(), machine.GetId()); 972 979 }
Note:
See TracChangeset
for help on using the changeset viewer.