MCPcopy Create free account
hub / github.com/Neverous/efibooteditor / drawControl

Method drawControl

src/filepathdialog.cpp:20–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void 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
40FilePathDialog::FilePathDialog(QWidget *parent)
41 : QDialog(parent)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected