Handle PPK_CustomBase in QWin32PrintEngine::property
If we leave out the default so that the compiler catches missing enum values we should actually handle them all ... Change-Id: Ieb4992dec84ce847e48ab3c4a94bd8825a148706 Reviewed-by: Andy Shaw <andy.shaw@digia.com>
This commit is contained in:
parent
7824a9ba31
commit
38c4ccbfe6
@ -1414,6 +1414,9 @@ QVariant QWin32PrintEngine::property(PrintEnginePropertyKey key) const
|
|||||||
value.setValue(d->m_pageLayout);
|
value.setValue(d->m_pageLayout);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PPK_CustomBase:
|
||||||
|
break;
|
||||||
|
|
||||||
// No default so that compiler will complain if new keys added and not handled in this engine
|
// No default so that compiler will complain if new keys added and not handled in this engine
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user