Add an initial Qt port.
[dhcpcd-ui] / src / dhcpcd-qt / main.cpp
1 #include <QtGui>
2
3 #include "dhcpcd-qt.h"
4
5 int
6 main(int argc, char **argv)
7 {
8
9         QApplication app(argc, argv);
10
11         if (!QSystemTrayIcon::isSystemTrayAvailable()) {
12                 QMessageBox::critical(0, QObject::tr("Systray"),
13                     QObject::tr("No system tray available"));
14                 return EXIT_FAILURE;
15         }
16
17         QApplication::setQuitOnLastWindowClosed(false);
18
19         DhcpcdQt dhcpcdQt;
20         return app.exec();
21 }