mirror of
https://github.com/gamecreature/QtAwesome.git
synced 2025-12-18 20:54:36 +03:00
Fixed an error in defaultOption getter. (Duh!)
And fixed the beer icon again for cheers
This commit is contained in:
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user