qt5base-lts/examples/qpa/windows/window.h
Samuel Rødal 18c1d67137 Made QExposeEvent public and added exposeEvent() in QWindow.
This is needed for applications that use QBackingStore directly.
2011-06-22 09:41:10 +02:00

28 lines
524 B
C++

#include <QWindow>
#include <QImage>
class Window : public QWindow
{
public:
Window(QWindow *parent = 0);
protected:
void mousePressEvent(QMouseEvent *);
void mouseMoveEvent(QMouseEvent *);
void mouseReleaseEvent(QMouseEvent *);
void keyPressEvent(QKeyEvent *);
void exposeEvent(QExposeEvent *);
void resizeEvent(QResizeEvent *);
private:
void render();
QString m_text;
QImage m_image;
QPoint m_lastPos;
int m_backgroundColorIndex;
QBackingStore *m_backingStore;
};