mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Hook up the jump/find bars
This commit is contained in:
@@ -47,6 +47,10 @@ EventBrowser::EventBrowser(Core *core, QWidget *parent) :
|
||||
// becomes quickly infuriating to rearrange, just disable until that can be fixed.
|
||||
ui->events->header()->setSectionsMovable(false);
|
||||
|
||||
QObject::connect(ui->closeFind, &QToolButton::clicked, this, &EventBrowser::hideFindJump);
|
||||
QObject::connect(ui->closeJump, &QToolButton::clicked, this, &EventBrowser::hideFindJump);
|
||||
QObject::connect(ui->jumpToEID, &LineEditFocusWidget::leave, this, &EventBrowser::hideFindJump);
|
||||
QObject::connect(ui->findEvent, &LineEditFocusWidget::leave, this, &EventBrowser::hideFindJump);
|
||||
ui->jumpStrip->hide();
|
||||
ui->findStrip->hide();
|
||||
ui->bookmarkStrip->hide();
|
||||
@@ -88,6 +92,7 @@ void EventBrowser::on_find_clicked()
|
||||
ui->jumpStrip->hide();
|
||||
ui->findStrip->show();
|
||||
ui->bookmarkStrip->hide();
|
||||
ui->findEvent->setFocus();
|
||||
}
|
||||
|
||||
void EventBrowser::on_gotoEID_clicked()
|
||||
@@ -95,6 +100,7 @@ void EventBrowser::on_gotoEID_clicked()
|
||||
ui->jumpStrip->show();
|
||||
ui->findStrip->hide();
|
||||
ui->bookmarkStrip->hide();
|
||||
ui->jumpToEID->setFocus();
|
||||
}
|
||||
|
||||
void EventBrowser::on_toolButton_clicked()
|
||||
@@ -168,3 +174,24 @@ void EventBrowser::on_events_itemSelectionChanged()
|
||||
|
||||
m_Core->SetEventID(this, 0, EID);
|
||||
}
|
||||
|
||||
void EventBrowser::hideFindJump()
|
||||
{
|
||||
ui->jumpStrip->hide();
|
||||
ui->findStrip->hide();
|
||||
}
|
||||
|
||||
void EventBrowser::on_jumpToEID_returnPressed()
|
||||
{
|
||||
bool ok = false;
|
||||
uint eid = ui->findEvent->text().toUInt(&ok);
|
||||
if(ok)
|
||||
{
|
||||
//SelectEvent(0, eid);
|
||||
}
|
||||
}
|
||||
|
||||
void EventBrowser::on_findEvent_returnPressed()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user