whitespace fixes
remove trailing spaces & expand tabs. Change-Id: I05ef110abed90f13b47752760ffb4567a11a6a5e Reviewed-by: Yoann Lopes <yoann.lopes@digia.com> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
b690a4d902
commit
5980bc41cf
@@ -81,7 +81,7 @@ public:
|
||||
|
||||
STDMETHODIMP QueryInterface(REFIID riid, void **ppvObject)
|
||||
{
|
||||
if (NULL == ppvObject)
|
||||
if (NULL == ppvObject)
|
||||
return E_POINTER;
|
||||
if (riid == IID_IUnknown /*__uuidof(IUnknown) */ ) {
|
||||
*ppvObject = static_cast<IUnknown*>(this);
|
||||
@@ -380,9 +380,9 @@ QSize DSCameraSession::frameSize() const
|
||||
|
||||
void DSCameraSession::setFrameSize(const QSize& s)
|
||||
{
|
||||
if (supportedResolutions(pixelF).contains(s))
|
||||
if (supportedResolutions(pixelF).contains(s))
|
||||
m_windowSize = s;
|
||||
else
|
||||
else
|
||||
qWarning() << "frame size if not supported for current pixel format, no change";
|
||||
}
|
||||
|
||||
@@ -465,8 +465,8 @@ void DSCameraSession::setPixelFormat(QVideoFrame::PixelFormat fmt)
|
||||
|
||||
QList<QSize> DSCameraSession::supportedResolutions(QVideoFrame::PixelFormat format)
|
||||
{
|
||||
if (!resolutions.contains(format))
|
||||
return QList<QSize>();
|
||||
if (!resolutions.contains(format))
|
||||
return QList<QSize>();
|
||||
return resolutions.value(format);
|
||||
}
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ DSVideoWidgetControl::DSVideoWidgetControl(DSCameraSession* session, QObject *pa
|
||||
m_widget->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
||||
m_widget->setAlignment(Qt::AlignCenter);
|
||||
m_widget->setAttribute(Qt::WA_NoSystemBackground, true);
|
||||
|
||||
|
||||
surface = new DSVideoWidgetSurface(m_widget);
|
||||
|
||||
QPalette palette;
|
||||
@@ -157,7 +157,7 @@ bool DSVideoWidgetControl::eventFilter(QObject *object, QEvent *e)
|
||||
case QEvent::PolishRequest:
|
||||
m_widget->ensurePolished();
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
// Do nothing
|
||||
break;
|
||||
|
||||
@@ -82,15 +82,15 @@ class DSVideoWidgetSurface : public QAbstractVideoSurface
|
||||
class DSVideoWidgetControl : public QVideoWidgetControl
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
DSVideoWidgetSurface* surface;
|
||||
public: // Constructor & Destructor
|
||||
|
||||
|
||||
DSVideoWidgetControl(DSCameraSession* session, QObject *parent = 0);
|
||||
virtual ~DSVideoWidgetControl();
|
||||
|
||||
public: // QVideoWidgetControl
|
||||
|
||||
|
||||
QWidget *videoWidget();
|
||||
|
||||
// Aspect Ratio
|
||||
@@ -118,10 +118,10 @@ public: // QVideoWidgetControl
|
||||
void setSaturation(int saturation);
|
||||
|
||||
public: // Internal
|
||||
|
||||
|
||||
bool eventFilter(QObject *object, QEvent *event);
|
||||
|
||||
/*
|
||||
|
||||
/*
|
||||
Q_SIGNALS: // QVideoWidgetControl
|
||||
|
||||
void fullScreenChanged(bool fullScreen);
|
||||
|
||||
Reference in New Issue
Block a user