1
0
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:
Christian Muehlhaeuser
2014-09-01 02:24:59 +02:00
parent e866555785
commit d5edb25115
2 changed files with 5 additions and 34 deletions

View File

@@ -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 );*/
} }

View File

@@ -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;
}; };