...
 
Commits (1)
......@@ -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) );
......