[KPhotoAlbum] Compiler warning

Robert Krawitz rlk at alum.mit.edu
Sat May 26 17:45:28 BST 2018


/home/rlk/sandbox/kphotoalbum/Viewer/ViewerWidget.cpp: In member function ‘void Viewer::ViewerWidget::setShowFullScreen(bool)’:
/home/rlk/sandbox/kphotoalbum/Viewer/ViewerWidget.cpp:1007:49: warning: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens() [-Wdeprecated-declarations]
         resize( qApp->desktop()->screenGeometry().size() );
                                                 ^
In file included from /usr/include/qt5/QtWidgets/QDesktopWidget:1:0,
                 from /home/rlk/sandbox/kphotoalbum/Viewer/ViewerWidget.cpp:26:
/usr/include/qt5/QtWidgets/qdesktopwidget.h:77:67: note: declared here
     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const;


-- 
Robert Krawitz                                     <rlk at alum.mit.edu>

***  MIT Engineers   A Proud Tradition   http://mitathletics.com  ***
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --    http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton



More information about the Kphotoalbum mailing list