MCPcopy Create free account
hub / github.com/czyt1988/SARibbon / createWindowButtonGroupBar

Method createWindowButtonGroupBar

example/UseNativeFrameExample/mainwindow.cpp:632–641  ·  view source on GitHub ↗

* @brief 创建右上角系统最大、最小化按钮栏的图标工具 */

Source from the content-addressed store, hash-verified

630 * @brief 创建右上角系统最大、最小化按钮栏的图标工具
631 */
632void MainWindow::createWindowButtonGroupBar()
633{
634 SARibbonSystemButtonBar* wbar = windowButtonBar();
635 if (!wbar) {
636 return;
637 }
638 QAction* a = new QAction(QIcon(), tr("Login"));
639 wbar->addAction(a);
640 connect(a, &QAction::triggered, this, [ this ]() { this->mTextedit->append("Login triggered"); });
641}
642
643QAction* MainWindow::createAction(const QString& text, const QString& iconurl, const QString& objName)
644{

Callers

nothing calls this directly

Calls 2

addActionMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected