Commit c6b32049 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to QRandomGenerator (make it compile against qt5.15 without

deprecated methods)
parent 63351f38
......@@ -43,6 +43,7 @@
#include <QTableView>
#include <QPrinter>
#include <QAction>
#include <QRandomGenerator>
#include <QFileDialog>
#include <QStatusBar>
#include <QMenuBar>
......@@ -99,7 +100,9 @@ class Add3DOption : public InlineOptions
KAlgebra* m_kalgebra;
};
QColor randomFunctionColor() { return QColor::fromHsv(qrand()%255, 255, 255); }
QColor randomFunctionColor() {
return QColor::fromHsv(QRandomGenerator::global()->bounded(255), 255, 255);
}
KAlgebra::KAlgebra(QWidget *parent)
: QMainWindow(parent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment