mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-22 23:51:41 +02:00
2021-02-15 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'Q3PointArray' dependency from 'RDTransportButton'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
0c5f48290a
commit
cc87ac7f47
@ -21158,3 +21158,5 @@
|
|||||||
2021-02-15 Fred Gleason <fredg@paravelsystems.com>
|
2021-02-15 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Refactored the 'Rivendell Services' dialog to use the model
|
* Refactored the 'Rivendell Services' dialog to use the model
|
||||||
based API.
|
based API.
|
||||||
|
2021-02-15 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Removed the 'Q3PointArray' dependency from 'RDTransportButton'.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// An audio transport button widget.
|
// An audio transport button widget.
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002,2018 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU Library General Public License
|
// it under the terms of the GNU Library General Public License
|
||||||
@ -18,13 +18,12 @@
|
|||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <q3pointarray.h>
|
//#include <q3pointarray.h>
|
||||||
#include <qbitmap.h>
|
|
||||||
#include <qpainter.h>
|
#include <QBitmap>
|
||||||
#include <qpalette.h>
|
#include <QPainter>
|
||||||
#include <qpixmap.h>
|
#include <QPolygon>
|
||||||
#include <qpushbutton.h>
|
#include <QTimer>
|
||||||
#include <qtimer.h>
|
|
||||||
|
|
||||||
#include "rdtransportbutton.h"
|
#include "rdtransportbutton.h"
|
||||||
|
|
||||||
@ -213,7 +212,7 @@ void RDTransportButton::updateCaps()
|
|||||||
|
|
||||||
void RDTransportButton::drawMask(QPixmap *cap)
|
void RDTransportButton::drawMask(QPixmap *cap)
|
||||||
{
|
{
|
||||||
Q3PointArray triangle=Q3PointArray(3);
|
QPolygon triangle=QPolygon(3);
|
||||||
QPainter b;
|
QPainter b;
|
||||||
QBitmap *bitmap=new QBitmap(capSize());
|
QBitmap *bitmap=new QBitmap(capSize());
|
||||||
int edge;
|
int edge;
|
||||||
@ -356,7 +355,7 @@ void RDTransportButton::drawMask(QPixmap *cap)
|
|||||||
void RDTransportButton::drawOnCap()
|
void RDTransportButton::drawOnCap()
|
||||||
{
|
{
|
||||||
QPainter p;
|
QPainter p;
|
||||||
Q3PointArray triangle=Q3PointArray(3);
|
QPolygon triangle=QPolygon(3);
|
||||||
int edge;
|
int edge;
|
||||||
|
|
||||||
if(capSize().height()<capSize().width()) {
|
if(capSize().height()<capSize().width()) {
|
||||||
@ -636,7 +635,7 @@ void RDTransportButton::drawOnCap()
|
|||||||
void RDTransportButton::drawOffCap()
|
void RDTransportButton::drawOffCap()
|
||||||
{
|
{
|
||||||
QPainter p;
|
QPainter p;
|
||||||
Q3PointArray triangle=Q3PointArray(3);
|
QPolygon triangle=QPolygon(3);
|
||||||
int edge;
|
int edge;
|
||||||
|
|
||||||
if(capSize().height()<capSize().width()) {
|
if(capSize().height()<capSize().width()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user