aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/column_editor_frame.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-11-08 21:10:42 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2017-11-09 07:35:48 +0000
commit25c5d830c95872630ca87d21a3d9e3a7e084e0db (patch)
treeff6b2a5ec7d74b70e3e30136be6203f618f0002e /ui/qt/column_editor_frame.cpp
parent35a1907fe6a5f7d630223ba38adabc28eeeed971 (diff)
Qt: Give focus to Title in ColumnEditorFrame
Select the title text and give focus to the title when Edit Column. Bug: 14191 Change-Id: I04fc5f6bcc830a15ef43fa2d06a1a729df52e370 Reviewed-on: https://code.wireshark.org/review/24305 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/column_editor_frame.cpp')
-rw-r--r--ui/qt/column_editor_frame.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/qt/column_editor_frame.cpp b/ui/qt/column_editor_frame.cpp
index 307b643bc4..72dcf8116d 100644
--- a/ui/qt/column_editor_frame.cpp
+++ b/ui/qt/column_editor_frame.cpp
@@ -99,6 +99,14 @@ void ColumnEditorFrame::editColumn(int column)
setFields(ui->typeComboBox->currentIndex());
}
+void ColumnEditorFrame::showEvent(QShowEvent *event)
+{
+ ui->titleLineEdit->setFocus();
+ ui->titleLineEdit->selectAll();
+
+ AccordionFrame::showEvent(event);
+}
+
void ColumnEditorFrame::on_typeComboBox_activated(int index)
{
setFields(index);