74 QIcon
iconForState(
int state,
const QSize& iconSize,
const QPalette& palette)
const;
77 std::string buttonName;
119 const std::vector<std::string>& bicons,
120 bool vertical =
true,
121 QWidget* parent =
nullptr);
176 void refresh_icons();
180 void showEvent(QShowEvent* event)
override;
189 std::vector<ButtonInfo*> buttons;
202 void buttonWasPressed(QListWidgetItem* item);
234 const std::vector<std::string>& titles,
235 bool vertical =
true,
236 QWidget* parent =
nullptr);
293 void setSvgButtonIcon(
int index,
const QString& svgResourcePath,
const QSize& iconSize = QSize());
305 void showEvent(QShowEvent* event)
override;
308 struct SvgIcon { QString path; QSize size; };
310 int buttonPressedIndex;
311 QVector<QPushButton*> buttons;
312 QVector<SvgIcon> svgIcons;
314 void refresh_svg_icons();
322 void setButtonPressed(
int index);