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 'RDMarkerBar'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
cc87ac7f47
commit
e4a70a5f03
@ -21160,3 +21160,5 @@
|
|||||||
based API.
|
based API.
|
||||||
2021-02-15 Fred Gleason <fredg@paravelsystems.com>
|
2021-02-15 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Removed the 'Q3PointArray' dependency from 'RDTransportButton'.
|
* Removed the 'Q3PointArray' dependency from 'RDTransportButton'.
|
||||||
|
2021-02-15 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Removed the 'Q3PointArray' dependency from 'RDMarkerBar'.
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <qpainter.h>
|
#include <QPainter>
|
||||||
#include <q3pointarray.h>
|
#include <QPolygon>
|
||||||
|
|
||||||
#include <rdmarker_bar.h>
|
#include <rdmarker_bar.h>
|
||||||
|
|
||||||
@ -83,14 +83,14 @@ void RDMarkerBar::DrawMap()
|
|||||||
{
|
{
|
||||||
QPixmap *pix=new QPixmap(size());
|
QPixmap *pix=new QPixmap(size());
|
||||||
QPainter *p=new QPainter(pix);
|
QPainter *p=new QPainter(pix);
|
||||||
Q3PointArray *pt;
|
QPolygon *pt;
|
||||||
p->fillRect(0,0,size().width(),size().height(),backgroundColor());
|
p->fillRect(0,0,size().width(),size().height(),backgroundColor());
|
||||||
if(marker_length>0) {
|
if(marker_length>0) {
|
||||||
p->setPen(RD_CUEEDITOR_START_MARKER);
|
p->setPen(RD_CUEEDITOR_START_MARKER);
|
||||||
p->setBrush(RD_CUEEDITOR_START_MARKER);
|
p->setBrush(RD_CUEEDITOR_START_MARKER);
|
||||||
p->fillRect(size().width()*marker_pos[RDMarkerBar::Start]/marker_length-2,0,
|
p->fillRect(size().width()*marker_pos[RDMarkerBar::Start]/marker_length-2,0,
|
||||||
4,size().height(),RD_CUEEDITOR_START_MARKER);
|
4,size().height(),RD_CUEEDITOR_START_MARKER);
|
||||||
pt=new Q3PointArray(3);
|
pt=new QPolygon(3);
|
||||||
pt->setPoint(0,size().width()*marker_pos[RDMarkerBar::Start]/marker_length-2,
|
pt->setPoint(0,size().width()*marker_pos[RDMarkerBar::Start]/marker_length-2,
|
||||||
size().height()/2-1);
|
size().height()/2-1);
|
||||||
pt->setPoint(1,size().width()*marker_pos[RDMarkerBar::Start]/marker_length-12,
|
pt->setPoint(1,size().width()*marker_pos[RDMarkerBar::Start]/marker_length-12,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user