mirror of
https://github.com/gamecreature/QtAwesome.git
synced 2025-12-17 20:24:35 +03:00
Fixed #3, options weren't passed in readme example
This commit is contained in:
@@ -56,7 +56,7 @@ QPushButton* coffeeButton new QPushButton( awesome->icon( "coffee" ), "Black ple
|
|||||||
|
|
||||||
QVariantMap options;
|
QVariantMap options;
|
||||||
options.insert( "color" , QColor(255,0,0) );
|
options.insert( "color" , QColor(255,0,0) );
|
||||||
QPushButton* musicButton = new QPushButton( awesome->icon( icon_music ), "Music" );
|
QPushButton* musicButton = new QPushButton( awesome->icon( icon_music, options ), "Music" );
|
||||||
|
|
||||||
// You can also change the default options.
|
// You can also change the default options.
|
||||||
// for example if you always would like to have green icons you could call)
|
// for example if you always would like to have green icons you could call)
|
||||||
|
|||||||
Reference in New Issue
Block a user