diff --git a/ChangeLog b/ChangeLog index f67a19a6..a492c947 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21158,3 +21158,5 @@ 2021-02-15 Fred Gleason * Refactored the 'Rivendell Services' dialog to use the model based API. +2021-02-15 Fred Gleason + * Removed the 'Q3PointArray' dependency from 'RDTransportButton'. diff --git a/lib/rdtransportbutton.cpp b/lib/rdtransportbutton.cpp index b1ffd8ba..4e2f37c6 100644 --- a/lib/rdtransportbutton.cpp +++ b/lib/rdtransportbutton.cpp @@ -2,7 +2,7 @@ // // An audio transport button widget. // -// (C) Copyright 2002,2018 Fred Gleason +// (C) Copyright 2002-2021 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU Library General Public License @@ -18,13 +18,12 @@ // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // -#include -#include -#include -#include -#include -#include -#include +//#include + +#include +#include +#include +#include #include "rdtransportbutton.h" @@ -213,7 +212,7 @@ void RDTransportButton::updateCaps() void RDTransportButton::drawMask(QPixmap *cap) { - Q3PointArray triangle=Q3PointArray(3); + QPolygon triangle=QPolygon(3); QPainter b; QBitmap *bitmap=new QBitmap(capSize()); int edge; @@ -356,7 +355,7 @@ void RDTransportButton::drawMask(QPixmap *cap) void RDTransportButton::drawOnCap() { QPainter p; - Q3PointArray triangle=Q3PointArray(3); + QPolygon triangle=QPolygon(3); int edge; if(capSize().height()