mirror of
https://github.com/gamecreature/QtAwesome.git
synced 2024-12-26 00:21:33 +08:00
Fixed #3, options weren't passed in readme example
This commit is contained in:
parent
139d249f30
commit
34ca5976c1
@ -56,7 +56,7 @@ QPushButton* coffeeButton new QPushButton( awesome->icon( "coffee" ), "Black ple
|
||||
|
||||
QVariantMap options;
|
||||
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.
|
||||
// for example if you always would like to have green icons you could call)
|
||||
|
Loading…
Reference in New Issue
Block a user