[Gambas-Notification] [Git][gambas/gambas][master] 8 commits: Fix compiler warning in gb.qt5 about deprecation of QFontMetrics::width()

Benoît Minisini gitlab at mg.gitlab.com
Fri Nov 15 22:25:44 CET 2019



Benoît Minisini pushed to branch master at Gambas / gambas


Commits:
daf012a2 by Laurent Carlier at 2019-11-02T17:52:49Z
Fix compiler warning in gb.qt5 about deprecation of QFontMetrics::width()

QFontMetrics::width() is deprecated since Qt 5.11

- - - - -
082eb5b7 by Laurent Carlier at 2019-11-02T17:53:00Z
Fix compiler warning in gb.qt5 about deprecation of QString::null

QString::null is deprecated since Qt 5.9
Use QString() instead for both qt4 and qt5 components as it constructs a null string.

- - - - -
2e1dd1a2 by Laurent Carlier at 2019-11-02T17:53:00Z
Fix compiler warning in gb.qt5 about deprecation of QString::sprintf()

QString::sprintf() is deprecated since Qt 5.14
Use QString().arg() instead for both qt4 and qt5 components.

- - - - -
07f35841 by Laurent Carlier at 2019-11-02T17:53:00Z
Fix compiler warning in gb.qt5 about deprecation of QPainter::initFrom()

QPainter::initFrom() is deprecated since Qt 5.13
Use QPainter::begin() instead for both qt4 and qt5 components

v2: remove pf.begin() to avoid warning message "QPainter::begin: Painter already active"

- - - - -
a5836ec5 by Laurent Carlier at 2019-11-02T17:53:00Z
Fix compiler warning in gb.qt5 about deprecation of QDesktopWidget::availableGeometry() and QDesktopWidget::screenGeometry()

Both are deprecated since Qt 5.11
Use QGuiApplication::screens() instead.

- - - - -
3d9f5cc9 by Laurent Carlier at 2019-11-02T17:53:00Z
Fix compiler warning in gb.qt5 about deprecation of QDesktopWidget::primaryScreen()

QApplication::desktop()->primaryScreen() is deprecated since Qt 5.11
Use QGuiApplication::primaryScreen() instead.

- - - - -
9e958b2c by Laurent Carlier at 2019-11-02T17:53:00Z
Fix warning about converting a packed CWIDGET pointer.....may result in an unaligned pointer value

Remove PACKED attribute - it doesn't change the size of CWIDGET (56 on x86_64)

- - - - -
aab0d937 by Benoît Minisini at 2019-11-15T21:25:42Z
Merge branch 'qt-warning-fixes' into 'master'

Qt warning fixes

See merge request gambas/gambas!115
- - - - -


9 changed files:

- gb.qt4/src/CDialog.cpp
- gb.qt4/src/CDraw.cpp
- gb.qt4/src/CDrawingArea.cpp
- gb.qt4/src/CScreen.cpp
- gb.qt4/src/CStyle.cpp
- gb.qt4/src/CTabStrip.cpp
- gb.qt4/src/CWidget.h
- gb.qt4/src/CWindow.cpp
- gb.qt4/src/cpaint_impl.cpp


View it on GitLab: https://gitlab.com/gambas/gambas/compare/55d7f20d80192df8e533fb517364d7c48a662b9d...aab0d93763f445421b5f7947bdfba978063bb065

-- 
View it on GitLab: https://gitlab.com/gambas/gambas/compare/55d7f20d80192df8e533fb517364d7c48a662b9d...aab0d93763f445421b5f7947bdfba978063bb065
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/notification/attachments/20191115/80e16eb7/attachment.html>


More information about the Notification mailing list