tst_QBoxLayout: use QProxyStyle instead of QWindowsStyle
QWindowsStyle is soon to become an internal class. Change-Id: I287c771a841ba96e445f0a0df96ea035be25ac74 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
This commit is contained in:
parent
f61a335589
commit
f1a743c165
@ -68,11 +68,11 @@ private slots:
|
|||||||
void taskQTBUG_7103_minMaxWidthNotRespected();
|
void taskQTBUG_7103_minMaxWidthNotRespected();
|
||||||
};
|
};
|
||||||
|
|
||||||
class CustomLayoutStyle : public QWindowsStyle
|
class CustomLayoutStyle : public QProxyStyle
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
CustomLayoutStyle() : QWindowsStyle()
|
CustomLayoutStyle() : QProxyStyle(QStyleFactory::create("windows"))
|
||||||
{
|
{
|
||||||
hspacing = 5;
|
hspacing = 5;
|
||||||
vspacing = 10;
|
vspacing = 10;
|
||||||
@ -109,7 +109,7 @@ int CustomLayoutStyle::pixelMetric(PixelMetric metric, const QStyleOption * opti
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return QWindowsStyle::pixelMetric(metric, option, widget);
|
return QProxyStyle::pixelMetric(metric, option, widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user