summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_qproxystyle.cpp
blob: 7633160a6690e67e154a8caaa431db608fccc0ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! [0]
class MyProxyStyle : public QProxyStyle
{
public:

    int styleHint(StyleHint hint, const QStyleOption *option = 0, 
                  const QWidget *widget = 0, QStyleHintReturn *returnData = 0) const
    {
        if (hint == QStyle::SH_UnderlineShortcut)
            return 1;
        return QProxyStyle::styleHint(hint, option, widget, returnData);
    }
};

//! [0]