fix missing QIcon constructor call
This commit is contained in:
parent
5fc481e1e4
commit
cb7a2812b1
|
@ -1,6 +1,6 @@
|
|||
#include <QLayout>
|
||||
#include "iconbuttonexamples.h"
|
||||
#include "components/flatbutton.h"
|
||||
#include "components/iconbutton.h"
|
||||
#include "exampleview.h"
|
||||
#include "frame.h"
|
||||
|
||||
|
@ -10,14 +10,14 @@ IconButtonExamples::IconButtonExamples(QWidget *parent)
|
|||
QLayout *layout = widget()->layout();
|
||||
|
||||
{
|
||||
IconButton *iconButton = new IconButton("../qt-material-widgets/face.svg");
|
||||
IconButton *iconButton = new IconButton(QIcon("../qt-material-widgets/face.svg"));
|
||||
|
||||
ExampleView *view = new ExampleView;
|
||||
view->scene()->addWidget(iconButton);
|
||||
|
||||
Frame *frame = new Frame;
|
||||
frame->setCodeSnippet(
|
||||
"IconButton *iconButton = new IconButton(\"face.svg\");\n"
|
||||
"IconButton *iconButton = new IconButton(QIcon(\"face.svg\"));\n"
|
||||
);
|
||||
frame->setWidget(view);
|
||||
|
||||
|
|
Loading…
Reference in New Issue