trying to work around MSVC issues
This commit is contained in:
parent
f94373390b
commit
a3c224c865
@ -25,6 +25,15 @@ namespace
|
|||||||
public:
|
public:
|
||||||
TextItem()
|
TextItem()
|
||||||
{
|
{
|
||||||
|
#if 1
|
||||||
|
/*
|
||||||
|
QQuickTextPrivate::ExtraData::ExtraData is not exported with MSVC, so we
|
||||||
|
preallocate it by setting/unsetting the bottom padding
|
||||||
|
*/
|
||||||
|
setBottomPadding( 1 );
|
||||||
|
setBottomPadding( 0 );
|
||||||
|
#endif
|
||||||
|
|
||||||
// fonts are supposed to be defined in the application skin and we
|
// fonts are supposed to be defined in the application skin and we
|
||||||
// probably don't want to have them scaled
|
// probably don't want to have them scaled
|
||||||
setFontSizeMode( QQuickText::FixedSize );
|
setFontSizeMode( QQuickText::FixedSize );
|
||||||
@ -266,9 +275,9 @@ void QskRichTextRenderer::updateNode(
|
|||||||
if ( static_cast< int >( rect.height() - h ) % 2 )
|
if ( static_cast< int >( rect.height() - h ) % 2 )
|
||||||
{
|
{
|
||||||
if ( static_cast< int >( h ) % 2 )
|
if ( static_cast< int >( h ) % 2 )
|
||||||
d->extra.value().bottomPadding = 1;
|
d->extra->bottomPadding = 1;
|
||||||
else
|
else
|
||||||
d->extra.value().topPadding = 1;
|
d->extra->topPadding = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user