1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 01:09:42 +01:00

* Make QueueView's header draggable for resizing.

This commit is contained in:
Christian Muehlhaeuser 2012-05-28 17:46:30 +02:00
parent 84c40dc590
commit 22d65b7364

View File

@ -50,6 +50,7 @@ QueueView::QueueView( AnimatedSplitter* parent )
connect( ui->toggleButton, SIGNAL( clicked() ), SLOT( show() ) );
ui->toggleButton->installEventFilter( this );
ui->toggleButton->setCursor( Qt::PointingHandCursor );
}
@ -116,8 +117,11 @@ QueueView::hide()
{
disconnect( ui->toggleButton, SIGNAL( clicked() ), this, SLOT( hide() ) );
connect( ui->toggleButton, SIGNAL( clicked() ), SLOT( show() ) );
disconnect( ui->toggleButton, SIGNAL( resized( QPoint ) ), this, SIGNAL( resizeBy( QPoint ) ) );
ui->toggleButton->setText( tr( "Show Queue" ) );
emit hideWidget();
AnimatedWidget::hide();
}
@ -126,8 +130,10 @@ QueueView::show()
{
disconnect( ui->toggleButton, SIGNAL( clicked() ), this, SLOT( show() ) );
connect( ui->toggleButton, SIGNAL( clicked() ), SLOT( hide() ) );
connect( ui->toggleButton, SIGNAL( resized( QPoint ) ), SIGNAL( resizeBy( QPoint ) ) );
ui->toggleButton->setText( tr( "Hide Queue" ) );
emit showWidget();
AnimatedWidget::show();
}