| 18 | } |
| 19 | |
| 20 | void HorizontalTabStyle::drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const |
| 21 | { |
| 22 | if(element != CE_TabBarTabLabel) |
| 23 | { |
| 24 | QProxyStyle::drawControl(element, option, painter, widget); |
| 25 | return; |
| 26 | } |
| 27 | |
| 28 | const QStyleOptionTab *tab = qstyleoption_cast<const QStyleOptionTab *>(option); |
| 29 | if(!tab) |
| 30 | { |
| 31 | QProxyStyle::drawControl(element, option, painter, widget); |
| 32 | return; |
| 33 | } |
| 34 | |
| 35 | QStyleOptionTab opt(*tab); |
| 36 | opt.shape = QTabBar::RoundedNorth; |
| 37 | QProxyStyle::drawControl(element, &opt, painter, widget); |
| 38 | } |
| 39 | |
| 40 | FilePathDialog::FilePathDialog(QWidget *parent) |
| 41 | : QDialog(parent) |
nothing calls this directly
no outgoing calls
no test coverage detected