2018-07-05 11:45:45 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
2018-07-06 16:35:13 +02:00
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QtWidgets/QDesktopWidget>
|
|
|
|
|
2018-07-05 11:45:45 +02:00
|
|
|
#include <string.h>
|
|
|
|
#include <tools/gen.hxx>
|
|
|
|
#include <Qt5System.hxx>
|
2018-07-06 16:35:13 +02:00
|
|
|
#include <Qt5Tools.hxx>
|
2018-07-05 11:45:45 +02:00
|
|
|
|
2018-07-06 16:35:13 +02:00
|
|
|
unsigned int Qt5System::GetDisplayScreenCount() { return QApplication::desktop()->screenCount(); }
|
2018-07-05 11:45:45 +02:00
|
|
|
|
|
|
|
tools::Rectangle Qt5System::GetDisplayScreenPosSizePixel(unsigned int nScreen)
|
|
|
|
{
|
2018-07-06 16:35:13 +02:00
|
|
|
QRect qRect = QApplication::desktop()->screenGeometry(nScreen);
|
|
|
|
return toRectangle(qRect);
|
2018-07-05 11:45:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int Qt5System::ShowNativeDialog(const OUString&, const OUString&, const std::vector<OUString>&)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|