Hi Albrecht,
ok, comitted to trunk. Current QLGT svn version is far from being in a
productive state. Huge development in progress ;)
Oliver
> Hi all,
>
> the latest svn revision 2785 does not compile any more with Qt< 4.7.0, as
> the QTextBlock::textDirection() method has been introduced with Qt 4.7.
> Thus, compiling 3rdparty/QTextHtmlExporter/QTextHtmlExporter.cpp fails for
> older versions, like 4.6.3 on Mac OS X.
>
> The simple workaround is to just omit the right-to-left check for older
> versions (see below).
>
> Opinions?
>
> Cheers, Albrecht.
>
>
> Index: 3rdparty/QTextHtmlExporter/QTextHtmlExporter.cpp
> ===================================================================
> --- 3rdparty/QTextHtmlExporter/QTextHtmlExporter.cpp (revision 2785)
> +++ 3rdparty/QTextHtmlExporter/QTextHtmlExporter.cpp (working copy)
> @@ -564,10 +564,12 @@ void QTextHtmlExporter::emitBlockAttributes(const
> QTextBlockFormat format = block.blockFormat();
> emitAlignment(format.alignment());
>
> +#if QT_VERSION>= 0x040700
> // assume default to not bloat the html too much
> // html += QLatin1String(" dir='ltr'");
> if (block.textDirection() == Qt::RightToLeft)
> html += QLatin1String(" dir='rtl'");
> +#endif
>
> QLatin1String style(" style=\"");
> html += style;
>
> ------------------------------------------------------------------------------
> Simplify data backup and recovery for your virtual environment with vRanger.
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today.
> http://p.sf.net/sfu/quest-sfdev2dev
> _______________________________________________
> Qlandkartegt-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
>
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users