Exemple #1
0
    void TrayIcon::setMacIcon()
    {
#ifdef __APPLE__
        QString state = MyInfo()->state().toLower();
        
        if (state.length() == 0 ||
            state == "mobile")
        {
            state = "online";
        }
        
        bool unreads = Logic::GetRecentsModel()->totalUnreads() != 0;
        QString iconResource(QString(":resources/main_window/mac_tray/icq_osxlogo_%1_%2%3_100.png").
                             arg(state).arg(MacSupport::currentTheme()).
                             arg(unreads?"_unread":""));
        QIcon icon(Utils::parse_image_name(iconResource));
        Icon_->setIcon(icon);
#endif
    }
Exemple #2
0
QIcon Fixture::getIconFromType() const
{
    return QIcon(iconResource());
}