Fixed an error in defaultOption getter. (Duh!)

And fixed the beer icon again for cheers
This commit is contained in:
Rick Blommers
2013-06-16 19:17:01 +02:00
parent 70e136c071
commit 9075414590
2 changed files with 2 additions and 2 deletions

View File

@@ -612,7 +612,7 @@ void QtAwesome::setDefaultOption(const QString& name, const QVariant& value)
/// Returns the default option for the given name /// Returns the default option for the given name
QVariant QtAwesome::defaultOption(const QString& name) QVariant QtAwesome::defaultOption(const QString& name)
{ {
return defaultOption( name ); return defaultOptions_.value( name );
} }

View File

@@ -18,7 +18,7 @@ int main(int argc, char *argv[])
awesome->initFontAwesome(); awesome->initFontAwesome();
// a simple beer button // a simple beer button
QPushButton* beerButton = new QPushButton( awesome->icon( icon_sun ), "Cheers!" ); QPushButton* beerButton = new QPushButton( awesome->icon( icon_beer ), "Cheers!" );
w.setCentralWidget( beerButton ); w.setCentralWidget( beerButton );
w.show(); w.show();