Fixed non-Qt-binding case

This commit is contained in:
Matthias Koefferlein 2022-05-14 01:48:59 +02:00
parent 684ece41d1
commit 585aa4667f
4 changed files with 13 additions and 5 deletions

View File

@ -30,7 +30,6 @@ SOURCES = \
# Enabled without Qt:
HEADERS += \
antForceLink.h \
antConfig.h \
antObject.h \
antPlugin.h \
@ -40,7 +39,6 @@ HEADERS += \
antCommon.h
SOURCES += \
antForceLink.cc \
antConfig.cc \
antObject.cc \
antPlugin.cc \

View File

@ -160,7 +160,7 @@ Class<lay::PixelBuffer> decl_PixelBuffer ("lay", "PixelBuffer",
gsi::method ("fill", &lay::PixelBuffer::fill, gsi::arg ("color"),
"@brief Fills the pixel buffer with the given pixel value\n"
) +
#if defined(HAVE_QT)
#if defined(HAVE_QT) && defined(HAVE_QTBINDINGS)
gsi::method_ext ("fill", &fill_with_qcolor, gsi::arg ("color"),
"@brief Fills the pixel buffer with the given QColor\n"
) +
@ -352,7 +352,7 @@ Class<lay::BitmapBuffer> decl_BitmapBuffer ("lay", "BitmapBuffer",
gsi::method ("fill", &lay::BitmapBuffer::fill, gsi::arg ("color"),
"@brief Fills the pixel buffer with the given pixel value\n"
) +
#if defined(HAVE_QT)
#if defined(HAVE_QT) && defined(HAVE_QTBINDINGS)
gsi::method_ext ("fill", &fill_with_qcolor, gsi::arg ("color"),
"@brief Fills the pixel buffer with the given QColor\n"
) +

View File

@ -260,7 +260,7 @@ TEST(13)
}
#endif
#if defined(HAVE_PNG) || defined(HAVE_QT)
#if defined(HAVE_PNG) && defined(HAVE_QT)
TEST(21)
{
lay::LayoutView lv (0, false, 0);

View File

@ -425,6 +425,16 @@ class LAYLayoutView_TestClass < TestBase
def test_4
# check if PNG support is compiled in
# TODO: remove this once PNG support is available on all platforms
begin
RBA::PixelBuffer.read_png(File.join($ut_testsrc, "testdata/lay/au_lv1.png"))
rescue => ex
# PNG support missing
puts "WARNING: PNG support not compiled in - skipping test"
return
end
# standalone image generation (see C++ tests)
lv = RBA::LayoutView::new
lv.set_config("inst-color", "#000000")