Re: Qt: Tab stop width very big (active_path.py, c++ files)
On Sun, Mar 1, 2009 at 8:52 AM, Ville M. Vainio wrote: > > I have now pushed this to trunk - QTextEdit now sets the tab width to > 24 pixels on construction. Thanks for this help. Edward --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to leo-editor@googlegroups.com To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~--~~~~--~~--~--~---
Re: Qt: Tab stop width very big (active_path.py, c++ files)
On Fri, Feb 20, 2009 at 6:52 PM, Ville M. Vainio wrote: > I imported some files that use tabs for indentation with active_path > plugin. I noted that the tab size was huge. > > QTextEdit has a way to specify tab stop width in pixels. I ran this > and tabs were sane again: > > c.frame.top.ui.richTextEdit.setTabStopWidth(20) > > Note that it's probably a *good* idea to specify tab stop width that > is not exactly 4/8 spaces. That way, mixed spaces and tabs will stand > out in the code. I have now pushed this to trunk - QTextEdit now sets the tab width to 24 pixels on construction. -- Ville M. Vainio http://tinyurl.com/vainio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to leo-editor@googlegroups.com To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~--~~~~--~~--~--~---
Re: Qt: Tab stop width very big (active_path.py, c++ files)
On Fri, Feb 20, 2009 at 10:52 AM, Ville M. Vainio wrote: > > I ran this and tabs were sane again: > > c.frame.top.ui.richTextEdit.setTabStopWidth(20) > > Note that it's probably a *good* idea to specify tab stop width that > is not exactly 4/8 spaces. That way, mixed spaces and tabs will stand > out in the code. Thanks, Ville. BTW, I'm writing this in vimperator "pass through" mode. There are a few holes in the docs, but the vimperator people are friendly and respond quickly. I'll be writing up my newbie impressions soon. This is great stuff. Edward --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to leo-editor@googlegroups.com To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~--~~~~--~~--~--~---