mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-24 14:42:53 +02:00
* Remove obsolete code in WhatsNewWidget.
This commit is contained in:
@@ -214,14 +214,14 @@ WhatsNewWidget_0_8::changeEvent( QEvent* e )
|
|||||||
void
|
void
|
||||||
WhatsNewWidget_0_8::inboxBoxClicked()
|
WhatsNewWidget_0_8::inboxBoxClicked()
|
||||||
{
|
{
|
||||||
activateBox( ui->inboxCaption, 0 );
|
activateAnchor( ui->inboxCaption );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
WhatsNewWidget_0_8::urlLookupBoxClicked()
|
WhatsNewWidget_0_8::urlLookupBoxClicked()
|
||||||
{
|
{
|
||||||
activateBox( ui->linkCaption, 1 );
|
activateAnchor( ui->linkCaption );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -250,36 +250,9 @@ WhatsNewWidget_0_8::androidBoxClicked()
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
WhatsNewWidget_0_8::activateBox( QWidget* widget, int activeIndex )
|
WhatsNewWidget_0_8::activateAnchor( QWidget* /* widget */ )
|
||||||
{
|
{
|
||||||
deactivateAllBoxes();
|
//FIXME
|
||||||
|
|
||||||
/* widget->layout()->setContentsMargins( 8, 8, 8, 16 );
|
|
||||||
widget->setStyleSheet( activeWidgetThumbStylesheet );
|
|
||||||
|
|
||||||
ui->stackedWidget->setCurrentIndex( activeIndex );*/
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
WhatsNewWidget_0_8::deactivateBox( QWidget* widget )
|
|
||||||
{
|
|
||||||
/* widget->layout()->setContentsMargins( 8, 8, 8, 8 );
|
|
||||||
widget->setStyleSheet( inactiveWidgetThumbStylesheet );*/
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
WhatsNewWidget_0_8::deactivateAllBoxes()
|
|
||||||
{
|
|
||||||
/* deactivateBox( ui->inboxBox );
|
|
||||||
deactivateBox( ui->urlLookupBox );
|
|
||||||
deactivateBox( ui->trendingBox );
|
|
||||||
deactivateBox( ui->beatsBox );
|
|
||||||
deactivateBox( ui->gmusicBox );
|
|
||||||
deactivateBox( ui->networkingBox );
|
|
||||||
deactivateBox( ui->designBox );
|
|
||||||
deactivateBox( ui->androidBox );*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -63,9 +63,7 @@ private slots:
|
|||||||
void androidBoxClicked();
|
void androidBoxClicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void activateBox( QWidget* widget, int activeIndex );
|
void activateAnchor( QWidget* widget );
|
||||||
void deactivateBox( QWidget* widget );
|
|
||||||
void deactivateAllBoxes();
|
|
||||||
|
|
||||||
Ui::WhatsNewWidget_0_8 *ui;
|
Ui::WhatsNewWidget_0_8 *ui;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user