mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
QStylePrivate cleanup
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
3e33053da0
commit
1e60c49212
2 changed files with 2 additions and 3 deletions
|
@ -82,7 +82,7 @@ void QProxyStylePrivate::ensureBaseStyle() const
|
||||||
if (baseStyle)
|
if (baseStyle)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!baseStyle && !QApplicationPrivate::styleOverride.isEmpty()) {
|
if (!QApplicationPrivate::styleOverride.isEmpty()) {
|
||||||
baseStyle = QStyleFactory::create(QApplicationPrivate::styleOverride);
|
baseStyle = QStyleFactory::create(QApplicationPrivate::styleOverride);
|
||||||
if (baseStyle) {
|
if (baseStyle) {
|
||||||
// If baseStyle is an instance of the same proxyStyle
|
// If baseStyle is an instance of the same proxyStyle
|
||||||
|
|
|
@ -67,8 +67,7 @@ class QStylePrivate: public QObjectPrivate
|
||||||
Q_DECLARE_PUBLIC(QStyle)
|
Q_DECLARE_PUBLIC(QStyle)
|
||||||
public:
|
public:
|
||||||
inline QStylePrivate()
|
inline QStylePrivate()
|
||||||
: layoutSpacingIndex(-1), proxyStyle(0) {}
|
: proxyStyle(0) {}
|
||||||
mutable int layoutSpacingIndex;
|
|
||||||
QStyle *proxyStyle;
|
QStyle *proxyStyle;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue