juzzlin / Heimer

Heimer is a simple cross-platform mind map, diagram, and note-taking tool written in Qt.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Qt6: Fix deprecated QMessageBox::critical()

juzzlin opened this issue · comments

main_window.cpp:589:26: warning: ‘static int QMessageBox::critical(QWidget*, const QString&, const QString&, const QString&, const QString&, const QString&, int, int)’ is deprecated: Use the overload taking StandardButtons instead. [-Wdeprecated-declarations]
  589 |     QMessageBox::critical(this,
      |     ~~~~~~~~~~~~~~~~~~~~~^~~~~~
  590 |                           Constants::Application::APPLICATION_NAME,
      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  591 |                           message,
      |                           ~~~~~~~~
  592 |                           "");
      |                           ~~~