Commit 28825619 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - #ifdef WIN32 consistancy if some insane people try Qt on Mac.

parent 3e75ca56
This diff is collapsed.
......@@ -236,7 +236,10 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONNECT( ui.outputModule, currentIndexChanged( int ),
this, updateAudioOptions( int ) );
#ifndef WIN32
#ifdef WIN32
CONFIG_GENERIC( "directx-audio-device", IntegerList,
ui.DirectXLabel, DirectXDevice );
#else
if( module_Exists( p_intf, "alsa" ) )
{
CONFIG_GENERIC( "alsadev" , StringList , ui.alsaLabel,
......@@ -247,9 +250,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC_FILE( "dspdev" , File , ui.OSSLabel, OSSDevice,
OSSBrowse );
}
#else
CONFIG_GENERIC( "directx-audio-device", IntegerList,
ui.DirectXLabel, DirectXDevice );
#endif
// File exists everywhere
CONFIG_GENERIC_FILE( "audiofile-file" , File , ui.fileLabel,
......@@ -445,7 +445,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC( "embeded-video", Bool, NULL, embedVideo );
CONFIG_GENERIC_FILE( "skins2-last", File, NULL, fileSkin,
skinBrowse );
#if defined( WIN32 ) || defined( HAVE_DBUS_3 )
#if defined( WIN32 ) || defined( HAVE_DBUS_3 ) || defined(__APPLE__)
CONFIG_GENERIC( "one-instance", Bool, NULL, OneInterfaceMode );
CONFIG_GENERIC( "playlist-enqueue", Bool, NULL,
EnqueueOneInterfaceMode );
......@@ -499,11 +499,11 @@ void SPrefsPanel::updateAudioOptions( int number)
QString value = qobject_cast<QComboBox *>(optionWidgets[audioOutCoB])
->itemData( number ).toString();
#ifndef WIN32
#ifdef WIN32
optionWidgets[directxW]->setVisible( ( value == "directx" ) );
#else
optionWidgets[ossW]->setVisible( ( value == "oss" ) );
optionWidgets[alsaW]->setVisible( ( value == "alsa" ) );
#else
optionWidgets[directxW]->setVisible( ( value == "directx" ) );
#endif
optionWidgets[fileW]->setVisible( ( value == "aout_file" ) );
}
......
......@@ -175,7 +175,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
statusBar()->addPermanentWidget( pgBar, 0 );
statusBar()->addPermanentWidget( timeLabel, 0 );
/* timeLabel behaviour:
- double clicking opens the goto time dialog
- right-clicking and clicking just toggle between remaining and
......
......@@ -31,7 +31,7 @@
#include <vector>
/* Folder vs. Directory */
#ifdef WIN32
#if defined( WIN32 ) || defined(__APPLE__)
#define I_OPEN_FOLDER "Open &Folder..."
#else
#define I_OPEN_FOLDER "Open D&irectory..."
......
......@@ -285,7 +285,7 @@ static void Init( intf_thread_t *p_intf )
Q_INIT_RESOURCE( vlc );
#ifndef WIN32
#if !defined(WIN32) && !defined(__APPLE__)
/* KLUDGE:
* disables icon theme use because that makes Cleanlooks style bug
* because it asks gconf for some settings that timeout because of threads
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment