示例#1
0
void LookupWidget::createConnections() {
  connect(ui_->word_input, SIGNAL(textChanged(QString)),
    this, SLOT(lookupWord(QString)));

  connect(ui_->database_selector, SIGNAL(currentIndexChanged(int)),
    this, SLOT(repeatLookup()));

  connect(client_pool_, SIGNAL(definitionReceived(Definition)),
    results_, SLOT(appendResult(Definition)));

  connect(client_pool_, SIGNAL(matchesReceived(Matches)),
    this, SLOT(setCompletionItems(Matches)));

  connect(client_pool_, SIGNAL(databaseListReceived()),
    this, SLOT(updateDatabaseSelector()));
}
示例#2
0
文件: Amp.cpp 项目: damiangr/Toaster
void Amp::midiDefinitionReceived(unsigned short rawVal)
{
  emit definitionReceived(raw2Phys(rawVal, 10.0, 0.0));
}