From 70f874440961aa5bb95e72b7c94dd9e563e58b31 Mon Sep 17 00:00:00 2001 From: Ernie Pasveer Date: Wed, 1 Jan 2025 10:17:46 -0600 Subject: [PATCH] Set focus to first ui widget. --- src/SeerBreakpointCreateDialog.cpp | 2 ++ src/SeerCatchpointCreateDialog.cpp | 2 ++ src/SeerCatchpointCreateDialog.ui | 17 +++++++++++++++-- src/SeerPrintpointCreateDialog.cpp | 2 ++ src/SeerWatchpointCreateDialog.cpp | 2 ++ src/SeerWatchpointCreateDialog.ui | 6 +++--- 6 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/SeerBreakpointCreateDialog.cpp b/src/SeerBreakpointCreateDialog.cpp index abc7f8fc..621a3cf5 100644 --- a/src/SeerBreakpointCreateDialog.cpp +++ b/src/SeerBreakpointCreateDialog.cpp @@ -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); diff --git a/src/SeerCatchpointCreateDialog.cpp b/src/SeerCatchpointCreateDialog.cpp index 8ab1269e..2b5fa777 100644 --- a/src/SeerCatchpointCreateDialog.cpp +++ b/src/SeerCatchpointCreateDialog.cpp @@ -13,6 +13,8 @@ SeerCatchpointCreateDialog::SeerCatchpointCreateDialog (QWidget* parent) : QDial setTemporaryEnabled(false); setDisabledEnabled(false); + throwRadioButton->setFocus(); + // Connect things. } diff --git a/src/SeerCatchpointCreateDialog.ui b/src/SeerCatchpointCreateDialog.ui index fe2f9c54..9d89f9d5 100644 --- a/src/SeerCatchpointCreateDialog.ui +++ b/src/SeerCatchpointCreateDialog.ui @@ -6,8 +6,8 @@ 0 0 - 537 - 297 + 538 + 302 @@ -178,6 +178,19 @@ + + throwRadioButton + loadRadioButton + adaAssertRadioButton + rethrowRadioButton + unloadRadioButton + adaExceptionRadioButton + catchRadioButton + adaHandlersRadioButton + temporaryCheckBox + disabledCheckBox + nameLineEdit + diff --git a/src/SeerPrintpointCreateDialog.cpp b/src/SeerPrintpointCreateDialog.cpp index ee73cf29..656f7efe 100644 --- a/src/SeerPrintpointCreateDialog.cpp +++ b/src/SeerPrintpointCreateDialog.cpp @@ -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); diff --git a/src/SeerWatchpointCreateDialog.cpp b/src/SeerWatchpointCreateDialog.cpp index a54e9c7b..2d5fa469 100644 --- a/src/SeerWatchpointCreateDialog.cpp +++ b/src/SeerWatchpointCreateDialog.cpp @@ -17,6 +17,8 @@ SeerWatchpointCreateDialog::SeerWatchpointCreateDialog (QWidget* parent) : QDial setReadWriteAccessEnabled(false); setWriteAccessEnabled(true); + expressionLineEdit->setFocus(); + // Connect things. } diff --git a/src/SeerWatchpointCreateDialog.ui b/src/SeerWatchpointCreateDialog.ui index d44b46d6..468a1713 100644 --- a/src/SeerWatchpointCreateDialog.ui +++ b/src/SeerWatchpointCreateDialog.ui @@ -6,8 +6,8 @@ 0 0 - 348 - 251 + 403 + 256 @@ -29,7 +29,7 @@ - Expression + Variable/Expression