Fix Q_OS_UNIX build.

Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
This commit is contained in:
Sean Stangl 2014-05-19 14:05:12 -07:00 committed by Mark Watkins
parent c88f46a6fd
commit 61e9e64d05

View File

@ -644,7 +644,7 @@ void MainWindow::on_action_Import_Data_triggered()
// This doesn't work on WinXP // This doesn't work on WinXP
#ifdef Q_OS_MAC #if defined(Q_OS_MAC)
#if (QT_VERSION < QT_VERSION_CHECK(4,8,0)) #if (QT_VERSION < QT_VERSION_CHECK(4,8,0))
// Fix for tetragon, 10.6 barfs up Qt's custom dialog // Fix for tetragon, 10.6 barfs up Qt's custom dialog
w.setOption(QFileDialog::DontUseNativeDialog, true); w.setOption(QFileDialog::DontUseNativeDialog, true);
@ -652,9 +652,9 @@ void MainWindow::on_action_Import_Data_triggered()
w.setOption(QFileDialog::DontUseNativeDialog,false); w.setOption(QFileDialog::DontUseNativeDialog,false);
#endif // version check #endif // version check
#elif Q_OS_UNIX #elif defined(Q_OS_UNIX)
w.setOption(QFileDialog::DontUseNativeDialog,false); w.setOption(QFileDialog::DontUseNativeDialog,false);
#elif Q_OS_WIN #elif defined(Q_OS_WIN)
// check the Os version.. winxp chokes // check the Os version.. winxp chokes
w.setOption(QFileDialog::DontUseNativeDialog, true); w.setOption(QFileDialog::DontUseNativeDialog, true);
#endif #endif