Bug 19311

Summary: Go to Line control
Product: [Applications] kedit Reporter: peter
Component: generalAssignee: Bernd Wuebben <wuebben>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 1.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description peter 2001-01-28 22:24:34 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: kedit
Version: 1.3 (KDE 2.1 Beta 2)
Severity: normal
Compiler: gcc version 2.95.3 19991030 (prerelease)
OS: Linux 2.2.17-21mdk-02 i686 (Mandrake_7_2)

When this control is selected the value should be highlighted so you can
type in a value overwriting the default "1".  You're not going to use the 
spinner for a line number 1500.
Comment 1 Waldo Bastian 2003-04-20 23:15:13 UTC
Subject: kdelibs/kdeui

CVS commit by waba: 

CCMAIL: 19311-done@bugs.kde.org
Give focus to spinbox in "go to line" dialog. (BR19311)


  M +4 -3      keditcl2.cpp   1.52


--- kdelibs/kdeui/keditcl2.cpp  #1.51:1.52
@@ -139,5 +139,5 @@ void KEdit::searchdone_slot(){
 
   srchdialog->hide();
-  this->setFocus();
+  setFocus();
   last_search = NONE;
 
@@ -233,5 +233,5 @@ bool KEdit::repeatSearch() {
   search_slot();
 
-  this->setFocus();
+  setFocus();
   return true;
 
@@ -493,5 +493,5 @@ void KEdit::replacedone_slot(){
   //  replace_dialog->clearFocus();
 
-  this->setFocus();
+  setFocus();
 
   last_replace = NONE;
@@ -982,4 +982,5 @@ KEdGotoLine::KEdGotoLine( QWidget *paren
 
   topLayout->addStretch(10);
+  lineNum->setFocus();
 }