From d7843bc37e668be7feaf40681f9a1ff1d2894315 Mon Sep 17 00:00:00 2001 From: Uyanide Date: Thu, 15 Jan 2026 05:12:53 +0100 Subject: [PATCH] fix: qRegisterMetaType before QMetaObject::invokeMethod --- .github/workflows/build.yml | 8 +++++++- .github/workflows/release.yml | 4 ++-- src/images_carousel.cpp | 3 ++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ddd409..dd29a6f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Install dependencies run: | @@ -24,3 +24,9 @@ jobs: - name: Build run: cmake --build build --config Release -- -j$(nproc) + + - name: Upload build artifacts + uses: actions/upload-artifact@v6 + with: + name: wallpaper_chooser-build + path: build/wallpaper_chooser diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ee73d3..9030e81 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Install dependencies run: | @@ -40,7 +40,7 @@ jobs: tar -czvf ../wallpaper-carousel-linux-x64.tar.gz * - name: Create Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: files: wallpaper-carousel-linux-x64.tar.gz diff --git a/src/images_carousel.cpp b/src/images_carousel.cpp index 2ceac34..a3bb9e1 100644 --- a/src/images_carousel.cpp +++ b/src/images_carousel.cpp @@ -1,7 +1,7 @@ /* * @Author: Uyanide pywang0608@foxmail.com * @Date: 2025-08-05 01:22:53 - * @LastEditTime: 2026-01-15 00:48:17 + * @LastEditTime: 2026-01-15 05:11:52 * @Description: Animated carousel widget for displaying and selecting images. */ #include "images_carousel.h" @@ -40,6 +40,7 @@ ImagesCarousel::ImagesCarousel(const Config::StyleConfigItems& styleConfig, ui->setupUi(this); m_scrollArea = dynamic_cast(ui->scrollArea); m_imagesLayout = dynamic_cast(ui->scrollAreaWidgetContents->layout()); + qRegisterMetaType("ImageData*"); // Remove border ui->scrollArea->setFrameShape(QFrame::NoFrame);