Commit 08811bfd authored by Simon Eugster's avatar Simon Eugster
Browse files

Try to refresh the scopes when the tab was clicked.

Does not work always yet as the «visible» signal is sent before the state of the widget actually changes to «visible». The render method checks whether the widget is really visible, and sometimes it isn't yet ...

svn path=/trunk/kdenlive/; revision=4731
parent 941670b3
......@@ -221,24 +221,28 @@ MainWindow::MainWindow(const QString &MltPath, const KUrl & Url, QWidget *parent
m_vectorscopeDock->setObjectName(m_vectorscope->widgetName());
m_vectorscopeDock->setWidget(m_vectorscope);
addDockWidget(Qt::TopDockWidgetArea, m_vectorscopeDock);
connect(m_vectorscopeDock, SIGNAL(visibilityChanged(bool)), m_vectorscope, SLOT(forceUpdate(bool)));
m_waveform = new Waveform(m_projectMonitor, m_clipMonitor, this);
m_waveformDock = new QDockWidget(i18n("Waveform"), this);
m_waveformDock->setObjectName(m_waveform->widgetName());
m_waveformDock->setWidget(m_waveform);
addDockWidget(Qt::TopDockWidgetArea, m_waveformDock);
connect(m_waveformDock, SIGNAL(visibilityChanged(bool)), m_waveform, SLOT(forceUpdate(bool)));
m_RGBParade = new RGBParade(m_projectMonitor, m_clipMonitor, this);
m_RGBParadeDock = new QDockWidget(i18n("RGB Parade"), this);
m_RGBParadeDock->setObjectName(m_RGBParade->widgetName());
m_RGBParadeDock->setWidget(m_RGBParade);
addDockWidget(Qt::TopDockWidgetArea, m_RGBParadeDock);
connect(m_RGBParadeDock, SIGNAL(visibilityChanged(bool)), m_RGBParade, SLOT(forceUpdate(bool)));
m_histogram = new Histogram(m_projectMonitor, m_clipMonitor, this);
m_histogramDock = new QDockWidget(i18n("Histogram"), this);
m_histogramDock->setObjectName(m_histogram->widgetName());
m_histogramDock->setWidget(m_histogram);
addDockWidget(Qt::TopDockWidgetArea, m_histogramDock);
connect(m_histogramDock, SIGNAL(visibilityChanged(bool)), m_histogram, SLOT(forceUpdate(bool)));
m_undoViewDock = new QDockWidget(i18n("Undo History"), this);
......
......@@ -18,7 +18,7 @@
<number>5</number>
</property>
<item row="0" column="1">
<widget class="QComboBox" name="cbPaintmode">
<widget class="QComboBox" name="paintMode">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
......
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