mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 16:40:42 +08:00
Fixed opening search bar for Assembly view.
This commit is contained in:
@@ -1348,16 +1348,30 @@ void SeerEditorManagerWidget::handleFileCloseToolButtonClicked () {
|
||||
|
||||
void SeerEditorManagerWidget::handleTextSearchToolButtonClicked () {
|
||||
|
||||
SeerEditorWidgetSource* w = currentEditorWidgetTab();
|
||||
QWidget* tab = tabWidget->currentWidget();
|
||||
|
||||
SeerEditorWidgetSource* sourcew = dynamic_cast<SeerEditorWidgetSource*>(tab);
|
||||
if (sourcew != 0) {
|
||||
|
||||
if (sourcew->isSearchBarShown() == true) {
|
||||
sourcew->showSearchBar(false);
|
||||
}else{
|
||||
sourcew->showSearchBar(true);
|
||||
}
|
||||
|
||||
if (w == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (w->isSearchBarShown() == true) {
|
||||
w->showSearchBar(false);
|
||||
}else{
|
||||
w->showSearchBar(true);
|
||||
SeerEditorWidgetAssembly* assemblyw = dynamic_cast<SeerEditorWidgetAssembly*>(tab);
|
||||
if (assemblyw != 0) {
|
||||
|
||||
if (assemblyw->isSearchBarShown() == true) {
|
||||
assemblyw->showSearchBar(false);
|
||||
}else{
|
||||
assemblyw->showSearchBar(true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user