[QScintilla] wrong cursor moving

David Hess dhess at fishsoftware.com
Mon Nov 8 14:49:50 GMT 2010


That's some good news! I'm not going to be able to move to 4.7 for a couple of weeks but I'll confirm this fix for us too when that happens.

Dave

On Nov 8, 2010, at 5:01 AM, Petr Vanek wrote:
> I have 4.7 here. Testing with this patch for PlatQt.cpp:
> 
> - --- PlatQt.cpp  2010-11-08 11:56:59.000000000 +0100
> +++ PlatQt.cpp.orig     2010-08-31 09:49:37.000000000 +0200
> @@ -122,13 +122,6 @@
>     Release();
> 
>     QFont *f = new QFont();
> - -#ifdef Q_WS_MAC
> - -#if QT_VERSION >= 0x040700
> - -    f->setStyleStrategy(QFont::ForceIntegerMetrics);
> - -#else
> - -#warning "Correct handling of the QFont metrics requited Qt>=4.7"
> - -#endif
> - -#endif
> 
>     // If name of the font begins with a '-', assume, that it is an XLFD.
>     if (faceName[0] == '-')
> 
> - ---
> and it seems it works. Well, the cursor is still 1-2px shifted into the glyph itself (comparing linux) but the gap/shift is constant.
> And of course - I'm not sure if I applu the setStyleStrategy in the right place... but as I said it seems to work - including selections in the colorized/bold texts.
> 
> p.



More information about the QScintilla mailing list