Last change
on this file since 168 was 160, checked in by dmik, 19 years ago |
Imported table and iconview modules and a bunch of dependent examples from the official release 3.3.1 from Trolltech.
|
-
Property svn:keywords
set to
Id
|
File size:
416 bytes
|
Line | |
---|
1 | #include <qapplication.h>
|
---|
2 | #include "chartform.h"
|
---|
3 |
|
---|
4 |
|
---|
5 | int main( int argc, char *argv[] )
|
---|
6 | {
|
---|
7 | QApplication app( argc, argv );
|
---|
8 |
|
---|
9 | QString filename;
|
---|
10 | if ( app.argc() > 1 ) {
|
---|
11 | filename = app.argv()[1];
|
---|
12 | if ( !filename.endsWith( ".cht" ) )
|
---|
13 | filename = QString::null;
|
---|
14 | }
|
---|
15 |
|
---|
16 | ChartForm *cf = new ChartForm( filename );
|
---|
17 | app.setMainWidget( cf );
|
---|
18 | cf->show();
|
---|
19 |
|
---|
20 | return app.exec();
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.