File: main.cpp

package info (click to toggle)
qt2 1%3A2.0.2-1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 26,248 kB
  • ctags: 24,915
  • sloc: cpp: 150,477; makefile: 22,439; ansic: 21,468; yacc: 1,445; sh: 948; perl: 458; lex: 393; pascal: 141
file content (27 lines) | stat: -rw-r--r-- 814 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/****************************************************************************
** $Id: main.cpp,v 1.3 1999/06/08 14:20:27 aavit Exp $
**
** Copyright (C) 1992-1999 Troll Tech AS.  All rights reserved.
**
** This file is part of an example program for Qt.  This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/

#include "aclock.h"
#include <qapplication.h>


int main( int argc, char **argv )
{
    QApplication a( argc, argv );
    AnalogClock *clock = new AnalogClock;
    if ( argc == 2 &&strcmp(argv[1],"-transparent") == 0 )
	clock->setAutoMask( TRUE );
    clock->resize( 100, 100 );
    a.setMainWidget( clock );
    clock->show();
    int result = a.exec();
    delete clock;
    return result;
}