From c4a85cf2125c40d377b70b2946eff2f095cf4af6 Mon Sep 17 00:00:00 2001 From: talksik Date: Wed, 14 Jan 2026 17:11:12 -0800 Subject: [PATCH] refactor: improve header imports and forward declarations --- src/MainWindow.cpp | 2 +- src/MainWindow.h | 2 ++ src/VerticalLabel.cpp | 2 ++ src/VerticalLabel.h | 1 - 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index b041b73..2d5ce1c 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -201,4 +201,4 @@ void MainWindow::setupTrayIcon() MainWindow::~MainWindow() { -} \ No newline at end of file +} diff --git a/src/MainWindow.h b/src/MainWindow.h index 995d74a..5c7a08e 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -7,8 +7,10 @@ #include +QT_BEGIN_NAMESPACE class QSvgWidget; class QSystemTrayIcon; +QT_END_NAMESPACE class MainWindow : public QMainWindow { diff --git a/src/VerticalLabel.cpp b/src/VerticalLabel.cpp index 798726c..bd85796 100644 --- a/src/VerticalLabel.cpp +++ b/src/VerticalLabel.cpp @@ -3,6 +3,8 @@ // #include "VerticalLabel.h" +#include + VerticalLabel::VerticalLabel(const QString &text, QWidget *parent) : QLabel(text, parent) { diff --git a/src/VerticalLabel.h b/src/VerticalLabel.h index 2100d94..3172034 100644 --- a/src/VerticalLabel.h +++ b/src/VerticalLabel.h @@ -6,7 +6,6 @@ #define LLINK_VERTICALLABEL_H #include -#include class VerticalLabel : public QLabel {