[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    kdialog word wrapping
From:       Brad Hards <bhards () bigpond ! net ! au>
Date:       2003-08-19 11:37:35
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Currently, kdialog --textbox <filename> will wrap words.

Sometimes it might be better to just have it scroll sideways. It looks better 
in some cases, and worse in others (eg a autoconf generated Makefile). The 
patch to implement is trivial, but I'm not sure if this really the "least 
surprise" functionality. Equally, I don't want to have an option - kdialog 
should have as few as absolutely possible.

What does the community think?

Brad


diff -u -3 -p -r1.4 widgets.cpp
- --- kdialog/widgets.cpp 8 Jun 2003 14:30:28 -0000       1.4
+++ kdialog/widgets.cpp 19 Aug 2003 11:25:57 -0000
@@ -72,6 +72,9 @@ int Widgets::textBox(QWidget *parent, in
   while (!s.eof())
     edit->append(s.readLine());

+  edit->setWordWrap( QTextEdit::NoWrap );
+
   f.close();

   if ( width > 0 && height > 0 )
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/Qgv/W6pHgIdAuOMRAs57AKCKPLD/y2UPmJHFy/CzB+o8KjGC+QCgjIIG
R6n/GyVF2U4bqhzvais7OE0=
=RNva
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic