source/MainGUI.cpp
/**
 * Adds tooltip information to the QListWidgetItem.
 *
 * @param item QListWidgetItem*.
 */
Adds tooltip information to the QListWidgetItem.
Adds tooltip information to the QListWidgetItem .
void MainGUI::addTooltip(QListWidgetItem* item)
{
    QString username = item->data(ChannellistDelegate::USER).toString();
    if (username == "baerli_graz" || username == "klingone_graz")
    {
        item->setToolTip("Creator of GhostGraz");
    }
    else if (username == "Phyton" || username == "Manufactoring")
    {
        item->setToolTip("Creator of GProxy GhostGraz");
    }
    else if (username == "Noman(1)")
    {
        item->setToolTip("Little hepler of Gproxy GhostGraz");
    }
    else if (username.startsWith("GhostGraz"))
    {
        item->setToolTip("GhostGraz bot");
    }
    else if (isAdmin(username))
    {
        item->setToolTip("GhostGraz admin");
    }
}
void MainGUI :: addTooltip ( QListWidgetItem * item ) { QString username = item -> data ( ChannellistDelegate :: USER ) . toString ( ) ; if ( username == " " || username == " " ) { item -> setToolTip ( " " ) ; } else if ( username == " " || username == " " ) { item -> setToolTip ( " " ) ; } else if ( username == " " ) { item -> setToolTip ( " " ) ; } else if ( username . startsWith ( " " ) ) { item -> setToolTip ( " " ) ; } else if ( isAdmin ( username ) ) { item -> setToolTip ( " " ) ; } }
Adds tooltip information to the QListWidgetItem.
Adds tooltip information to the QListWidgetItem .