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:
Aaron J. Seigo 2007-08-30 04:34:09 +00:00
parent 243f835253
commit 432bfaf165
2 changed files with 8 additions and 1 deletions

View File

@ -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)
{ {

View File

@ -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,