From f40894b047531c0ee1c93ffb5551395b9aa124dc Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 7 Dec 2020 23:28:52 +0100 Subject: [PATCH] msgbox: switch setSelectedButton() to SetSelectedButton() Text color args are not required here, we use neutrino default settings for button text colors. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/3444eed35a5c5e6d49597aeceb328fe92303a8ec Author: Thilo Graf Date: 2020-12-07 (Mon, 07 Dec 2020) --- src/gui/widget/msgbox.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/widget/msgbox.cpp b/src/gui/widget/msgbox.cpp index 3966f2d39..1ab6713ad 100644 --- a/src/gui/widget/msgbox.cpp +++ b/src/gui/widget/msgbox.cpp @@ -239,13 +239,13 @@ void CMsgBox::initButtons() Refresh(); //set the 1st button as default selected button - ccw_footer->setSelectedButton(0); + ccw_footer->SetSelectedButton(0); //define default selected button from default_result if (v_buttons.size() > 1){ for (size_t i = 0; i< v_buttons.size(); i++){ if (v_buttons[i].btn_result == default_result){ - ccw_footer->setSelectedButton(i); + ccw_footer->SetSelectedButton(i); break; } } @@ -314,9 +314,9 @@ int CMsgBox::exec() else if(msg == CRCInput::RC_right || msg == CRCInput::RC_left) { if (msg == CRCInput::RC_right) - ccw_footer->setSelectedButton(selected+1); + ccw_footer->SetSelectedButton(selected+1); else - ccw_footer->setSelectedButton(selected-1); + ccw_footer->SetSelectedButton(selected-1); mb_show_button = ccw_footer->getSelectedButtonObject()->getButtonAlias(); selected = ccw_footer->getSelectedButton();