mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-26 11:50:59 +00:00
MiniQtHelper: upgrade ComboBox widget
Added interface functions:
- GetComboBoxCount() the function returns the number of
combo box options currently set,
- SelectComboBoxOption() - selects an active combo box
option by name from the list of set options.
Updated interface functions:
- Changed SetComboOptions() to SetComboBoxOptions to keep
consistency in naming.
This commit is contained in:
committed by
Baldur Karlsson
parent
e2f3426dc6
commit
e630515813
@@ -298,9 +298,19 @@ struct MiniQtInvoker : ObjectForwarder<IMiniQtHelper>
|
||||
return InvokeRetFunction<QWidget *>(&IMiniQtHelper::CreateComboBox, editable, changed);
|
||||
}
|
||||
|
||||
void SetComboOptions(QWidget *combo, const rdcarray<rdcstr> &options)
|
||||
void SetComboBoxOptions(QWidget *combo, const rdcarray<rdcstr> &options)
|
||||
{
|
||||
InvokeVoidFunction(&IMiniQtHelper::SetComboOptions, combo, options);
|
||||
InvokeVoidFunction(&IMiniQtHelper::SetComboBoxOptions, combo, options);
|
||||
}
|
||||
|
||||
size_t GetComboBoxCount(QWidget *combo)
|
||||
{
|
||||
return InvokeRetFunction<size_t>(&IMiniQtHelper::GetComboBoxCount, combo);
|
||||
}
|
||||
|
||||
void SelectComboBoxOption(QWidget *combo, const rdcstr &option)
|
||||
{
|
||||
InvokeVoidFunction(&IMiniQtHelper::SelectComboBoxOption, combo, option);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user