comparison widgets/PropertyBox.cpp @ 290:3101c68a00c1

* Restore Scale setting which had mistakenly disappeared from spectrum * Some tweaks to spectrum peaks * Make spectrum default to 4096/75%... or is that overdoing it? * Show harmonic cursor even during playback if in measure mode and mouse in relevant pane * Avoid crash when trying to measure a non-layer * Various adjustments to some icons to make them look better in white-on-black schemes
author Chris Cannam
date Fri, 13 Jul 2007 15:54:17 +0000
parents cd2492c5fe45
children 2f83b6e3b8ca 64e84e5efb76
comparison
equal deleted inserted replaced
289:4ca7562dd246 290:3101c68a00c1
441 } 441 }
442 442
443 cb->setEditable(true); 443 cb->setEditable(true);
444 444
445 } else { // ColourProperty 445 } else { // ColourProperty
446
447 //!!! should be a proper colour combobox class that
448 // manages its own Add New Colour entry...
446 449
447 ColourDatabase *db = ColourDatabase::getInstance(); 450 ColourDatabase *db = ColourDatabase::getInstance();
448 for (size_t i = 0; i < db->getColourCount(); ++i) { 451 for (size_t i = 0; i < db->getColourCount(); ++i) {
449 QString name = db->getColourName(i); 452 QString name = db->getColourName(i);
450 cb->addItem(db->getExamplePixmap(i, QSize(12, 12)), name); 453 cb->addItem(db->getExamplePixmap(i, QSize(12, 12)), name);