Methods to manipulate QComboBox
◆ AddItemCombo()
static void GO2SDialogUtil::AddItemCombo |
( |
String | name, |
|
|
String | text, |
|
|
String | icon = "" ) |
|
static |
Set image for combo item
- Parameters
-
[in] | name | the name of the combobox |
[in] | text | text of the label |
[in] | icon | path of the icon |
◆ ClearCombo()
static void GO2SDialogUtil::ClearCombo |
( |
String | name | ) |
|
|
static |
Clear combo box
- Parameters
-
[in] | name | the name of the combobox |
◆ GetComboData()
static Array< String > GO2SDialogUtil::GetComboData |
( |
String | name | ) |
|
|
static |
Get all the item text of a QComboBox item
- Parameters
-
[in] | name | the name of the QComboBox in the .ui file |
◆ GetComboIndex()
static Number GO2SDialogUtil::GetComboIndex |
( |
String | name | ) |
|
|
static |
Get the index of the selected QComboBox item (starts at 0)
- Parameters
-
[in] | name | the name of the QComboBox in the .ui file |
◆ GetComboText()
static String GO2SDialogUtil::GetComboText |
( |
String | name | ) |
|
|
static |
Get the text of the selected QComboBox item
- Parameters
-
[in] | name | the name of the QComboBox in the .ui file |
◆ RemoveItemCombo()
static void GO2SDialogUtil::RemoveItemCombo |
( |
String | name, |
|
|
Number | index ) |
|
static |
Remove item from combo box
- Parameters
-
[in] | name | the name of the combobox |
[in] | index | index of the item to delete |
◆ SetComboIndex()
static void GO2SDialogUtil::SetComboIndex |
( |
String | name, |
|
|
Number | index ) |
|
static |
Set the selected item in a QComboBox item
- Parameters
-
[in] | name | the name of the QComboBox in the .ui file |
[in] | index | item index (starts at 0) |
◆ SetComboText()
static void GO2SDialogUtil::SetComboText |
( |
String | name, |
|
|
String | item ) |
|
static |
Set the selected item in a QComboBox item
- Parameters
-
[in] | name | the name of the QComboBox in the .ui file |
[in] | item | item name (must already exist in the combo list) |