blob: bf0c6707d1eb776ede65ac736c9dd232f3f89d2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//! [0]
int MyStyle::styleHint(StyleHint stylehint, const QStyleOption *opt,
const QWidget *widget, QStyleHintReturn* returnData) const;
{
if (stylehint == SH_RubberBand_Mask) {
const QStyleHintReturnMask *maskReturn =
qstyleoption_cast<const QStyleHintReturnMask *>(hint);
if (maskReturn) {
...
}
}
...
}
//! [0]
|