D9198: Do not crash with most themes using QT_FATAL_WARNINGS=1

Jaime Torres Amate noreply at phabricator.kde.org
Tue Dec 5 12:18:23 UTC 2017


jtamate created this revision.
jtamate added a reviewer: KDE Games.

REVISION SUMMARY
  The warning was produced by Qt due to a incredible big size for an image
  QSize(1140863441, 1492201392).
  Setting the size of the QGraphicsScene to 0, it will grown up as needed.
  Without the removal of setItemIndexMethod( NoIndex ); the warnings are
  still there, but I guess the scene in kmines is not very dynamic.
  There are still warnings when using the theme "Caos en el cementerio"
  (The title is in spanish even after changing the application language).
  BUG: 259006

TEST PLAN
  run "QT_FATAL_WARNINGS=1 kmines" without crashing, except when Qt parses
  the file graveyard-mayhem.svgz (Caos en el cementerio).

REPOSITORY
  R404 KMines

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D9198

AFFECTED FILES
  scene.cpp

To: jtamate, #kde_games
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20171205/8e0503e3/attachment.html>


More information about the kde-games-devel mailing list