Fix compilation with Q_DECL_OVERRIDE
In C++11, the override keyword is placed after the function declaration Change-Id: I3a079860762f30fa21eb01611c770713f6ba4acb Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
460bf5f051
commit
7eebe4e960
@ -50,11 +50,11 @@ public:
|
||||
QCocoaPrinterSupport();
|
||||
~QCocoaPrinterSupport();
|
||||
|
||||
Q_DECL_OVERRIDE QPrintEngine *createNativePrintEngine(QPrinter::PrinterMode printerMode);
|
||||
Q_DECL_OVERRIDE QPaintEngine *createPaintEngine(QPrintEngine *, QPrinter::PrinterMode printerMode);
|
||||
Q_DECL_OVERRIDE QList<QPrinter::PaperSize> supportedPaperSizes(const QPrinterInfo &) const;
|
||||
QPrintEngine *createNativePrintEngine(QPrinter::PrinterMode printerMode) Q_DECL_OVERRIDE;
|
||||
QPaintEngine *createPaintEngine(QPrintEngine *, QPrinter::PrinterMode printerMode) Q_DECL_OVERRIDE;
|
||||
QList<QPrinter::PaperSize> supportedPaperSizes(const QPrinterInfo &) const Q_DECL_OVERRIDE;
|
||||
|
||||
Q_DECL_OVERRIDE QList<QPrinterInfo> availablePrinters();
|
||||
QList<QPrinterInfo> availablePrinters() Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // QCOCOAPRINTERSUPPORT_H
|
||||
|
@ -118,7 +118,7 @@ public:
|
||||
void setCurrentContext(QCocoaGLContext *context);
|
||||
QCocoaGLContext *currentContext() const;
|
||||
|
||||
Q_DECL_OVERRIDE bool setWindowModified(bool modified);
|
||||
bool setWindowModified(bool modified) Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
// NSWindow handling. The QCocoaWindow/QNSView can either be displayed
|
||||
|
@ -198,7 +198,7 @@ public:
|
||||
static void dispatchEnterLeave(QWidget *enter, QWidget *leave);
|
||||
|
||||
//modality
|
||||
Q_DECL_OVERRIDE bool isWindowBlocked(QWindow *window, QWindow **blockingWindow = 0) const;
|
||||
bool isWindowBlocked(QWindow *window, QWindow **blockingWindow = 0) const Q_DECL_OVERRIDE;
|
||||
static bool isBlockedByModal(QWidget *widget);
|
||||
static bool modalState();
|
||||
static bool tryModalHelper(QWidget *widget, QWidget **rettop = 0);
|
||||
|
Loading…
Reference in New Issue
Block a user