mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
gui: rspermissionmatrixwidget: use define for qt::black
This commit is contained in:
parent
55ff018166
commit
209e1541ff
@ -299,7 +299,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *)
|
|||||||
|
|
||||||
QPen pen ;
|
QPen pen ;
|
||||||
pen.setWidth(2) ;
|
pen.setWidth(2) ;
|
||||||
pen.setBrush(Qt::black) ;
|
pen.setBrush(FOREGROUND_COLOR) ;
|
||||||
|
|
||||||
_painter->setPen(pen) ;
|
_painter->setPen(pen) ;
|
||||||
int i=0;
|
int i=0;
|
||||||
@ -350,7 +350,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *)
|
|||||||
pen.setWidth(2) ;
|
pen.setWidth(2) ;
|
||||||
|
|
||||||
if(_current_service_id == it->second.mServiceType)
|
if(_current_service_id == it->second.mServiceType)
|
||||||
pen.setBrush(Qt::black) ;
|
pen.setBrush(FOREGROUND_COLOR) ;
|
||||||
else
|
else
|
||||||
pen.setBrush(Qt::gray) ;
|
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,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)) ;
|
_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->setPen(pen) ;
|
||||||
|
|
||||||
_painter->drawText(QPointF(X,Y),name);
|
_painter->drawText(QPointF(X,Y),name);
|
||||||
@ -497,7 +497,7 @@ void RSPermissionMatrixWidget::paintEvent(QPaintEvent *)
|
|||||||
|
|
||||||
QPen pen ;
|
QPen pen ;
|
||||||
pen.setWidth(2) ;
|
pen.setWidth(2) ;
|
||||||
pen.setBrush(Qt::black) ;
|
pen.setBrush(FOREGROUND_COLOR) ;
|
||||||
|
|
||||||
_painter->setPen(pen) ;
|
_painter->setPen(pen) ;
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
#define SCALE_WIDTH 75 /** Width of the scale */
|
#define SCALE_WIDTH 75 /** Width of the scale */
|
||||||
|
|
||||||
#define BACK_COLOR Qt::white
|
#define BACK_COLOR Qt::white
|
||||||
|
#define FOREGROUND_COLOR Qt::black
|
||||||
#define SCALE_COLOR Qt::black
|
#define SCALE_COLOR Qt::black
|
||||||
#define GRID_COLOR Qt::lightGray
|
#define GRID_COLOR Qt::lightGray
|
||||||
#define RSDHT_COLOR Qt::magenta
|
#define RSDHT_COLOR Qt::magenta
|
||||||
|
Loading…
Reference in New Issue
Block a user