Sine Striker
2023-12-07 1a1f26d9e4ab6a4fe51baa78e40c4cdf3f402bcf
examples/mainwindow/mainwindow.cpp
@@ -32,8 +32,7 @@
void MainWindow::installWindowAgent() {
    auto agent = new QWK::WidgetWindowAgent(this);
    if (!agent->setup(this)) {
        qDebug() << "Frameless handle failed to initialize.";
        return;
        qFatal("Frameless handle failed to initialize.");
    }
    auto titleLabel = new QLabel();
@@ -55,10 +54,18 @@
    }();
    auto iconButton = new QPushButton("I");
    iconButton->setAttribute(Qt::WA_Hover);
    iconButton->setMouseTracking(true);
    auto minButton = new QPushButton("—");
    minButton->setAttribute(Qt::WA_Hover);
    minButton->setMouseTracking(true);
    auto maxButton = new QPushButton("🗖");
    maxButton->setCheckable(true);
    maxButton->setAttribute(Qt::WA_Hover);
    maxButton->setMouseTracking(true);
    auto closeButton = new QPushButton("✖");
    closeButton->setAttribute(Qt::WA_Hover);
    closeButton->setMouseTracking(true);
    auto windowBar = new QWK::WindowBar();
    windowBar->setIconButton(iconButton);
@@ -92,5 +99,5 @@
    setMenuWidget(windowBar);
    setCentralWidget(clockWidget);
    setWindowTitle("Example MainWindow");
    resize(1024, 768);
    resize(640, 480);
}