[rkward-cvs] SF.net SVN: rkward: [1325] trunk/rkward
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Mon Feb 5 12:28:59 UTC 2007
Revision: 1325
http://svn.sourceforge.net/rkward/?rev=1325&view=rev
Author: tfry
Date: 2007-02-05 04:28:59 -0800 (Mon, 05 Feb 2007)
Log Message:
-----------
Make tab change focus in single line input fields
Modified Paths:
--------------
trunk/rkward/ChangeLog
trunk/rkward/rkward/plugin/rkinput.cpp
Modified: trunk/rkward/ChangeLog
===================================================================
--- trunk/rkward/ChangeLog 2007-02-05 12:20:51 UTC (rev 1324)
+++ trunk/rkward/ChangeLog 2007-02-05 12:28:59 UTC (rev 1325)
@@ -1,3 +1,4 @@
+- pressing tab changes focus while in a single line text input field
- fix several small problems with detached windows
- fix a problem with keeping the list of objects up to date
- improvements to spinbox: step size is adjusted dynamically, and no arbitrary limits in real mode
Modified: trunk/rkward/rkward/plugin/rkinput.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkinput.cpp 2007-02-05 12:20:51 UTC (rev 1324)
+++ trunk/rkward/rkward/plugin/rkinput.cpp 2007-02-05 12:28:59 UTC (rev 1325)
@@ -51,15 +51,16 @@
int margin = textedit->height () - textedit->visibleHeight () + textedit->fontMetrics ().descent () + 2;
if (size == 0) {
textedit->setFixedSize (100, lheight + margin);
- textedit->setHScrollBarMode (QScrollView::AlwaysOff);
- textedit->setVScrollBarMode (QScrollView::AlwaysOff);
} else if (size == 1) {
textedit->setFixedSize (250, lheight + margin);
- textedit->setHScrollBarMode (QScrollView::AlwaysOff);
- textedit->setVScrollBarMode (QScrollView::AlwaysOff);
} else if (size == 2) {
textedit->setMinimumSize (250, lheight * 4 + margin);
}
+ if (size < 2) {
+ textedit->setHScrollBarMode (QScrollView::AlwaysOff);
+ textedit->setVScrollBarMode (QScrollView::AlwaysOff);
+ textedit->setTabChangesFocus (true);
+ }
vbox->addWidget (textedit);
connect (textedit, SIGNAL (textChanged ()), SLOT (textChanged ()));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list