mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
Merge pull request #225 from TheOneRing/Q_WS_WIN_to_Q_OS_WIN
replaced Q_WS_WIN with Q_OS_WIN
This commit is contained in:
commit
fb02c08a55
src
@ -161,7 +161,7 @@ PlaylistDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
||||
QRect rectText = option.rect.adjusted( option.fontMetrics.height() * 5.5, boldFontMetrics.height() + 6, -leftEdge - 10, -8 );
|
||||
#ifdef Q_WS_MAC
|
||||
rectText.adjust( 0, 1, 0, 0 );
|
||||
#elif defined Q_WS_WIN
|
||||
#elif defined Q_OS_WIN
|
||||
rectText.adjust( 0, 2, 0, 0 );
|
||||
#endif
|
||||
|
||||
|
@ -138,7 +138,7 @@ ActionCollection::initActions()
|
||||
m_actionCollection[ "legalInfo" ]->setMenuRole( QAction::ApplicationSpecificRole );
|
||||
m_actionCollection[ "openLogfile" ] = new QAction( tr( "&View Logfile" ), this );
|
||||
m_actionCollection[ "openLogfile" ]->setMenuRole( QAction::ApplicationSpecificRole );
|
||||
#if defined( Q_OS_MAC ) && defined( HAVE_SPARKLE ) || defined( Q_WS_WIN )
|
||||
#if defined( Q_OS_MAC ) && defined( HAVE_SPARKLE ) || defined( Q_OS_WIN )
|
||||
m_actionCollection[ "checkForUpdates" ] = new QAction( tr( "Check For Updates..." ), this );
|
||||
m_actionCollection[ "checkForUpdates" ]->setMenuRole( QAction::ApplicationSpecificRole );
|
||||
#endif
|
||||
@ -184,7 +184,7 @@ ActionCollection::createMenuBar( QWidget *parent )
|
||||
|
||||
#if defined( Q_OS_MAC ) && defined( HAVE_SPARKLE )
|
||||
helpMenu->addAction( m_actionCollection[ "checkForUpdates" ] );
|
||||
#elif defined( Q_WS_WIN )
|
||||
#elif defined( Q_OS_WIN )
|
||||
helpMenu->addSeparator();
|
||||
helpMenu->addAction( m_actionCollection[ "checkForUpdates" ] );
|
||||
#endif
|
||||
@ -249,7 +249,7 @@ ActionCollection::createCompactMenu( QWidget *parent )
|
||||
|
||||
#if defined( Q_OS_MAC ) && defined( HAVE_SPARKLE )
|
||||
compactMenu->addAction( m_actionCollection[ "checkForUpdates" ] );
|
||||
#elif defined( Q_WS_WIN )
|
||||
#elif defined( Q_OS_WIN )
|
||||
compactMenu->addSeparator();
|
||||
compactMenu->addAction( m_actionCollection[ "checkForUpdates" ] );
|
||||
#endif
|
||||
|
@ -19,12 +19,12 @@
|
||||
#include <cstring>
|
||||
#include <cassert>
|
||||
|
||||
#ifndef Q_WS_WIN
|
||||
#ifndef Q_OS_WIN
|
||||
#include <csignal>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef Q_WS_WIN
|
||||
#ifdef Q_OS_WIN
|
||||
#include <windows.h>
|
||||
#ifndef _SSIZE_T_DEFINED
|
||||
typedef signed int ssize_t;
|
||||
@ -633,7 +633,7 @@ void KDSingleApplicationGuard::Instance::raise()
|
||||
}
|
||||
|
||||
|
||||
#ifndef Q_WS_WIN
|
||||
#ifndef Q_OS_WIN
|
||||
// static
|
||||
void KDSingleApplicationGuard::SIGINT_handler( int sig )
|
||||
{
|
||||
@ -735,7 +735,7 @@ void KDSingleApplicationGuard::Private::create( const QStringList & arguments )
|
||||
|
||||
// if another instance crashed, the shared memory segment is still there on Unix
|
||||
// the following lines trigger deletion in that case
|
||||
#ifndef Q_WS_WIN
|
||||
#ifndef Q_OS_WIN
|
||||
mem.attach();
|
||||
mem.detach();
|
||||
#endif
|
||||
@ -767,7 +767,7 @@ void KDSingleApplicationGuard::Private::create( const QStringList & arguments )
|
||||
{
|
||||
const KDLockedSharedMemoryPointer< InstanceRegister > instances( &mem );
|
||||
initialized = instances->isValid();
|
||||
#ifdef Q_WS_WIN
|
||||
#ifdef Q_OS_WIN
|
||||
::Sleep(20);
|
||||
#else
|
||||
usleep(20000);
|
||||
@ -815,7 +815,7 @@ void KDSingleApplicationGuard::Private::create( const QStringList & arguments )
|
||||
instances->info[ 0 ] = ProcessInfo( NoCommand, arguments, QCoreApplication::applicationPid() );
|
||||
}
|
||||
|
||||
#ifndef Q_WS_WIN
|
||||
#ifndef Q_OS_WIN
|
||||
::signal( SIGINT, SIGINT_handler );
|
||||
#endif
|
||||
|
||||
|
@ -67,7 +67,7 @@ protected:
|
||||
/*! \reimp */ bool event( QEvent * event );
|
||||
|
||||
private:
|
||||
#ifndef Q_WS_WIN
|
||||
#ifndef Q_OS_WIN
|
||||
static void SIGINT_handler( int );
|
||||
#endif
|
||||
|
||||
|
@ -133,7 +133,7 @@ appConfigDir()
|
||||
return QDir( "/tmp" );
|
||||
}
|
||||
|
||||
#elif defined(Q_WS_WIN)
|
||||
#elif defined(Q_OS_WIN)
|
||||
throw "TODO";
|
||||
return QDir( "c:\\" ); //TODO refer to Qt documentation to get code to do this
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
||||
#include <libqnetwm/netwm.h>
|
||||
#endif
|
||||
|
||||
#ifdef Q_WS_WIN
|
||||
#ifdef Q_OS_WIN
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
#include <shellapi.h>
|
||||
@ -282,7 +282,7 @@ bringToFront()
|
||||
|
||||
XSendEvent( QX11Info::display(), RootWindow( QX11Info::display(), DefaultScreen( QX11Info::display() ) ), False, SubstructureRedirectMask | SubstructureNotifyMask, &e );
|
||||
}
|
||||
#elif defined(Q_WS_WIN)
|
||||
#elif defined(Q_OS_WIN)
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
@ -940,7 +940,7 @@ drawCompositedPopup( QWidget* widget,
|
||||
qreal opacity )
|
||||
{
|
||||
bool compositingWorks = true;
|
||||
#if defined(Q_WS_WIN) //HACK: Windows refuses to perform compositing so we must fake it
|
||||
#if defined(Q_OS_WIN) //HACK: Windows refuses to perform compositing so we must fake it
|
||||
compositingWorks = false;
|
||||
#elif defined(Q_WS_X11)
|
||||
if ( !QX11Info::isCompositingManagerRunning() )
|
||||
|
@ -200,7 +200,7 @@ TomahawkTrayIcon::refreshToolTip()
|
||||
tip = tr( "Currently not playing." );
|
||||
}
|
||||
|
||||
#ifdef Q_WS_WIN
|
||||
#ifdef Q_OS_WIN
|
||||
// Good old crappy Win32
|
||||
tip.replace( "&", "&&&" );
|
||||
#endif
|
||||
|
@ -82,7 +82,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#if defined( Q_WS_WIN )
|
||||
#if defined( Q_OS_WIN )
|
||||
#if defined ( WITH_QtSparkle )
|
||||
#include <qtsparkle/Updater>
|
||||
#endif
|
||||
@ -484,7 +484,7 @@ TomahawkWindow::setupUpdateCheck()
|
||||
#if defined( Q_OS_MAC ) && defined( HAVE_SPARKLE )
|
||||
connect( ActionCollection::instance()->getAction( "checkForUpdates" ), SIGNAL( triggered( bool ) ),
|
||||
SLOT( checkForUpdates() ) );
|
||||
#elif defined( Q_WS_WIN ) && defined( WITH_QtSparkle )
|
||||
#elif defined( Q_OS_WIN ) && defined( WITH_QtSparkle )
|
||||
QUrl updaterUrl;
|
||||
|
||||
if ( qApp->arguments().contains( "--debug" ) )
|
||||
|
@ -33,7 +33,7 @@ SplashWidget::SplashWidget()
|
||||
{
|
||||
//In 2014 there are still operating systems that cannot do transparency
|
||||
bool compositingWorks = true;
|
||||
#if defined(Q_WS_WIN)
|
||||
#if defined(Q_OS_WIN)
|
||||
compositingWorks = false;
|
||||
#elif defined(Q_WS_X11)
|
||||
if ( !QX11Info::isCompositingManagerRunning() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user