mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2025-01-25 08:08:15 +00:00
Merge pull request #17 from virinext/fix_plugin_list_non_modal
Plugin list windows shall be non modal
This commit is contained in:
commit
843e3da04d
2 changed files with 7 additions and 5 deletions
|
@ -162,7 +162,8 @@ MainWindow::MainWindow(QWidget *parent, Qt::WindowFlags flags):
|
|||
setCentralWidget(pscroll);
|
||||
m_pstatusBar = new QStatusBar;
|
||||
setStatusBar(m_pstatusBar);
|
||||
|
||||
m_pluginList = new PluginsList(this);
|
||||
m_pluginList->setModal(false);
|
||||
restoreGeometry(CustomSettings::mainWindowGeometry());
|
||||
startTimer(100);
|
||||
}
|
||||
|
@ -171,15 +172,14 @@ MainWindow::MainWindow(QWidget *parent, Qt::WindowFlags flags):
|
|||
MainWindow::~MainWindow()
|
||||
{
|
||||
CustomSettings::saveMainWindowGeometry(saveGeometry());
|
||||
delete m_pluginList;
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::AddPlugin()
|
||||
{
|
||||
PluginsList lst(this);
|
||||
lst.m_pGraph = m_pGraph.data();
|
||||
|
||||
lst.exec();
|
||||
m_pluginList->m_pGraph = m_pGraph.data();
|
||||
m_pluginList->show();
|
||||
std::vector<ElementInfo> info = m_pGraph -> GetInfo();
|
||||
m_pGraphDisplay -> update(info);
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include "GraphManager.h"
|
||||
|
||||
class GraphDisplay;
|
||||
class PluginsList;
|
||||
|
||||
class MainWindow: public QMainWindow
|
||||
{
|
||||
|
@ -51,6 +52,7 @@ class MainWindow: public QMainWindow
|
|||
QSlider *m_pslider;
|
||||
|
||||
QString m_fileName;
|
||||
PluginsList *m_pluginList;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue