From 6bfd2a7368678fd1464df32ba170763c75c6f6e1 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Wed, 2 Aug 2023 23:27:44 +0200 Subject: [PATCH] Fixed warning in case of Qt bindings not being compiled in --- src/img/img/gsiDeclImg.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/img/img/gsiDeclImg.cc b/src/img/img/gsiDeclImg.cc index 4a7ee22cb..6199de34c 100644 --- a/src/img/img/gsiDeclImg.cc +++ b/src/img/img/gsiDeclImg.cc @@ -451,7 +451,7 @@ static ImageRef *new_image_pbt (const tl::PixelBuffer &pixel_buffer, const db::D return new ImageRef (img::Object (pixel_buffer, trans)); } -#if HAVE_QT +#if defined(HAVE_QTBINDINGS) static ImageRef *new_image_qit (const QImage &image, const db::DCplxTrans &trans) { return new ImageRef (img::Object (image, trans)); @@ -597,7 +597,7 @@ gsi::Class decl_Image (decl_BasicImage, "lay", "Image", "@param filename The path to the image file to load.\n" "@param trans The transformation to apply to the image when displaying it.\n" ) + -#if defined(HAVE_QT) +#if defined(HAVE_QTBINDINGS) gsi::constructor ("new", &gsi::new_image_qit, gsi::arg ("image"), gsi::arg ("trans", db::DCplxTrans (), "unity"), "@brief Constructor from a image pixel buffer\n" "\n"