comparison widgets/Thumbwheel.cpp @ 542:5930f2b0b1d2

* some work on improving region editing -- incomplete
author Chris Cannam
date Mon, 03 Aug 2009 16:42:25 +0000
parents e233627a923e
children f4960f8ce798
comparison
equal deleted inserted replaced
541:e233627a923e 542:5930f2b0b1d2
476 float h = height(); 476 float h = height();
477 float h0 = 0.5; 477 float h0 = 0.5;
478 float h1 = h - 0.5; 478 float h1 = h - 0.5;
479 479
480 for (int i = bw-1; i >= 0; --i) { 480 for (int i = bw-1; i >= 0; --i) {
481 // for (int i = 0; i < 1; ++i) {
482 481
483 int grey = (i + 1) * (256 / (bw + 1)); 482 int grey = (i + 1) * (256 / (bw + 1));
484 QColor fc = QColor(grey, grey, grey); 483 QColor fc = QColor(grey, grey, grey);
485 paint.setPen(fc); 484 paint.setPen(fc);
486 485
539 x2 += bw; 538 x2 += bw;
540 539
541 int grey = lrintf(120 * depth); 540 int grey = lrintf(120 * depth);
542 541
543 QColor fc = QColor(grey, grey, grey); 542 QColor fc = QColor(grey, grey, grey);
544 // QColor oc = fc.dark(150); //palette().dark().color();
545 QColor oc = palette().highlight().color(); 543 QColor oc = palette().highlight().color();
546 544
547 paint.setPen(fc); 545 paint.setPen(fc);
548 546
549 if (m_showScale) { 547 if (m_showScale) {