QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskPlacementPolicy.cpp
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#include "QskPlacementPolicy.h"
7
8static void qskRegisterPlacementPolicy()
9{
10 qRegisterMetaType< QskPlacementPolicy >();
11
12#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
13 QMetaType::registerEqualsComparator< QskPlacementPolicy >();
14#endif
15}
16
17Q_CONSTRUCTOR_FUNCTION( qskRegisterPlacementPolicy )
18
19#ifndef QT_NO_DEBUG_STREAM
20
21#include <qdebug.h>
22
23QDebug operator<<( QDebug debug, const QskPlacementPolicy policy )
24{
25 QDebugStateSaver saver( debug );
26 debug.nospace();
27 debug << "PlacementPolicy" << '(';
28 debug << policy.visiblePolicy() << ", " << policy.hiddenPolicy();
29 debug << ')';
30
31 return debug;
32}
33
34#endif
35
36#include "moc_QskPlacementPolicy.cpp"
Policy hiddenPolicy
Policy for the item, when being hidden ( to its parent )
Policy visiblePolicy
Policy for the item, when being visible ( to its parent )