make paintGLInterface non-pure virtual to make it more similar to Applet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=706360
This commit is contained in:
parent
243f835253
commit
432bfaf165
@ -99,6 +99,13 @@ void GLApplet::deleteTexture(GLuint textureId)
|
|||||||
d->dummy->deleteTexture(textureId);
|
d->dummy->deleteTexture(textureId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GLApplet::paintGLInterface(QPainter *painter,
|
||||||
|
const QStyleOptionGraphicsItem *option)
|
||||||
|
{
|
||||||
|
Q_UNUSED(painter)
|
||||||
|
Q_UNUSED(option)
|
||||||
|
}
|
||||||
|
|
||||||
static inline QPainterPath headerPath(const QRectF &r, int roundness,
|
static inline QPainterPath headerPath(const QRectF &r, int roundness,
|
||||||
int headerHeight=10)
|
int headerHeight=10)
|
||||||
{
|
{
|
||||||
|
@ -69,7 +69,7 @@ class PLASMA_EXPORT GLApplet : public Applet
|
|||||||
* using OpenGL api directly is supported.
|
* using OpenGL api directly is supported.
|
||||||
*/
|
*/
|
||||||
virtual void paintGLInterface(QPainter *painter,
|
virtual void paintGLInterface(QPainter *painter,
|
||||||
const QStyleOptionGraphicsItem *option) = 0;
|
const QStyleOptionGraphicsItem *option);
|
||||||
void makeCurrent();
|
void makeCurrent();
|
||||||
private:
|
private:
|
||||||
virtual void paintInterface(QPainter *painter,
|
virtual void paintInterface(QPainter *painter,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user