Commit 6bdf87bb authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

QT: CTRL+E in the PLC editor now toggles between view/edit mode instead of only setting edit mode.

parent d655002a
...@@ -464,9 +464,12 @@ void WFoeQtWidget::activate_edit_togg() ...@@ -464,9 +464,12 @@ void WFoeQtWidget::activate_edit_togg()
{ {
if (sender() != foe->edit_togg) { if (sender() != foe->edit_togg) {
foe->edit_togg->setChecked(true); foe->edit_togg->setChecked(true);
foe->edit_was_checked = true;
} else {
foe->edit_was_checked = !foe->edit_was_checked;
} }
foe->activate_edit_togg(true); foe->activate_edit_togg(foe->edit_was_checked);
} }
void WFoeQtWidget::valchanged_textinput() void WFoeQtWidget::valchanged_textinput()
......
...@@ -113,6 +113,7 @@ public: ...@@ -113,6 +113,7 @@ public:
QAction* select_cp_nextup; QAction* select_cp_nextup;
QAction* select_cp_nextdown; QAction* select_cp_nextdown;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
bool edit_was_checked = false;
WFoeQt(void* f_parent_ctx, const char* f_name, pwr_tObjid plcprogram, WFoeQt(void* f_parent_ctx, const char* f_name, pwr_tObjid plcprogram,
ldh_tWBContext ldhwbctx, ldh_tSesContext ldhsesctx, int f_map_window, ldh_tWBContext ldhwbctx, ldh_tSesContext ldhsesctx, int f_map_window,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment