source/MainGUI.cpp
/**
 * Adds color data to the QListWidgetItem.
 *
 * @param item QListWidgetItem*.
 */
Adds color data to the QListWidgetItem.
Adds color data to the QListWidgetItem .
void MainGUI::addColor (QListWidgetItem *item)
{
    QString username = item->data(ChannellistDelegate::USER).toString();
    QColor color = gproxy->getConfig()->getUserColor(username);
    item->setData(ChannellistDelegate::COLOR_USER, color);
}
void MainGUI :: addColor ( QListWidgetItem * item ) { QString username = item -> data ( ChannellistDelegate :: USER ) . toString ( ) ; QColor color = gproxy -> getConfig ( ) -> getUserColor ( username ) ; item -> setData ( ChannellistDelegate :: COLOR_USER , color ) ; }
Adds color data to the QListWidgetItem.
Adds color data to the QListWidgetItem .