Changeset 79f83a3845 in tspsg for src


Ignore:
Timestamp:
Jul 21, 2012, 3:30:52 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
4a5e9a66d4
Parents:
7c2ff7afbc
git-author:
Oleksii Serdiuk <contacts@…> (07/21/12 15:30:52)
git-committer:
Oleksii Serdiuk <contacts@…> (07/21/12 16:17:33)
Message:

Fix to be compilable on Qt < 4.8 again.

QImage::fill(const QColor &color) was introduced in Qt 4.8. Reverted back
to using QImage::fill(uint pixelValue).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.cpp

    r7c2ff7afbc r79f83a3845  
    10081008
    10091009        QImage i(graph.width() + 2, graph.height() + 2, QImage::Format_ARGB32);
    1010         i.fill(QColor(255, 255, 255, 0));
     1010        i.fill(QColor(255, 255, 255, 0).rgba());
    10111011        pic.begin(&i);
    10121012        pic.drawPicture(1, 1, graph);
Note: See TracChangeset for help on using the changeset viewer.