juzzlin / Heimer

Heimer is a simple cross-platform mind map, diagram, and note-taking tool written in Qt.
GNU General Public License v3.0
887 stars 112 forks source link

Qt6: Fix deprecated QMessageBox::critical() #252

Closed juzzlin closed 9 months ago

juzzlin commented 10 months ago
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 |                           "");
      |                           ~~~