add new icon button example with larger icon
This commit is contained in:
parent
8e102716a9
commit
e8989de074
|
@ -24,6 +24,24 @@ IconButtonExamples::IconButtonExamples(QWidget *parent)
|
||||||
|
|
||||||
iconButton->setMinimumSize(50, 50);
|
iconButton->setMinimumSize(50, 50);
|
||||||
|
|
||||||
|
layout->addWidget(frame);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
IconButton *iconButton = new IconButton(QIcon("../qt-material-widgets/face.svg"));
|
||||||
|
iconButton->setIconSize(QSize(64, 64));
|
||||||
|
|
||||||
|
ExampleView *view = new ExampleView;
|
||||||
|
view->setWidget(iconButton);
|
||||||
|
|
||||||
|
Frame *frame = new Frame;
|
||||||
|
frame->setCodeSnippet(
|
||||||
|
"IconButton *iconButton = new IconButton(QIcon(\"face.svg\"));\n"
|
||||||
|
"iconButton->setIconSize(QSize(64, 64));\n"
|
||||||
|
);
|
||||||
|
frame->setWidget(view);
|
||||||
|
|
||||||
|
iconButton->setMinimumSize(50, 50);
|
||||||
|
|
||||||
layout->addWidget(frame);
|
layout->addWidget(frame);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue