Text color and element color now do not change with background color

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2678 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
abhishekm71
2013-12-29 17:51:01 +00:00
parent af6091d8b5
commit 04e5961d17
2 changed files with 0 additions and 39 deletions

View File

@@ -198,11 +198,6 @@ void DiagramTextItem::setFontSize(int &s) {
*/
void DiagramTextItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) {
painter -> setRenderHint(QPainter::Antialiasing, false);
QColor color(Diagram::background_color);
color.setBlue(255 - color.blue());
color.setGreen(255 - color.green());
color.setRed(255 - color.red());
setDefaultTextColor(color);
QGraphicsTextItem::paint(painter, option, widget);
}