r21245 by craig -
scribus-commit
scribus-commit at lists.scribus.net
Tue Apr 26 19:56:05 UTC 2016
Author: craig
Date: Tue Apr 26 19:56:05 2016
New Revision: 21245
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21245
Log:
#13843: Force right alignment on the splash screen even in RTL languages
Modified:
trunk/Scribus/scribus/ui/splash.cpp
Modified: trunk/Scribus/scribus/ui/splash.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21245&path=/trunk/Scribus/scribus/ui/splash.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/splash.cpp (original)
+++ trunk/Scribus/scribus/ui/splash.cpp Tue Apr 26 19:56:05 2016
@@ -53,7 +53,7 @@
}
}
- showMessage ( tmp, Qt::AlignRight | Qt::AlignBottom, Qt::white );
+ showMessage ( tmp, Qt::AlignRight | Qt::AlignAbsolute | Qt::AlignBottom, Qt::white );
}
void ScSplashScreen::drawContents(QPainter* painter)
@@ -73,7 +73,7 @@
#endif
QString versionText(VERSION);
painter->setFont(lgf);
- painter->drawText(r, Qt::AlignRight | Qt::AlignBottom, versionText );
+ painter->drawText(r, Qt::AlignRight | Qt::AlignAbsolute | Qt::AlignBottom, versionText );
if (versionText.contains("svn"))
{
@@ -82,7 +82,7 @@
revText=QString("SVN Revision: %1").arg(SVNVERSION);
QRect r2 = rect().adjusted(0, 0, -15, -50);
painter->setFont(f);
- painter->drawText(r2, Qt::AlignRight | Qt::AlignBottom, revText );
+ painter->drawText(r2, Qt::AlignRight | Qt::AlignAbsolute | Qt::AlignBottom, revText );
#endif
QFont wf(font());
#if defined _WIN32
@@ -98,7 +98,7 @@
painter->setPen(QPen(Qt::red));
QString warningText("UNSTABLE. For testing purposes only!");
QRect r3 = rect().adjusted(0, 0, -15, -25);
- painter->drawText(r3, Qt::AlignRight | Qt::AlignBottom, warningText );
+ painter->drawText(r3, Qt::AlignRight | Qt::AlignAbsolute | Qt::AlignBottom, warningText );
}
}
More information about the scribus-commit
mailing list