~brendan-donegan/checkbox/bug934243_fix_virt

« back to all changes in this revision

Viewing changes to qt/frontend/step.cpp

  • Committer: Daniel Manrique
  • Date: 2012-02-14 21:08:17 UTC
  • Revision ID: daniel.manrique@canonical.com-20120214210817-x8a0viyep6t981k3
Changed color of the step bubbles to Ubuntu Orange, and made it parametrizable with HTML RGB notation

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
#include "step.h"
9
9
 
 
10
#define STEP_COLOR "#DD3814"
 
11
 
10
12
Step::Step(QWidget *parent, QString text, QString index)
11
13
{
12
14
    setParent(parent);
16
18
    if (index != "") {
17
19
        QGraphicsScene *scene = new QGraphicsScene(0, 0, 20, 20);
18
20
        QGraphicsEllipseItem *item = new QGraphicsEllipseItem(0, 0, 20, 20);
19
 
        item->setBrush( Qt::yellow );
 
21
        item->setBrush(QBrush(STEP_COLOR));
20
22
        item->setPos(0,0);
21
23
        scene->addItem(item);
22
24
        item->setPos(0,0);