Yingdi Yu | 614db14 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2013, Regents of the University of California |
| 4 | * Yingdi Yu |
| 5 | * |
| 6 | * BSD license, See the LICENSE file for more information |
| 7 | * |
| 8 | * Author: Yingdi Yu <yingdi@cs.ucla.edu> |
| 9 | */ |
| 10 | |
| 11 | #include <QApplication> |
Yingdi Yu | def9061 | 2013-10-09 22:34:42 -0700 | [diff] [blame^] | 12 | #include <QSystemTrayIcon> |
Yingdi Yu | 614db14 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 13 | |
| 14 | #include "chronochat.h" |
| 15 | |
| 16 | int main(int argc, char *argv[]) |
| 17 | { |
| 18 | QApplication app(argc, argv); |
| 19 | |
Yingdi Yu | def9061 | 2013-10-09 22:34:42 -0700 | [diff] [blame^] | 20 | |
| 21 | // app.setWindowIcon(QIcon("/Users/yuyingdi/Develop/QT/demo.icns")); |
| 22 | // // #else |
| 23 | // // app.setWindowIcon(QIcon("/Users/yuyingdi/Develop/QT/images/icon_large.png")); |
| 24 | // // #endif |
Yingdi Yu | 614db14 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 25 | |
| 26 | ChronoChat dialog; |
| 27 | |
| 28 | dialog.show (); |
Yingdi Yu | def9061 | 2013-10-09 22:34:42 -0700 | [diff] [blame^] | 29 | dialog.activateWindow (); |
| 30 | dialog.raise (); |
Yingdi Yu | 614db14 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 31 | |
| 32 | return app.exec(); |
| 33 | } |