mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't allow filter strip to be hidden
* This help prevents possible confusion if someone hides the filter with some exclusions active and gets confused why things aren't showing up.
This commit is contained in:
@@ -3248,7 +3248,6 @@ EventBrowser::EventBrowser(ICaptureContext &ctx, QWidget *parent)
|
||||
QObject::connect(ui->events->selectionModel(), &QItemSelectionModel::currentChanged, this,
|
||||
&EventBrowser::events_currentChanged);
|
||||
on_find_toggled(false);
|
||||
on_filter_toggled(false);
|
||||
ui->bookmarkStrip->hide();
|
||||
|
||||
m_BookmarkStripLayout = new FlowLayout(ui->bookmarkStrip, 0, 3, 3);
|
||||
@@ -3485,13 +3484,6 @@ void EventBrowser::on_find_toggled(bool checked)
|
||||
ui->findEvent->setFocus();
|
||||
}
|
||||
|
||||
void EventBrowser::on_filter_toggled(bool checked)
|
||||
{
|
||||
ui->filterStrip->setVisible(checked);
|
||||
if(checked)
|
||||
ui->filterExpression->setFocus();
|
||||
}
|
||||
|
||||
void EventBrowser::on_bookmark_clicked()
|
||||
{
|
||||
QModelIndex idx = ui->events->currentIndex();
|
||||
@@ -4754,7 +4746,6 @@ QVariant EventBrowser::persistData()
|
||||
ui->events->header()->setStretchLastSection(true);
|
||||
|
||||
state[lit("columns")] = columns;
|
||||
state[lit("filterVisible")] = ui->filter->isChecked();
|
||||
|
||||
return state;
|
||||
}
|
||||
@@ -4780,8 +4771,6 @@ void EventBrowser::setPersistData(const QVariant &persistData)
|
||||
else
|
||||
ui->events->header()->showSection(i);
|
||||
}
|
||||
|
||||
ui->filter->setChecked(state[lit("filterVisible")].toBool());
|
||||
}
|
||||
|
||||
void EventBrowser::events_keyPress(QKeyEvent *event)
|
||||
@@ -4806,11 +4795,6 @@ void EventBrowser::events_keyPress(QKeyEvent *event)
|
||||
on_find_toggled(true);
|
||||
event->accept();
|
||||
}
|
||||
else if(event->key() == Qt::Key_L)
|
||||
{
|
||||
on_filter_toggled(true);
|
||||
event->accept();
|
||||
}
|
||||
else if(event->key() == Qt::Key_B)
|
||||
{
|
||||
on_bookmark_clicked();
|
||||
|
||||
Reference in New Issue
Block a user