Commit 1c71cf56 authored by Jan Möbius's avatar Jan Möbius

Fixed some qt deprecation warnings

parent 740c6916
Pipeline #15226 passed with stages
in 78 minutes and 34 seconds
...@@ -63,7 +63,6 @@ int main(int argc, char **argv) ...@@ -63,7 +63,6 @@ int main(int argc, char **argv)
#endif #endif
// OpenGL check // OpenGL check
QApplication::setColorSpec( QApplication::CustomColor );
QApplication app(argc,argv); QApplication app(argc,argv);
if ( !QGLFormat::hasOpenGL() ) { if ( !QGLFormat::hasOpenGL() ) {
......
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
// OpenGL check // OpenGL check
QApplication::setColorSpec( QApplication::CustomColor );
QApplication app(argc,argv); QApplication app(argc,argv);
if ( !QGLFormat::hasOpenGL() ) { if ( !QGLFormat::hasOpenGL() ) {
...@@ -67,7 +66,7 @@ int main(int argc, char **argv) ...@@ -67,7 +66,7 @@ int main(int argc, char **argv)
// create widget // create widget
ProgViewerWidget w(0); ProgViewerWidget w(nullptr);
w.resize(400, 400); w.resize(400, 400);
w.show(); w.show();
......
...@@ -60,12 +60,11 @@ void usage_and_exit(int xcode); ...@@ -60,12 +60,11 @@ void usage_and_exit(int xcode);
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
// OpenGL check // OpenGL check
QApplication::setColorSpec( QApplication::CustomColor );
QApplication app(argc,argv); QApplication app(argc,argv);
if ( !QGLFormat::hasOpenGL() ) { if ( !QGLFormat::hasOpenGL() ) {
QString msg = "System has no OpenGL support!"; QString msg = "System has no OpenGL support!";
QMessageBox::critical( 0, QString("OpenGL"), msg + QString(argv[1]) ); QMessageBox::critical( nullptr, QString("OpenGL"), msg + QString(argv[1]) );
return -1; return -1;
} }
......
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
// OpenGL check // OpenGL check
QApplication::setColorSpec( QApplication::CustomColor );
QApplication app(argc,argv); QApplication app(argc,argv);
if ( !QGLFormat::hasOpenGL() ) { if ( !QGLFormat::hasOpenGL() ) {
...@@ -66,7 +65,7 @@ int main(int argc, char **argv) ...@@ -66,7 +65,7 @@ int main(int argc, char **argv)
// create widget // create widget
SubdivideWidget* w = new SubdivideWidget(0, "Subdivider"); SubdivideWidget* w = new SubdivideWidget(nullptr, "Subdivider");
w->resize(400, 400); w->resize(400, 400);
w->show(); w->show();
......
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
// OpenGL check // OpenGL check
QApplication::setColorSpec( QApplication::CustomColor );
QApplication app(argc,argv); QApplication app(argc,argv);
...@@ -66,7 +65,7 @@ int main(int argc, char **argv) ...@@ -66,7 +65,7 @@ int main(int argc, char **argv)
// create widget // create widget
VDPMSynthesizerViewerWidget* VDPMSynthesizerViewerWidget*
w = new VDPMSynthesizerViewerWidget(0, "VDPMSynthesizerViewer"); w = new VDPMSynthesizerViewerWidget(nullptr, "VDPMSynthesizerViewer");
w->resize(400, 400); w->resize(400, 400);
w->show(); w->show();
......
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