Commit c2cb341a authored by Jan's avatar Jan
Browse files

Removed deprecated screenGeometry Call

parent 9647b401
......@@ -163,7 +163,11 @@ void ScriptingPlugin::pluginsInitialized() {
scriptWidget_->hide();
scriptWidget_->resize(scriptWidget_->width() , std::min(QApplication::desktop()->screenGeometry().height() - 150 , 800) );
// Get the primary screen size
QScreen *screen = QGuiApplication::primaryScreen();
QRect screenGeometry = screen->geometry();
scriptWidget_->resize(scriptWidget_->width() , std::min(screenGeometry.height() - 150 , 800) );
connect (scriptWidget_->actionLoad_Script, SIGNAL( triggered() ), this, SLOT( slotLoadScript() ) );
scriptWidget_->actionLoad_Script->setShortcut( QKeySequence(Qt::CTRL + Qt::Key_O) );
......
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