Qt 4.8
qeglproperties_stub.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the QtGui module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 
42 #include <QtCore/qdebug.h>
43 #include <QtCore/qstringlist.h>
44 
45 #include "qeglproperties_p.h"
46 #include "qeglcontext_p.h"
47 
49 
50 static void noegl(const char *fn)
51 {
52  qWarning() << fn << " called, but Qt configured without EGL" << endl;
53 }
54 
55 #define NOEGL noegl(__FUNCTION__);
56 
57 // Initialize a property block.
59 {
60  NOEGL
61 }
62 
63 QEglProperties::QEglProperties(EGLConfig cfg)
64 {
65  Q_UNUSED(cfg)
66  NOEGL
67 }
68 
69 // Fetch the current value associated with a property.
70 int QEglProperties::value(int name) const
71 {
72  Q_UNUSED(name)
73  NOEGL
74  return 0;
75 }
76 
77 // Set the value associated with a property, replacing an existing
78 // value if there is one.
79 void QEglProperties::setValue(int name, int value)
80 {
81  Q_UNUSED(name)
82  Q_UNUSED(value)
83  NOEGL
84 }
85 
86 // Remove a property value. Returns false if the property is not present.
88 {
89  Q_UNUSED(name)
90  NOEGL
91  return false;
92 }
93 
94 void QEglProperties::setDeviceType(int devType)
95 {
96  Q_UNUSED(devType)
97  NOEGL
98 }
99 
100 
101 // Sets the red, green, blue, and alpha sizes based on a pixel format.
102 // Normally used to match a configuration request to the screen format.
104 {
105  Q_UNUSED(pixelFormat)
106  NOEGL
107 
108 }
109 
111 {
112  Q_UNUSED(api);
113  NOEGL
114 }
115 
116 // Reduce the complexity of a configuration request to ask for less
117 // because the previous request did not result in success. Returns
118 // true if the complexity was reduced, or false if no further
119 // reductions in complexity are possible.
121 {
122  NOEGL
123  return false;
124 }
125 
126 static void addTag(QString& str, const QString& tag)
127 {
128  Q_UNUSED(str)
129  Q_UNUSED(tag)
130  NOEGL
131 }
132 
133 // Convert a property list to a string suitable for debug output.
135 {
136  NOEGL
137  return QString();
138 }
139 
141 {
142  Q_UNUSED(dev)
143  NOEGL
144 }
145 
147 
148 
QTextStream & endl(QTextStream &stream)
Writes &#39; &#39; to the stream and flushes the stream.
Format
The following image formats are available in Qt.
Definition: qimage.h:91
#define QT_END_NAMESPACE
This macro expands to.
Definition: qglobal.h:90
bool removeValue(int name)
QString toString() const
int value(int name) const
The QString class provides a Unicode character string.
Definition: qstring.h:83
void setValue(int name, int value)
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition: qglobal.h:89
void setRenderableType(QEgl::API api)
static void addTag(QString &str, const QString &tag)
const char * name
Q_CORE_EXPORT void qWarning(const char *,...)
bool reduceConfiguration()
static void noegl(const char *fn)
#define NOEGL
void setPaintDeviceFormat(QPaintDevice *dev)
Definition: qegl_qpa.cpp:93
void setPixelFormat(QImage::Format pixelFormat)
API
Definition: qegl_p.h:190
void setDeviceType(int devType)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729