gui: rspermissionmatrixwidget: use define for qt::black

This commit is contained in:
chelovechishko 2019-02-17 18:36:09 +09:00
parent 55ff018166
commit 209e1541ff
2 changed files with 10 additions and 9 deletions

View File

@ -299,7 +299,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *)
QPen pen ;
pen.setWidth(2) ;
pen.setBrush(Qt::black) ;
pen.setBrush(FOREGROUND_COLOR) ;
_painter->setPen(pen) ;
int i=0;
@ -350,7 +350,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *)
pen.setWidth(2) ;
if(_current_service_id == it->second.mServiceType)
pen.setBrush(Qt::black) ;
pen.setBrush(FOREGROUND_COLOR) ;
else
pen.setBrush(Qt::gray) ;
@ -364,7 +364,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *)
_painter->drawLine(QPointF(X,Y+3),QPointF(X+text_width,Y+3)) ;
_painter->drawLine(QPointF(X+text_width/2, Y+3), QPointF(X+text_width/2,S*fMATRIX_START_Y+peer_ids.size()*S*fROW_SIZE - S*fROW_SIZE+5)) ;
pen.setBrush(Qt::black) ;
pen.setBrush(FOREGROUND_COLOR) ;
_painter->setPen(pen) ;
_painter->drawText(QPointF(X,Y),name);
@ -497,7 +497,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *)
QPen pen ;
pen.setWidth(2) ;
pen.setBrush(Qt::black) ;
pen.setBrush(FOREGROUND_COLOR) ;
_painter->setPen(pen) ;

View File

@ -33,11 +33,12 @@
#define HOR_SPC 2 /** Space between data points */
#define SCALE_WIDTH 75 /** Width of the scale */
#define BACK_COLOR Qt::white
#define SCALE_COLOR Qt::black
#define GRID_COLOR Qt::lightGray
#define RSDHT_COLOR Qt::magenta
#define ALLDHT_COLOR Qt::yellow
#define BACK_COLOR Qt::white
#define FOREGROUND_COLOR Qt::black
#define SCALE_COLOR Qt::black
#define GRID_COLOR Qt::lightGray
#define RSDHT_COLOR Qt::magenta
#define ALLDHT_COLOR Qt::yellow
#define FONT_SIZE 11