mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2025-01-25 08:08:15 +00:00
Plugin list windows shall be non modal
In order to edit the graph in the mean time as adding elements, the window shall not be modal.
This commit is contained in:
parent
3dbb6ffd1d
commit
c0162f770e
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