Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Feature #871396 ยป 0038-Qt-Avoid-using-deprecated-QDesktopWidget-screenGeome.patch

Marko Lindqvist, 2020-04-29 05:24 PM

View differences:

client/gui-qt/citydlg.cpp
#include <QPainter>
#include <QRadioButton>
#include <QRect>
#include <QScreen>
#include <QScrollArea>
#include <QScrollBar>
#include <QSplitter>
......
central_left_splitter->restoreState(gui()->qt_settings.city_splitter2);
central_splitter->restoreState(gui()->qt_settings.city_splitter3);
} else {
QRect rect = QApplication::desktop()->screenGeometry();
QList<QScreen *> screens = QGuiApplication::screens();
QRect rect = screens[0]->availableGeometry();
resize((rect.width() * 4) / 5, (rect.height() * 5) / 6);
}
}
client/gui-qt/helpdlg.cpp
#include <QGroupBox>
#include <QProgressBar>
#include <QPushButton>
#include <QScreen>
#include <QScrollArea>
#include <QSplitter>
#include <QStack>
......
restoreGeometry(gui()->qt_settings.help_geometry);
splitter->restoreState(gui()->qt_settings.help_splitter1);
} else {
QRect rect = QApplication::desktop()->screenGeometry();
QList<QScreen *> screens = QGuiApplication::screens();
QRect rect = screens[0]->availableGeometry();
resize((rect.width() * 3) / 5, (rect.height() * 3) / 6);
sizes << rect.width() / 10 << rect.width() / 3;
client/gui-qt/ratesdlg.cpp
#include <QGroupBox>
#include <QMouseEvent>
#include <QPainter>
#include <QScreen>
#include <QVBoxLayout>
// common
......
**************************************************************************/
void popup_rates_dialog(void)
{
QList<QScreen *> screens = QGuiApplication::screens();
QRect rect = screens[0]->availableGeometry();
QPoint p;
QRect rect;
tax_rates_dialog *trd;
p = QCursor::pos();
rect = QApplication::desktop()->availableGeometry();
tax_rates_dialog *trd = new tax_rates_dialog(gui()->central_wdg);
trd = new tax_rates_dialog(gui()->central_wdg);
p.setY(p.y() - trd->height() / 2);
if (p.y() < 50) {
p.setY(50);
    (1-1/1)