Commit 37c90523 authored by bmagnin's avatar bmagnin

Merge branch 'Sankore-1.40' of github.com:Sankore/Sankore-3.1 into Sankore-1.40

parents f2df77d8 41f088d5
......@@ -940,19 +940,21 @@ void UBBoardView::virtualKeyboardActivated(bool b)
// Apple remote desktop sends funny events when the transmission is bad
bool
UBBoardView::isAbsurdPoint (QPoint point)
bool UBBoardView::isAbsurdPoint(QPoint point)
{
QDesktopWidget *desktop = qApp->desktop ();
#ifdef Q_WS_MACX
QDesktopWidget *desktop = qApp->desktop();
bool isValidPoint = false;
for (int i = 0; i < desktop->numScreens (); i++)
{
QRect screenRect = desktop->screenGeometry (i);
isValidPoint = isValidPoint || screenRect.contains (point);
for (int i = 0; i < desktop->numScreens() && !isValidPoint; i++){
QRect screenRect = desktop->screenGeometry(i);
screenRect=QRect(QPoint(0,0),screenRect.size());
isValidPoint = isValidPoint || screenRect.contains(point);
}
return !isValidPoint;
#else
return false;
#endif
}
void
......
......@@ -63,7 +63,7 @@ QString UBPlatformUtils::preferredTranslation(QString pFilePrefix)
QString UBPlatformUtils::preferredLanguage()
{
return "fr";//QLocale::system().name();
return QLocale::system().name();
}
void UBPlatformUtils::runInstaller(const QString &installerFilePath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment