Commit 00e83156 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Fixed selections in wb

parent 70ccdb2e
......@@ -103,9 +103,6 @@ void NavQtTraceObject::sel_convert_cb()
clientConnection->write(block);
clientConnection->flush();
clientConnection->disconnectFromServer();
brow_SelectClear(nav->brow_ctx);
nav->selection_owner = 0;
}
void NavQt::set_selection_owner(int set)
......@@ -131,5 +128,7 @@ void NavQt::set_inputfocus(int focus)
modifyBackground(form_widget, QColor("Black"));
} else {
modifyBackground(form_widget, QColor("White"));
brow_SelectClear(brow_ctx);
selection_owner = 0;
}
}
\ No newline at end of file
}
......@@ -101,6 +101,8 @@ void PalQt::set_inputfocus(int focus)
brow_widget->setFocus();
} else {
modifyBackground(form_widget, QColor("White"));
brow_SetInverseColor(brow_ctx, flow_eDrawType_LineGray);
selection_owner = 0;
}
}
......@@ -145,8 +147,4 @@ void PalQtTraceObject::sel_convert_cb()
clientConnection->write(block);
clientConnection->flush();
clientConnection->disconnectFromServer();
// brow_SelectClear(brow_ctx);
brow_SetInverseColor(pal->brow_ctx, flow_eDrawType_LineGray);
pal->selection_owner = 0;
}
\ No newline at end of file
}
......@@ -155,6 +155,8 @@ void WNavQt::set_inputfocus(int focus)
brow_widget->setFocus();
} else {
modifyBackground(form_widget, QColor("White"));
brow_SelectClear(brow->ctx);
selection_owner = 0;
}
}
......@@ -278,9 +280,6 @@ static void selection_data_set(
clientConnection->write(block);
clientConnection->flush();
clientConnection->disconnectFromServer();
brow_SelectClear(wnav->brow->ctx);
wnav->selection_owner = 0;
}
void WNavQtTraceObject::sel_convert_cb()
......@@ -487,4 +486,4 @@ int WNavQt::prompt_dialog(char* title, char* text, char** value)
strcpy(*value, "");
}
return ok;
}
\ No newline at end of file
}
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