void DeclarativeLabelExtension::buddyDestroyed()
{
  if (m_buddy != 0) {
    m_buddy = 0;
    emit buddyChanged();
  }
}
void DeclarativeLabelExtension::setBuddy(QWidget *buddy)
{
  if (buddy == m_buddy) {
    return;
  }

  if (m_buddy) {
    disconnect(m_buddy, SIGNAL(destroyed()), this, SLOT(buddyDestroyed()));
  }

  m_buddy = buddy;

  if (m_buddy) {
    connect(m_buddy, SIGNAL(destroyed()), this, SLOT(buddyDestroyed()));
  }

  emit buddyChanged();
}
void SelectBuddyComboBox::currentIndexChangedSlot(int index)
{
	if (KaduComboBox<Buddy>::currentIndexChangedSlot(index))
		emit buddyChanged(CurrentValue);
}