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:
@@ -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 );
|
||||||
|
@@ -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() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user