mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-16 09:09:26 +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:
1 parent
e2f3426dc6
commit
e630515813
4 files changed
+53
-6
No files matched your search
@@ -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