~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/main.cpp

  • Committer: Nathan Osman
  • Date: 2012-06-18 15:36:04 UTC
  • Revision ID: admin@quickmediasolutions.com-20120618153604-zhah626i56drwin5
Added a lot of skeleton code including the settings dialog and implemented the tray icon.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
   along with this program.  If not, see <http://www.gnu.org/licenses/>. */
16
16
 
17
17
#include <QtGui/QApplication>
 
18
#include <CTrayIcon.h>
18
19
 
19
20
int main(int argc, char *argv[])
20
21
{
21
22
    QApplication a(argc, argv);
 
23
    a.setQuitOnLastWindowClosed(false);
 
24
 
 
25
    // Set information about the application
 
26
    a.setApplicationName("NitroShare");
 
27
    a.setOrganizationName("Nathan Osman");
 
28
    a.setOrganizationDomain("quickmediasolutions.com");
 
29
 
 
30
    CTrayIcon icon;
22
31
    
23
32
    return a.exec();
24
33
}