Skip to content

Commit

Permalink
Merge pull request #283 from epasveer/282-breakpoint-dialogs-should-s…
Browse files Browse the repository at this point in the history
…et-focus-on-first-gui-item

Set focus to first ui widget.
  • Loading branch information
epasveer authored Jan 1, 2025
2 parents dee5c24 + 70f8744 commit 8a19759
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/SeerBreakpointCreateDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ SeerBreakpointCreateDialog::SeerBreakpointCreateDialog (QWidget* parent) : QDial
setIgnoreCountText ("");
setThreadIdText ("");

filenameLineEdit->setFocus();

// Connect things.
QObject::connect(conditionalCheckBox, &QCheckBox::clicked, conditionalLineEdit, &QLineEdit::setEnabled);
QObject::connect(ignoreCountCheckBox, &QCheckBox::clicked, ignoreCountLineEdit, &QLineEdit::setEnabled);
Expand Down
2 changes: 2 additions & 0 deletions src/SeerCatchpointCreateDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ SeerCatchpointCreateDialog::SeerCatchpointCreateDialog (QWidget* parent) : QDial
setTemporaryEnabled(false);
setDisabledEnabled(false);

throwRadioButton->setFocus();

// Connect things.
}

Expand Down
17 changes: 15 additions & 2 deletions src/SeerCatchpointCreateDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>537</width>
<height>297</height>
<width>538</width>
<height>302</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -178,6 +178,19 @@
</item>
</layout>
</widget>
<tabstops>
<tabstop>throwRadioButton</tabstop>
<tabstop>loadRadioButton</tabstop>
<tabstop>adaAssertRadioButton</tabstop>
<tabstop>rethrowRadioButton</tabstop>
<tabstop>unloadRadioButton</tabstop>
<tabstop>adaExceptionRadioButton</tabstop>
<tabstop>catchRadioButton</tabstop>
<tabstop>adaHandlersRadioButton</tabstop>
<tabstop>temporaryCheckBox</tabstop>
<tabstop>disabledCheckBox</tabstop>
<tabstop>nameLineEdit</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
Expand Down
2 changes: 2 additions & 0 deletions src/SeerPrintpointCreateDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ SeerPrintpointCreateDialog::SeerPrintpointCreateDialog (QWidget* parent) : QDial
setDPrintfFunction ("");
setDPrintfChannel ("");

filenameLineEdit->setFocus();

// Connect things.
QObject::connect(conditionalCheckBox, &QCheckBox::clicked, conditionalLineEdit, &QLineEdit::setEnabled);
QObject::connect(ignoreCountCheckBox, &QCheckBox::clicked, ignoreCountLineEdit, &QLineEdit::setEnabled);
Expand Down
2 changes: 2 additions & 0 deletions src/SeerWatchpointCreateDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ SeerWatchpointCreateDialog::SeerWatchpointCreateDialog (QWidget* parent) : QDial
setReadWriteAccessEnabled(false);
setWriteAccessEnabled(true);

expressionLineEdit->setFocus();

// Connect things.
}

Expand Down
6 changes: 3 additions & 3 deletions src/SeerWatchpointCreateDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>348</width>
<height>251</height>
<width>403</width>
<height>256</height>
</rect>
</property>
<property name="windowTitle">
Expand All @@ -29,7 +29,7 @@
</sizepolicy>
</property>
<property name="text">
<string>Expression</string>
<string>Variable/Expression</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit 8a19759

Please sign in to comment.