~sachinr/xpad/xpad-qt

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <QApplication>
#include <QtCore>

#include <app.h>
using namespace std;

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    App app;
    app.LoadPads();
    app.CreateTrayMenu();

    //wait untill quit message is posted
    int ret_value = a.exec();
    app.HideTray();
    return ret_value;
}