VirtualBox

Changeset 46837 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 27, 2013 12:27:17 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Wizards stuff: Removing old Qt4.4 directory-stuff hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r46797 r46837  
    35413541QString VBoxGlobal::documentsPath()
    35423542{
    3543     QString path;
    3544 #if QT_VERSION < 0x040400
    3545     path = QDir::homePath();
    3546 #else
    3547     path = QDesktopServices::storageLocation (QDesktopServices::DocumentsLocation);
    3548 #endif
    3549 
    3550     /* Make sure the path exists */
    3551     QDir dir (path);
     3543    QString path = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
     3544    QDir dir(path);
    35523545    if (dir.exists())
    3553         return QDir::cleanPath (dir.canonicalPath());
     3546        return QDir::cleanPath(dir.canonicalPath());
    35543547    else
    35553548    {
    3556         dir.setPath (QDir::homePath() + "/Documents");
     3549        dir.setPath(QDir::homePath() + "/Documents");
    35573550        if (dir.exists())
    3558             return QDir::cleanPath (dir.canonicalPath());
     3551            return QDir::cleanPath(dir.canonicalPath());
    35593552        else
    35603553            return QDir::homePath();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette