astyle tabstops

Megan Webb mwebb at unwired.com.au
Thu Oct 19 20:02:22 UTC 2006


Matt Rogers wrote:
> On Wednesday 18 October 2006 15:31, Megan Webb wrote:
>   
>> Noticed my astyle changes lost the tab stop block from astyleconfig.ui
>> This puts back tabstops on all the controls.
>>
>> I'm stumped though on the ordering of the tabstops. The QT docs say:
>>
>> Tabstops indicate the widgets that get the focus as the user tabs
>> through the form.
>> The <tabstops> tag contains a list of tabstops, in order, each of which
>> holds the name of a widget.
>> <tabstops>
>>     <tabstop>templateView</tabstop>
>>     <tabstop>helpButton</tabstop>
>>     <tabstop>buttonOk</tabstop>
>>     <tabstop>buttonCancel</tabstop>
>> </tabstops>
>>
>> But for the attached patch (for me), the tab stop order on the
>> Tab & Brackets and Indentation tabs are in reverse order.
>>
>> I tried changing the order of the definitions in the .ui file, but that
>> made no difference.
>>
>> If anyone can tell me on what I'm doing wrong?
>>
>> Thanks.
>>
>> Megan
>>     
>
> The radio buttons for all the different styles are in a QButtonGroup. This 
> means that the whole button group gets only one tab stop. With the patch, all 
> the buttons in the group were listed. I think this was confusing Qt.
>
> I added tabstops to the .ui file with designer and i don't have all the 
> buttons there, so this is my best guess as to what's going on there.
>
> I'd recommend opening the file with Qt Designer, adding the tabstops that way, 
> and then trying again. When it works, we can commit the patch. :)
>   

Thanks Matt for the tip. Using the gui is heaps easier than hand editing
the file:-)

New patch attached.  Besides the tab order, the designer wanted to change
a couple of the short cut keys. I let it.

I found I have two qt designers installed - qt3 and qt4 versions.
Funny enough, the qt4 designer does put all the radio buttons in.


Megan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: astyle.tabstops.diff.bz2
Type: application/octet-stream
Size: 978 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20061020/0778f990/attachment.obj>


More information about the KDevelop-devel mailing list