1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02:00

* Fix cross compiling with MinGW and try to unbreak the MainWindow a bit more.

This commit is contained in:
Christian Muehlhaeuser
2011-08-13 04:49:09 +02:00
parent dce31156db
commit b766f6808f
2 changed files with 4 additions and 1 deletions

View File

@@ -264,7 +264,7 @@ PlaylistDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
QRect rectText = option.rect.adjusted( 66, 20, -100, -8 ); QRect rectText = option.rect.adjusted( 66, 20, -100, -8 );
#ifdef Q_OS_MAC #ifdef Q_OS_MAC
rectText.adjust( 0, 1, 0, 0 ); rectText.adjust( 0, 1, 0, 0 );
#elif Q_OS_WIN #elif defined Q_OS_WIN
rectText.adjust( 0, 2, 0, 0 ); rectText.adjust( 0, 2, 0, 0 );
#endif #endif

View File

@@ -211,7 +211,10 @@ TomahawkWindow::setupSideBar()
sidebarWidget->setContentsMargins( 0, 0, 0, 0 ); sidebarWidget->setContentsMargins( 0, 0, 0, 0 );
sidebarWidget->layout()->setContentsMargins( 0, 0, 0, 0 ); sidebarWidget->layout()->setContentsMargins( 0, 0, 0, 0 );
sidebarWidget->layout()->setMargin( 0 ); sidebarWidget->layout()->setMargin( 0 );
#ifndef Q_OS_MAC
sidebarWidget->layout()->setSpacing( 0 ); sidebarWidget->layout()->setSpacing( 0 );
#endif
ui->splitter->addWidget( sidebarWidget ); ui->splitter->addWidget( sidebarWidget );
ui->splitter->addWidget( ViewManager::instance()->widget() ); ui->splitter->addWidget( ViewManager::instance()->widget() );