Sine Striker
2023-12-19 57c155148acfb1b4c806eee3d0f687ead699ac1f
minor tweaks
1个文件已修改
5 ■■■■■ 已修改文件
examples/mainwindow/mainwindow.cpp 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
examples/mainwindow/mainwindow.cpp
@@ -42,6 +42,7 @@
    }
    setWindowTitle(tr("Example MainWindow"));
    resize(800, 600);
}
static inline void emulateLeaveEvent(QWidget *widget) {
@@ -106,11 +107,11 @@
void MainWindow::installWindowAgent() {
    // 1. Setup window agent
    QWK::WidgetWindowAgent *agent = QWK::setupWidgetWindow(this);
    // Equivalent to:
    // auto agent = new QWK::WidgetWindowAgent(w);
    // agent->setup(w);
    QWK::WidgetWindowAgent *agent = QWK::setupWidgetWindow(this);
    // 2. Construct your title bar
    auto menuBar = []() {