void BtSearchOptionsArea::initConnections() { QObject::connect( m_searchTextCombo->lineEdit(), SIGNAL(returnPressed ()), this, SLOT( slotSearchTextEditReturnPressed() ) ); connect(m_chooseModulesButton, SIGNAL(clicked()), this, SLOT(chooseModules())); connect(m_chooseRangeButton, SIGNAL(clicked()), this, SLOT(setupRanges())); connect(m_modulesCombo, SIGNAL(activated(int)), this, SLOT(moduleListTextSelected(int) ) ); connect(m_helpLabel, SIGNAL(linkActivated(QString)), this, SLOT(syntaxHelp())); connect(m_searchTextCombo, SIGNAL(editTextChanged(const QString&)), this, SLOT(slotValidateText(const QString&))); }
void ColorFilter::setChannel3High(int value) { // Ensure the value is in the proper range assert(value < 256 && "Range value overflow"); // Store the new value m_channel3High = (unsigned char)value; // Setup the new ranges setupRanges(); }
ColorFilter::ColorFilter( unsigned char channel1Low, unsigned char channel1High, unsigned char channel2Low, unsigned char channel2High, unsigned char channel3Low, unsigned char channel3High) : m_channel1Low(channel1Low), m_channel1High(channel1High), m_channel2Low(channel2Low), m_channel2High(channel2High), m_channel3Low(channel3Low), m_channel3High(channel3High) { setupRanges(); }