mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
ATV Demod: cosmetic reformatting
This commit is contained in:
parent
864df4d232
commit
a5df0a1ee4
@ -28,14 +28,14 @@
|
||||
#include <QDebug>
|
||||
|
||||
ATVScreen::ATVScreen(QWidget* parent) :
|
||||
QGLWidget(parent),
|
||||
m_objMutex(QMutex::NonRecursive)
|
||||
QGLWidget(parent), m_objMutex(QMutex::NonRecursive)
|
||||
{
|
||||
setAttribute(Qt::WA_OpaquePaintEvent);
|
||||
//connect(&m_objTimer, SIGNAL(timeout()), this, SLOT(tick()));
|
||||
//m_objTimer.start(50);
|
||||
|
||||
m_chrLastData = NULL;
|
||||
m_blnConfigChanged = false;
|
||||
m_blnDataChanged = false;
|
||||
m_blnGLContextInitialized = false;
|
||||
|
||||
@ -113,16 +113,20 @@ void ATVScreen::initializeGL()
|
||||
{
|
||||
if (objSurface->surfaceType() != QSurface::OpenGLSurface)
|
||||
{
|
||||
qCritical() << "ATVScreen::initializeGL: surface is not an OpenGLSurface: " << objSurface->surfaceType() << " cannot use an OpenGL context";
|
||||
qCritical() << "ATVScreen::initializeGL: surface is not an OpenGLSurface: "
|
||||
<< objSurface->surfaceType()
|
||||
<< " cannot use an OpenGL context";
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug() << "ATVScreen::initializeGL: OpenGL surface:" << " class: " << (objSurface->surfaceClass() == QSurface::Window ? "Window" : "Offscreen");
|
||||
qDebug() << "ATVScreen::initializeGL: OpenGL surface:"
|
||||
<< " class: " << (objSurface->surfaceClass() == QSurface::Window ? "Window" : "Offscreen");
|
||||
}
|
||||
}
|
||||
|
||||
connect(objGlCurrentContext, &QOpenGLContext::aboutToBeDestroyed, this, &ATVScreen::cleanup); // TODO: when migrating to QOpenGLWidget
|
||||
connect(objGlCurrentContext, &QOpenGLContext::aboutToBeDestroyed, this,
|
||||
&ATVScreen::cleanup); // TODO: when migrating to QOpenGLWidget
|
||||
|
||||
//Par défaut
|
||||
m_intAskedCols = ATV_COLS;
|
||||
@ -163,12 +167,10 @@ void ATVScreen::mousePressEvent(QMouseEvent* event)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void ATVScreen::tick()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void ATVScreen::connectTimer(const QTimer& objTimer)
|
||||
{
|
||||
/*
|
||||
@ -187,7 +189,6 @@ void ATVScreen::cleanup()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool ATVScreen::selectRow(int intLine)
|
||||
{
|
||||
if (m_blnGLContextInitialized)
|
||||
@ -200,6 +201,7 @@ bool ATVScreen::setDataColor(int intCol,int intRed, int intGreen, int intBlue)
|
||||
{
|
||||
if (m_blnGLContextInitialized)
|
||||
{
|
||||
return m_objGLShaderArray.SetDataColor(intCol, qRgb(intRed, intGreen, intBlue));
|
||||
return m_objGLShaderArray.SetDataColor(intCol,
|
||||
qRgb(intRed, intGreen, intBlue));
|
||||
}
|
||||
}
|
||||
|
@ -28,15 +28,12 @@
|
||||
#include <QFont>
|
||||
#include <QMatrix4x4>
|
||||
#include "dsp/dsptypes.h"
|
||||
#include "dsp/scopevis.h"
|
||||
#include "gui/scaleengine.h"
|
||||
#include "glshaderarray.h"
|
||||
#include "gui/glshadertextured.h"
|
||||
#include "util/export.h"
|
||||
#include "util/bitfieldindex.h"
|
||||
|
||||
|
||||
class ScopeVis;
|
||||
class QPainter;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user