Bug 62958 - kdialog --textbox should display first lane, not last line
Summary: kdialog --textbox should display first lane, not last line
Status: RESOLVED FIXED
Alias: None
Product: kdialog
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-19 12:55 UTC by Brad Hards
Modified: 2003-08-19 13:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch to set scroll to top (521 bytes, patch)
2003-08-19 12:59 UTC, Brad Hards
Details

Note You need to log in before you can comment on or make changes to this bug.
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();