Changeset 29 for main.cpp


Ignore:
Timestamp:
01/06/08 11:59:56 (4 years ago)
Author:
roeland
Message:

Basic system tray icon works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.cpp

    r25 r29  
    11#include <QApplication> 
     2#include <QSystemTrayIcon> 
     3#include <QMessageBox> 
    24 
    35#include "gui/main_window.h" 
     
    911    QApplication::setOrganizationName("lowblogprojects"); 
    1012 
     13    if (!QSystemTrayIcon::isSystemTrayAvailable()) { 
     14        QMessageBox::critical(0, QObject::tr("Systray"), 
     15            QObject::tr("I couldn't detect any system tray on this system.")); 
     16        return 1; 
     17    } 
     18 
    1119    MainWindow w; 
    1220    w.show(); 
Note: See TracChangeset for help on using the changeset viewer.