source/MainGUI.cpp
/**
 * Removes a user with the given username from the channellist.
 *
 * @param username The name of the user.
 */
Removes a user with the given username from the channellist.
@param username The name of the user.
Removes a user with the given username from the channellist . @param username The name of the user .
void MainGUI::removeChannelUser (QString username)
{
    for (int i = 0; i < widget.channelList->count(); i++)
    {
        QListWidgetItem *item = widget.channelList->item(i);
        if (item->data(ChannellistDelegate::USER).toString() == username)
        {
            item = widget.channelList->takeItem(i);
            delete item;
            return;
        }
    }
}
void MainGUI :: removeChannelUser ( QString username ) { for ( int i = 0 ; i < widget . channelList -> count ( ) ; i ++ ) { QListWidgetItem * item = widget . channelList -> item ( i ) ; if ( item -> data ( ChannellistDelegate :: USER ) . toString ( ) == username ) { item = widget . channelList -> takeItem ( i ) ; delete item ; return ; } } }
Removes a user with the given username from the channellist.
Removes a user with the given username from the channellist .