QTfrontend/net/hwmap.cpp
branchqt5transition
changeset 12897 fc47fc4af6bd
parent 11046 47a8c19ecb60
child 14599 b86e6e4f3c58
--- a/QTfrontend/net/hwmap.cpp	Wed Jan 24 21:05:34 2018 +0100
+++ b/QTfrontend/net/hwmap.cpp	Wed Jan 24 22:20:10 2018 +0100
@@ -79,7 +79,7 @@
     {
         quint8 *buf = (quint8*) readbuffer.constData();
         QImage im(buf, 256, 128, QImage::Format_Mono);
-        im.setNumColors(2);
+        im.setColorCount(2);
 
         QPixmap px(QSize(256, 128));
         QPixmap pxres(px.size());