mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
DolphinQt: Set default focus for NewBreakpointDialog
I found it a little bit annoying that you can't start typing the desired address immediately after opening the window. Also getting rid of the window's ? button while I'm at it.
This commit is contained in:
parent
bfbbed8308
commit
6c908f8ddb
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
NewBreakpointDialog::NewBreakpointDialog(BreakpointWidget* parent)
|
NewBreakpointDialog::NewBreakpointDialog(BreakpointWidget* parent)
|
||||||
: QDialog(parent), m_parent(parent)
|
: QDialog(parent), m_parent(parent)
|
||||||
{
|
{
|
||||||
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||||
setWindowTitle(tr("New Breakpoint"));
|
setWindowTitle(tr("New Breakpoint"));
|
||||||
CreateWidgets();
|
CreateWidgets();
|
||||||
ConnectWidgets();
|
ConnectWidgets();
|
||||||
|
@ -102,6 +103,8 @@ void NewBreakpointDialog::CreateWidgets()
|
||||||
layout->addWidget(m_buttons);
|
layout->addWidget(m_buttons);
|
||||||
|
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
||||||
|
m_instruction_address->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void NewBreakpointDialog::ConnectWidgets()
|
void NewBreakpointDialog::ConnectWidgets()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue