Ticket #21039: patch-src-vidalia-tray-trayicon_qt.cpp.diff

File patch-src-vidalia-tray-trayicon_qt.cpp.diff, 571 bytes (added by hsivank@…, 15 years ago)
  • src/vidalia/tray/trayicon_qt.cpp

    old new  
    1414** \brief Tray icon wrapper around Qt's QSystemTrayIcon implementation
    1515*/
    1616
     17#include <QApplication>
    1718#include <QMouseEvent>
    1819#include "trayicon_qt.h"
    1920
     
    3031void
    3132TrayIconImpl::setIcon(const QString &iconFile)
    3233{
    33   QSystemTrayIcon::setIcon(QIcon(iconFile));
     34        QApplication::setWindowIcon(QPixmap(iconFile));
    3435}
    3536
    3637/** Called when the user interacts with the tray icon and propoagates