2021-02-15 Fred Gleason <fredg@paravelsystems.com>

* Removed the 'Q3PointArray' dependency from 'RDEditAudio'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-02-15 16:04:35 -05:00
parent 1ae7c84224
commit a236f636a5
3 changed files with 7 additions and 7 deletions

View File

@ -21147,3 +21147,5 @@
* Removed the 'Q3PopupMenu' dependency from 'RDEditAudio'.
2021-02-15 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'Q3RangeControl' dependency from 'RDEditAudio'.
2021-02-15 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'Q3PointArray' dependency from 'RDEditAudio'.

View File

@ -695,7 +695,7 @@ RDEditAudio::RDEditAudio(RDCart *cart,QString cut_name,int card,
tr("Unable to download peak data, error was:\n\"")+
RDPeaksExport::errorText(conv_err)+"\".");
}
edit_wave_array=new Q3PointArray(EDITAUDIO_WAVEFORM_WIDTH-2);
edit_wave_array=new QPolygon(EDITAUDIO_WAVEFORM_WIDTH-2);
DrawMaps();
//
@ -2542,7 +2542,7 @@ int RDEditAudio::DrawCursor(int xpos,int ypos,int xsize,int ysize,int chan,
QPainter::CompositionMode op)
{
int x;
Q3PointArray *point;
QPolygon *point;
if((samp<0)||(prev<0)) {
return 0;
@ -2559,7 +2559,7 @@ int RDEditAudio::DrawCursor(int xpos,int ypos,int xsize,int ysize,int chan,
if(arrow==RDEditAudio::Left) {
p->setClipRect(0,0,xsize+xpos+10,ysize+ypos);
p->setBrush(color);
point=new Q3PointArray(3);
point=new QPolygon(3);
point->setPoint(0,x,apos);
point->setPoint(1,x+10,apos-5);
point->setPoint(2,x+10,apos+5);
@ -2573,7 +2573,7 @@ int RDEditAudio::DrawCursor(int xpos,int ypos,int xsize,int ysize,int chan,
if(arrow==RDEditAudio::Right) {
p->setClipRect(-10,0,xsize+10,ysize+ypos);
p->setBrush(color);
point=new Q3PointArray(3);
point=new QPolygon(3);
point->setPoint(0,x,apos);
point->setPoint(1,x-10,apos-5);
point->setPoint(2,x-10,apos+5);

View File

@ -21,8 +21,6 @@
#ifndef RDEDIT_AUDIO_H
#define RDEDIT_AUDIO_H
#include <q3pointarray.h>
#include <QAbstractSlider>
#include <QAction>
#include <QCheckBox>
@ -172,7 +170,7 @@ class RDEditAudio : public RDDialog
RDMarkerEdit *edit_cursor_edit[RDEditAudio::LastMarker];
QCursor *edit_arrow_cursor;
QCursor *edit_cross_cursor;
Q3PointArray *edit_wave_array;
QPolygon *edit_wave_array;
QSpinBox *edit_trim_box;
RDMarkerButton *edit_cue_button[RDEditAudio::LastMarker];
QString edit_cue_string;