Methods to manipulate QPushButton
◆ CreatePushButton()
| static GO2SEnum::GO2SError GO2SDialogUtil::CreatePushButton |
( |
String | name, |
|
|
String | text = "Button", |
|
|
String | icon = "" ) |
|
static |
Create a QPushButton
Helper containing utility methods for dialog.
Definition GO2SDialogUtil.hpp:13
static GO2SEnum::GO2SError CreatePushButton(String name, String text="Button", String icon="")
- Returns
- GO2SError.success if ok
- Parameters
-
| [in] | name | button name |
| [in] | text | text of the button |
| [in] | icon | icon path for the button |
◆ SetIconButton()
| static void GO2SDialogUtil::SetIconButton |
( |
String | name, |
|
|
String | icon ) |
|
static |
Set icon of button icon
- Parameters
-
| [in] | name | button name |
| [in] | icon | icon path for the button |
◆ SetTextButton()
| static void GO2SDialogUtil::SetTextButton |
( |
String | name, |
|
|
String | text ) |
|
static |
Set the text of a button
- Parameters
-
| [in] | name | the name of the button in the .ui file |
| [in] | text | button text |