Bug 62958

Summary: kdialog --textbox should display first lane, not last line
Product: [Applications] kdialog Reporter: Brad Hards <bhards>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: patch to set scroll to top

Description Brad Hards 2003-08-19 12:55:40 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

When a long file is displayed using --textbox, the dialog should show the first line of the file, rather than the last line. [Alternative explaination - the vertical scroll bar should be at the top, rather than at the bottom.
Comment 1 Brad Hards 2003-08-19 12:59:13 UTC
Created attachment 2277 [details]
patch to set scroll to top

OK, so its not much of a patch...
Comment 2 David Faure 2003-08-19 13:30:32 UTC
Subject: KDE_3_1_BRANCH: kdebase/kdialog

CVS commit by faure: 

"kdialog --textbox should display first line, not last line"
Fine with me.
CCMAIL: 62958-done@bugs.kde.org


  M +2 -0      widgets.cpp   1.1.1.1.2.1


--- kdebase/kdialog/widgets.cpp  #1.1.1.1:1.1.1.1.2.1
@@ -73,4 +73,6 @@ int Widgets::textBox(QWidget *parent, in
     edit->append(s.readLine());
 
+  edit->moveCursor(QTextEdit::MoveHome, false);
+
   f.close();