From f00dd5f837b4ebd88e58515cb6da3345610acbcc Mon Sep 17 00:00:00 2001 From: Listening <120311070@qq.com> Date: Tue, 20 Sep 2022 09:58:29 +0800 Subject: [PATCH] fixed:some omissions --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8f892b9..b64a3de 100644 --- a/README.md +++ b/README.md @@ -65,10 +65,10 @@ QtAwesome* awesome = new QtAwesome( qApp ); awesome->initFontAwesome(); // Next create your icon with the help of the icon-enumeration (no dashes): -QPushButton* beerButton new QPushButton( awesome->icon( fa::beer ), "Cheers!" ); +QPushButton* beerButton = new QPushButton( awesome->icon( fa::beer ), "Cheers!" ); // You can also use 'string' names to access the icons. (The string version omits the 'fa-' or 'icon-' prefix and has no dashes ) -QPushButton* coffeeButton new QPushButton( awesome->icon( "coffee" ), "Black please!" ); +QPushButton* coffeeButton = new QPushButton( awesome->icon( "coffee" ), "Black please!" ); // When you create an icon you can supply some options for your icons: // The available options can be found at the "Default options"-section