[Qt-creator] Code-editor reuse
Diego Iastrubni
diegoiast at gmail.com
Mon Feb 9 16:54:31 CET 2015
Fix it and send me a patch :)
The bug is in the editor control, and yes, unfortunately I am using a mac,
i will try to reproduce and fix.
On Mon, Feb 9, 2015 at 4:14 PM, Aaron Lewis <the.warl0ck.1989 at gmail.com>
wrote:
> That's good.
>
> Here's a question ... anyone running Mac?
>
> The font looked small so I added some random code in demo5 ...
>
> QFont font = editor->font();
> font.setPointSize(15);
> font.setFamily("Monaco");
> editor->setFont(font);
>
> And it become ... mis-aligned:
> http://oi62.tinypic.com/21c5cty.jpg
>
> Maybe I did something wrong ..
>
>
> On Mon, Feb 9, 2015 at 5:22 PM, Diego Iastrubni <diegoiast at gmail.com>
> wrote:
> > Not entirely true.
> >
> > I already did it, and it "was not that hard". The problem - is syncing
> the
> > code back. As I modified some of the namespaces, and I had to create a
> few
> > classes (yes, the editor is a little tied with the rest of the QtCreator
> > infrastructure) syncing back the code from your updates is manual labor
> > (note to self - last sync was in the 2.x days... I assume this needs to
> be
> > updated again).
> >
> >
> https://code.google.com/p/qtedit4/source/browse/#svn%2Ftools%2Fqtsourceview%2Fsrc%2Fqate
> >
> >
> >
> > On Mon, Feb 9, 2015 at 10:02 AM, Ziller Eike <
> Eike.Ziller at theqtcompany.com>
> > wrote:
> >>
> >>
> >> > On Feb 8, 2015, at 2:47 PM, Aaron Lewis <the.warl0ck.1989 at gmail.com>
> >> > wrote:
> >> >
> >> > Hi,
> >> >
> >> > I'm trying to create a simple editor.
> >> >
> >> > I really like the one used in QtCreator, is there any way to use it
> >> > separately?
> >>
> >> Definitely not without pulling in many other classes from Qt Creator,
> >> and/or manually commenting out a lot of code.
> >>
> >> Br, Eike
> >>
> >> > I tried this link, but it has multiple problems, e.g the left line
> >> > number area sometimes is not aligned with the text on the right side
> >> > http://qt-project.org/doc/qt-4.8/widgets-codeeditor.html
> >> >
> >> > --
> >> > Best Regards,
> >> > Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
> >> > Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
> >> > _______________________________________________
> >> > Qt-creator mailing list
> >> > Qt-creator at qt-project.org
> >> > http://lists.qt-project.org/mailman/listinfo/qt-creator
> >>
> >> --
> >> Eike Ziller, Senior Software Engineer - The Qt Company GmbH
> >>
> >> The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
> >> Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
> >> Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht
> >> Charlottenburg, HRB 144331 B
> >>
> >> _______________________________________________
> >> Qt-creator mailing list
> >> Qt-creator at qt-project.org
> >> http://lists.qt-project.org/mailman/listinfo/qt-creator
> >
> >
>
>
>
> --
> Best Regards,
> Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
> Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20150209/b350f8d0/attachment.html>
More information about the Qt-creator
mailing list