C++ (Qt) connect( m_textory, SIGNAL( itemsChanged() ), this, SLOT( updateTextoryCounts() ) );
C++ (Qt)private: Textory * m_textory;
C++ (Qt)void Textory::addItem( Item const & item ){ list.prepend( item ); emit itemsChanged();}
C++ (Qt)void Textory::addItem( Item const & item ){ list.prepend( item ); qDebug() << "adding item " << item.word; emit itemsChanged();}
C++ (Qt) connect( m_textory, SIGNAL( itemsChanged() ), this, SLOT( updateTextoryCounts() ) ); qDebug() << "CONNECT " << connect( m_textory, SIGNAL( itemsChanged() ), this, SLOT( updateTextoryCounts() ) );
C++ (Qt)void TextoryModel::updateTextoryCounts(){ qDebug() << "Textory Changed!"; reset();}