Cocoa: silence warnings about unused variables
Silence warnings about unused function parameters and local variables while building the Cocoa platform plugin. Change-Id: I6aedc4cb21c5fb48d2d6e501561473d3f7112aed Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>bb10
parent
f6b25fa213
commit
155d5ecf34
|
|
@ -98,7 +98,7 @@ public:
|
|||
virtual QFixed emSquareSize() const;
|
||||
|
||||
virtual QFontEngine *cloneWithSize(qreal pixelSize) const;
|
||||
virtual int glyphMargin(QFontEngineGlyphCache::Type type) { return 0; }
|
||||
virtual int glyphMargin(QFontEngineGlyphCache::Type type) { Q_UNUSED(type); return 0; }
|
||||
|
||||
static int antialiasingThreshold;
|
||||
static QFontEngineGlyphCache::Type defaultGlyphFormat;
|
||||
|
|
|
|||
|
|
@ -172,8 +172,8 @@ static void cleanupCocoaApplicationDelegate()
|
|||
// QApplicationPrivate::globalAppleEventProcessor in qapplication_mac.mm
|
||||
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender
|
||||
{
|
||||
/*
|
||||
Q_UNUSED(sender);
|
||||
/*
|
||||
// The reflection delegate gets precedence
|
||||
if (reflectionDelegate
|
||||
&& [reflectionDelegate respondsToSelector:@selector(applicationShouldTerminate:)]) {
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ bool QCocoaClipboard::supportsMode(QClipboard::Mode mode) const
|
|||
|
||||
bool QCocoaClipboard::ownsMode(QClipboard::Mode mode) const
|
||||
{
|
||||
Q_UNUSED(mode);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -59,6 +59,8 @@ QCocoaCursor::QCocoaCursor()
|
|||
|
||||
void QCocoaCursor::changeCursor(QCursor *cursor, QWindow *window)
|
||||
{
|
||||
Q_UNUSED(window);
|
||||
|
||||
// Check for a suitable built-in NSCursor first:
|
||||
switch (cursor->shape()) {
|
||||
case Qt::ArrowCursor:
|
||||
|
|
|
|||
|
|
@ -238,6 +238,7 @@ static QTouchDevice *touchDevice = 0;
|
|||
|
||||
- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
|
||||
{
|
||||
Q_UNUSED(theEvent);
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,6 @@
|
|||
- (id)accessibilityHitTest:(NSPoint)point {
|
||||
if (!m_accessibleRoot)
|
||||
return [super accessibilityHitTest:point];
|
||||
NSPoint windowPoint = [[self window] convertScreenToBase:point];
|
||||
|
||||
QAccessibleInterface *childInterface = m_accessibleRoot->childAt(point.x, qt_mac_flipYCoordinate(point.y));
|
||||
// No child found, meaning we hit the NSView
|
||||
|
|
|
|||
Loading…
Reference in New Issue