VirtualBox

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


Ignore:
Timestamp:
Jul 29, 2010 7:45:42 AM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: don't use native file dialogs for directory / saving a file as well on KDE hosts (xtracker 5167)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIFileDialog.cpp

    r31187 r31191  
    366366
    367367    QFileDialog::Options o;
     368# if defined (Q_WS_X11)
     369    if (vboxGlobal().isKWinManaged())
     370      o |= QFileDialog::DontUseNativeDialog;
     371# endif
    368372    if (aDirOnly)
    369         o = QFileDialog::ShowDirsOnly;
     373        o |= QFileDialog::ShowDirsOnly;
    370374    if (!aResolveSymlinks)
    371375        o |= QFileDialog::DontResolveSymlinks;
     
    574578
    575579    QFileDialog::Options o;
     580# if defined (Q_WS_X11)
     581    if (vboxGlobal().isKWinManaged())
     582      o |= QFileDialog::DontUseNativeDialog;
     583# endif
    576584    if (!aResolveSymlinks)
    577585        o |= QFileDialog::DontResolveSymlinks;
     
    818826    if (!aResolveSymlinks)
    819827        o |= QFileDialog::DontResolveSymlinks;
    820 
    821828# if defined (Q_WS_X11)
    822829    if (vboxGlobal().isKWinManaged())
    823830      o |= QFileDialog::DontUseNativeDialog;
    824831# endif
     832
    825833    if (aSingleFile)
    826834        return QStringList() << QFileDialog::getOpenFileName (aParent, aCaption, aStartWith,
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