From 15cdc8f910d0e2ad0ecb7b5646f459b38979430d Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 3 Jul 2011 17:04:49 +0200 Subject: [PATCH] * Let's start doxygen-ing new classes. --- src/libtomahawk/playlist/infobar/infobar.cpp | 2 +- .../widgets/infowidgets/ArtistInfoWidget.h | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/playlist/infobar/infobar.cpp b/src/libtomahawk/playlist/infobar/infobar.cpp index f90953df1..8edc51b20 100644 --- a/src/libtomahawk/playlist/infobar/infobar.cpp +++ b/src/libtomahawk/playlist/infobar/infobar.cpp @@ -57,7 +57,7 @@ InfoBar::InfoBar( QWidget* parent ) ui->captionLabel->setMargin( 6 ); ui->descriptionLabel->setMargin( 6 ); - ui->longDescriptionLabel->setMargin( 6 ); + ui->longDescriptionLabel->setMargin( 4 ); ui->captionLabel->setText( QString() ); ui->descriptionLabel->setText( QString() ); diff --git a/src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.h b/src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.h index 31dc8dc03..824c69f8b 100644 --- a/src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.h +++ b/src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.h @@ -16,6 +16,16 @@ * along with Tomahawk. If not, see . */ +/** + * \class ArtistInfoWidget + * \brief A ViewPage class, which displays top-hits, related artists and albums. + * + * This Tomahawk ViewPage displays top-hits, related artists and known albums + * for any given artist. It is our default ViewPage when showing an artist + * via ViewManager. + * + */ + #ifndef ARTISTINFOWIDGET_H #define ARTISTINFOWIDGET_H @@ -45,6 +55,14 @@ public: ArtistInfoWidget( const Tomahawk::artist_ptr& artist, QWidget* parent = 0 ); ~ArtistInfoWidget(); + /** \brief Load information for a given artist. + * \param artist The artist that you want to load information for. + * + * Calling this method will make ArtistInfoWidget load information about + * an artist's top hits, related artists and all available albums. It is + * automatically called by the constructor, but you can use it to load + * another artist's information at any point. + */ void load( const Tomahawk::artist_ptr& artist ); virtual QWidget* widget() { return this; }