1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

Remove obsolete Windows hacks.

This commit is contained in:
Teo Mrnjavac
2013-01-12 21:26:31 +01:00
parent 47439baa37
commit 1b466d7256
2 changed files with 1 additions and 6 deletions

View File

@@ -242,9 +242,7 @@ SocialWidget::onGeometryUpdate()
QPoint position( m_position - QPoint( size().width(), size().height() ) QPoint position( m_position - QPoint( size().width(), size().height() )
+ QPoint( 2 + ARROW_HEIGHT * 3, 0 ) ); + QPoint( 2 + ARROW_HEIGHT * 3, 0 ) );
#ifdef Q_OS_WIN
position.ry() -= 18/*margins I guess*/ + ARROW_HEIGHT;
#endif
if ( position != pos() ) if ( position != pos() )
{ {
move( position ); move( position );

View File

@@ -377,9 +377,6 @@ SourceTreeView::deletePlaylist( const QModelIndex& idxIn )
PlaylistItem* item = itemFromIndex< PlaylistItem >( idx ); PlaylistItem* item = itemFromIndex< PlaylistItem >( idx );
playlist_ptr playlist = item->playlist(); playlist_ptr playlist = item->playlist();
QPoint rightCenter = viewport()->mapToGlobal( visualRect( idx ).topRight() + QPoint( 0, visualRect( idx ).height() / 2 ) ); QPoint rightCenter = viewport()->mapToGlobal( visualRect( idx ).topRight() + QPoint( 0, visualRect( idx ).height() / 2 ) );
#ifdef Q_OS_WIN
rightCenter = QApplication::activeWindow()->mapFromGlobal( rightCenter );
#endif
if ( playlist->hasCustomDeleter() ) if ( playlist->hasCustomDeleter() )
{ {