Skip to content
Snippets Groups Projects
Commit c2cb341a authored by Jan's avatar Jan
Browse files

Removed deprecated screenGeometry Call

parent 9647b401
No related branches found
No related tags found
No related merge requests found
......@@ -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) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment