SketcherToolDefaultWidget : add functions to set combobox item icons and checkboxes icons.
This commit is contained in:
@@ -714,6 +714,20 @@ void SketcherToolDefaultWidget::restoreCheckBoxPref(int checkboxindex)
|
||||
}
|
||||
}
|
||||
|
||||
void SketcherToolDefaultWidget::setCheckboxIcon(int checkboxindex, QIcon icon)
|
||||
{
|
||||
if (checkboxindex < nCheckbox) {
|
||||
getCheckBox(checkboxindex)->setIcon(icon);
|
||||
}
|
||||
}
|
||||
|
||||
void SketcherToolDefaultWidget::setComboboxItemIcon(int comboboxindex, int index, QIcon icon)
|
||||
{
|
||||
if (comboboxindex < nCombobox) {
|
||||
getComboBox(comboboxindex)->setItemIcon(index, icon);
|
||||
}
|
||||
}
|
||||
|
||||
void SketcherToolDefaultWidget::setComboboxPrefEntry(int comboboxindex,
|
||||
const std::string& prefEntry)
|
||||
{
|
||||
|
||||
@@ -172,6 +172,7 @@ public:
|
||||
void setCheckboxToolTip(int checkboxindex, const QString& string);
|
||||
bool getCheckboxChecked(int checkboxindex);
|
||||
void setCheckboxPrefEntry(int checkboxindex, const std::string& prefEntry);
|
||||
void setCheckboxIcon(int checkboxindex, QIcon icon);
|
||||
void restoreCheckBoxPref(int checkboxindex);
|
||||
|
||||
void initNComboboxes(int ncombobox);
|
||||
@@ -180,6 +181,7 @@ public:
|
||||
void setComboboxLabel(int comboboxindex, const QString& string);
|
||||
int getComboboxIndex(int comboboxindex);
|
||||
void setComboboxElements(int comboboxindex, const QStringList& names);
|
||||
void setComboboxItemIcon(int comboboxindex, int index, QIcon icon);
|
||||
void setComboboxPrefEntry(int comboboxindex, const std::string& prefEntry);
|
||||
void restoreComboboxPref(int comboboxindex);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user