コード例 #1
0
void AddressTableModel::appendAddress(const t_address_card& card)
{
	qDebug() << "Appending contact" << QString::fromStdString(card.get_display_name());

	beginInsertRows(QModelIndex(), m_data.size(), m_data.size());
	m_data << card;
	endInsertRows();
}
コード例 #2
0
void AddressListViewItem::update(const t_address_card &card) {
	address_card = card;
	setText(COL_ADDR_NAME, card.get_display_name().c_str());
	setText(COL_ADDR_PHONE, card.sip_address.c_str());
	setText(COL_ADDR_REMARK, card.remark.c_str());
}
コード例 #3
0
AddressListViewItem::AddressListViewItem(Q3ListView *parent, const t_address_card &card) :
		Q3ListViewItem(parent, card.get_display_name().c_str(), 
			      card.sip_address.c_str(), card.remark.c_str()),
		address_card(card)
{}