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

Method setWindowButtonFlag

ElaWidgetTools/ElaWidget.cpp:115–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected