Remove the virtual keyword from reimpl. methods
Qt Coding Standards state that "when reimplementing a virtual method, do not put the virtual keyword in the header file'". Change-Id: I89ae34eee78ad5b58a3e41845384a656225ed658 Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Sean Harmer <sh@theharmers.co.uk>
This commit is contained in:
parent
5d117fd427
commit
68ecbffb30
@ -51,9 +51,9 @@ class QQnxClipboard : public QPlatformClipboard
|
||||
{
|
||||
public:
|
||||
QQnxClipboard();
|
||||
virtual ~QQnxClipboard();
|
||||
virtual QMimeData *mimeData(QClipboard::Mode mode = QClipboard::Clipboard);
|
||||
virtual void setMimeData(QMimeData *data, QClipboard::Mode mode = QClipboard::Clipboard);
|
||||
~QQnxClipboard();
|
||||
QMimeData *mimeData(QClipboard::Mode mode = QClipboard::Clipboard);
|
||||
void setMimeData(QMimeData *data, QClipboard::Mode mode = QClipboard::Clipboard);
|
||||
|
||||
private:
|
||||
class MimeData;
|
||||
|
@ -57,7 +57,7 @@ public:
|
||||
static void injectKeyboardEvent(int flags, int sym, int mod, int scan, int cap);
|
||||
|
||||
protected:
|
||||
virtual void run();
|
||||
void run();
|
||||
|
||||
private:
|
||||
void shutdown();
|
||||
|
@ -58,11 +58,11 @@ class QQnxGLPaintDevice : public QGLPaintDevice
|
||||
{
|
||||
public:
|
||||
QQnxGLPaintDevice(QWindow *window);
|
||||
virtual ~QQnxGLPaintDevice();
|
||||
~QQnxGLPaintDevice();
|
||||
|
||||
virtual QPaintEngine *paintEngine() const;
|
||||
virtual QSize size() const;
|
||||
virtual QGLContext *context() const { return m_glContext; }
|
||||
QPaintEngine *paintEngine() const;
|
||||
QSize size() const;
|
||||
QGLContext *context() const { return m_glContext; }
|
||||
|
||||
private:
|
||||
QQnxWindow *m_window;
|
||||
@ -73,13 +73,13 @@ class QQnxGLBackingStore : public QPlatformBackingStore
|
||||
{
|
||||
public:
|
||||
QQnxGLBackingStore(QWindow *window);
|
||||
virtual ~QQnxGLBackingStore();
|
||||
~QQnxGLBackingStore();
|
||||
|
||||
virtual QPaintDevice *paintDevice() { return m_paintDevice; }
|
||||
virtual void flush(QWindow *window, const QRegion ®ion, const QPoint &offset);
|
||||
virtual void resize(const QSize &size, const QRegion &staticContents);
|
||||
virtual void beginPaint(const QRegion ®ion);
|
||||
virtual void endPaint(const QRegion ®ion);
|
||||
QPaintDevice *paintDevice() { return m_paintDevice; }
|
||||
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset);
|
||||
void resize(const QSize &size, const QRegion &staticContents);
|
||||
void beginPaint(const QRegion ®ion);
|
||||
void endPaint(const QRegion ®ion);
|
||||
|
||||
void resizeSurface(const QSize &size);
|
||||
|
||||
|
@ -61,10 +61,10 @@ public:
|
||||
static void initialize();
|
||||
static void shutdown();
|
||||
|
||||
virtual bool makeCurrent(QPlatformSurface *surface);
|
||||
virtual void doneCurrent();
|
||||
virtual void swapBuffers(QPlatformSurface *surface);
|
||||
virtual QFunctionPointer getProcAddress(const QByteArray &procName);
|
||||
bool makeCurrent(QPlatformSurface *surface);
|
||||
void doneCurrent();
|
||||
void swapBuffers(QPlatformSurface *surface);
|
||||
QFunctionPointer getProcAddress(const QByteArray &procName);
|
||||
|
||||
virtual QSurfaceFormat format() const { return m_windowFormat; }
|
||||
|
||||
|
@ -62,18 +62,18 @@ public:
|
||||
QQnxInputContext(QQnxVirtualKeyboard &keyboard);
|
||||
~QQnxInputContext();
|
||||
|
||||
virtual bool isValid() const;
|
||||
bool isValid() const;
|
||||
|
||||
virtual bool filterEvent(const QEvent *event);
|
||||
virtual void reset();
|
||||
virtual void update(Qt::InputMethodQueries);
|
||||
bool filterEvent(const QEvent *event);
|
||||
void reset();
|
||||
void update(Qt::InputMethodQueries);
|
||||
bool handleKeyboardEvent(int flags, int sym, int mod, int scan, int cap);
|
||||
|
||||
virtual void showInputPanel();
|
||||
virtual void hideInputPanel();
|
||||
virtual bool isInputPanelVisible() const;
|
||||
void showInputPanel();
|
||||
void hideInputPanel();
|
||||
bool isInputPanelVisible() const;
|
||||
|
||||
virtual QLocale locale() const;
|
||||
QLocale locale() const;
|
||||
|
||||
protected:
|
||||
// Filters only for IMF events.
|
||||
|
@ -57,17 +57,17 @@ public:
|
||||
explicit QQnxInputContext(QQnxVirtualKeyboard &keyboard);
|
||||
~QQnxInputContext();
|
||||
|
||||
virtual bool isValid() const;
|
||||
bool isValid() const;
|
||||
|
||||
void reset();
|
||||
virtual bool filterEvent( const QEvent *event );
|
||||
bool filterEvent( const QEvent *event );
|
||||
bool handleKeyboardEvent(int flags, int sym, int mod, int scan, int cap);
|
||||
|
||||
virtual void showInputPanel();
|
||||
virtual void hideInputPanel();
|
||||
virtual bool isInputPanelVisible() const;
|
||||
void showInputPanel();
|
||||
void hideInputPanel();
|
||||
bool isInputPanelVisible() const;
|
||||
|
||||
virtual QLocale locale() const;
|
||||
QLocale locale() const;
|
||||
|
||||
private Q_SLOTS:
|
||||
void keyboardVisibilityChanged(bool visible);
|
||||
|
@ -68,32 +68,32 @@ class QQnxIntegration : public QPlatformIntegration
|
||||
{
|
||||
public:
|
||||
QQnxIntegration();
|
||||
virtual ~QQnxIntegration();
|
||||
~QQnxIntegration();
|
||||
|
||||
virtual bool hasCapability(QPlatformIntegration::Capability cap) const;
|
||||
bool hasCapability(QPlatformIntegration::Capability cap) const;
|
||||
|
||||
virtual QPlatformWindow *createPlatformWindow(QWindow *window) const;
|
||||
virtual QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const;
|
||||
virtual QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const;
|
||||
QPlatformWindow *createPlatformWindow(QWindow *window) const;
|
||||
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const;
|
||||
QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const;
|
||||
|
||||
virtual QPlatformInputContext *inputContext() const;
|
||||
QPlatformInputContext *inputContext() const;
|
||||
|
||||
virtual QList<QPlatformScreen *> screens() const;
|
||||
virtual void moveToScreen(QWindow *window, int screen);
|
||||
QList<QPlatformScreen *> screens() const;
|
||||
void moveToScreen(QWindow *window, int screen);
|
||||
|
||||
virtual QAbstractEventDispatcher *guiThreadEventDispatcher() const;
|
||||
QAbstractEventDispatcher *guiThreadEventDispatcher() const;
|
||||
|
||||
virtual QPlatformFontDatabase *fontDatabase() const { return m_fontDatabase; }
|
||||
QPlatformFontDatabase *fontDatabase() const { return m_fontDatabase; }
|
||||
|
||||
#ifndef QT_NO_CLIPBOARD
|
||||
virtual QPlatformClipboard *clipboard() const;
|
||||
QPlatformClipboard *clipboard() const;
|
||||
#endif
|
||||
|
||||
virtual QVariant styleHint(StyleHint hint) const;
|
||||
QVariant styleHint(StyleHint hint) const;
|
||||
|
||||
bool paintUsingOpenGL() const { return m_paintUsingOpenGL; }
|
||||
|
||||
virtual QPlatformServices *services() const;
|
||||
QPlatformServices *services() const;
|
||||
|
||||
static QWindow *window(screen_window_t qnxWindow);
|
||||
|
||||
|
@ -54,14 +54,14 @@ class QQnxRasterBackingStore : public QPlatformBackingStore
|
||||
{
|
||||
public:
|
||||
QQnxRasterBackingStore(QWindow *window);
|
||||
virtual ~QQnxRasterBackingStore();
|
||||
~QQnxRasterBackingStore();
|
||||
|
||||
virtual QPaintDevice *paintDevice();
|
||||
virtual void flush(QWindow *window, const QRegion ®ion, const QPoint &offset);
|
||||
virtual void resize(const QSize &size, const QRegion &staticContents);
|
||||
virtual bool scroll(const QRegion &area, int dx, int dy);
|
||||
virtual void beginPaint(const QRegion ®ion);
|
||||
virtual void endPaint(const QRegion ®ion);
|
||||
QPaintDevice *paintDevice();
|
||||
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset);
|
||||
void resize(const QSize &size, const QRegion &staticContents);
|
||||
bool scroll(const QRegion &area, int dx, int dy);
|
||||
void beginPaint(const QRegion ®ion);
|
||||
void endPaint(const QRegion ®ion);
|
||||
|
||||
private:
|
||||
class ScrollOp {
|
||||
|
@ -66,11 +66,11 @@ public:
|
||||
static QQnxScreen *primaryDisplay() { return static_cast<QQnxScreen*>(ms_screens.at(0)); }
|
||||
static int defaultDepth();
|
||||
|
||||
virtual QRect geometry() const { return m_currentGeometry; }
|
||||
virtual QRect availableGeometry() const;
|
||||
virtual int depth() const { return defaultDepth(); }
|
||||
virtual QImage::Format format() const { return (depth() == 32) ? QImage::Format_RGB32 : QImage::Format_RGB16; }
|
||||
virtual QSizeF physicalSize() const { return m_currentPhysicalSize; }
|
||||
QRect geometry() const { return m_currentGeometry; }
|
||||
QRect availableGeometry() const;
|
||||
int depth() const { return defaultDepth(); }
|
||||
QImage::Format format() const { return (depth() == 32) ? QImage::Format_RGB32 : QImage::Format_RGB16; }
|
||||
QSizeF physicalSize() const { return m_currentPhysicalSize; }
|
||||
|
||||
bool isPrimaryScreen() const { return m_primaryScreen; }
|
||||
|
||||
@ -98,7 +98,7 @@ private Q_SLOTS:
|
||||
|
||||
private:
|
||||
QQnxScreen(screen_context_t context, screen_display_t display, bool primaryScreen);
|
||||
virtual ~QQnxScreen();
|
||||
~QQnxScreen();
|
||||
|
||||
static bool orthogonal(int rotation1, int rotation2);
|
||||
|
||||
|
@ -69,11 +69,11 @@ public:
|
||||
QQnxWindow(QWindow *window, screen_context_t context);
|
||||
virtual ~QQnxWindow();
|
||||
|
||||
virtual void setGeometry(const QRect &rect);
|
||||
virtual void setVisible(bool visible);
|
||||
virtual void setOpacity(qreal level);
|
||||
void setGeometry(const QRect &rect);
|
||||
void setVisible(bool visible);
|
||||
void setOpacity(qreal level);
|
||||
|
||||
virtual WId winId() const { return (WId)m_window; }
|
||||
WId winId() const { return (WId)m_window; }
|
||||
screen_window_t nativeHandle() const { return m_window; }
|
||||
|
||||
void setBufferSize(const QSize &size);
|
||||
@ -86,10 +86,10 @@ public:
|
||||
|
||||
void setScreen(QQnxScreen *platformScreen);
|
||||
|
||||
virtual void setParent(const QPlatformWindow *window);
|
||||
virtual void raise();
|
||||
virtual void lower();
|
||||
virtual void requestActivateWindow();
|
||||
void setParent(const QPlatformWindow *window);
|
||||
void raise();
|
||||
void lower();
|
||||
void requestActivateWindow();
|
||||
|
||||
void gainedFocus();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user