mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
DATV demod: deactivate full screen. Fixed bug
This commit is contained in:
parent
200d6beaab
commit
1e1a64cd13
@ -164,7 +164,7 @@ DATVDemodGUI::DATVDemodGUI(PluginAPI* objPluginAPI, DeviceUISet *deviceUISet, Ba
|
||||
connect(&m_objTimer, SIGNAL(timeout()), this, SLOT(tick()));
|
||||
m_objTimer.start();
|
||||
|
||||
//ui->fullScreen->setVisible(false);
|
||||
ui->fullScreen->setVisible(false);
|
||||
|
||||
ui->deltaFrequencyLabel->setText(QString("%1f").arg(QChar(0x94, 0x03)));
|
||||
ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
|
@ -204,7 +204,7 @@
|
||||
<enum>QTabWidget::West</enum>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="datvTab">
|
||||
<attribute name="title">
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <math.h>
|
||||
#include <algorithm>
|
||||
|
||||
#include <QGroupBox>
|
||||
#include <QLayout>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
@ -38,6 +38,7 @@ DATVideoRender::DATVideoRender(QWidget *parent) : TVScreen(true, parent), m_pare
|
||||
m_isOpen = false;
|
||||
m_formatCtx = nullptr;
|
||||
m_videoDecoderCtx = nullptr;
|
||||
m_audioDecoderCtx = nullptr;
|
||||
m_swsCtx = nullptr;
|
||||
m_audioFifo = nullptr;
|
||||
m_audioSWR = nullptr;
|
||||
@ -96,25 +97,30 @@ void DATVideoRender::SetFullScreen(bool fullScreen)
|
||||
|
||||
if (fullScreen == true)
|
||||
{
|
||||
m_originalWindowFlags = this->windowFlags();
|
||||
m_originalSize = this->size();
|
||||
this->setParent(0);
|
||||
this->setWindowFlags( Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint);
|
||||
this->showMaximized();
|
||||
// setWindowFlags(Qt::Window);
|
||||
// setWindowState(Qt::WindowFullScreen);
|
||||
// show();
|
||||
qDebug("DATVideoRender::SetFullScreen: go to fullscreen");
|
||||
// m_originalWindowFlags = this->windowFlags();
|
||||
// m_originalSize = this->size();
|
||||
// m_parentWidget->layout()->removeWidget(this);
|
||||
// //this->setParent(0);
|
||||
// this->setWindowFlags( Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint);
|
||||
// m_parentWidget->show();
|
||||
setWindowFlags(Qt::Window);
|
||||
setWindowState(Qt::WindowFullScreen);
|
||||
show();
|
||||
m_isFullScreen = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this->setParent(m_parentWidget);
|
||||
this->resize(m_originalSize);
|
||||
this->overrideWindowFlags(m_originalWindowFlags);
|
||||
this->show();
|
||||
// setWindowFlags(Qt::Widget);
|
||||
qDebug("DATVideoRender::SetFullScreen: come back from fullscreen");
|
||||
// //this->setParent(m_parentWidget);
|
||||
// this->resize(m_originalSize);
|
||||
// this->overrideWindowFlags(m_originalWindowFlags);
|
||||
// setWindowState(Qt::WindowNoState);
|
||||
// show();
|
||||
// m_parentWidget->layout()->addWidget(this);
|
||||
// m_parentWidget->show();
|
||||
setWindowFlags(Qt::Widget);
|
||||
setWindowState(Qt::WindowNoState);
|
||||
show();
|
||||
m_isFullScreen = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user