MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / setWindowButtonFlag

Method setWindowButtonFlag

ElaWidgetTools/ElaDialog.cpp:118–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 auto geometry = qApp->screenAt(this->geometry().center())->geometry();
117#endif
118 setGeometry((geometry.left() + geometry.right() - width()) / 2, (geometry.top() + geometry.bottom() - height()) / 2, width(), height());
119}
120
121void ElaDialog::setWindowButtonFlag(ElaAppBarType::ButtonType buttonFlag, bool isEnable)
122{
123 Q_D(ElaDialog);
124 d->_appBar->setWindowButtonFlag(buttonFlag, isEnable);
125}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected