home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / network / ftpclient / main.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-11  |  928 b   |  34 lines

  1. /****************************************************************************
  2. ** $Id:  qt/main.cpp   3.0.0   edited Jun 1 18:44 $
  3. **
  4. ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of an example program for Qt.  This example
  7. ** program may be used, distributed and modified without limitation.
  8. **
  9. *****************************************************************************/
  10.  
  11. #include <qapplication.h>
  12. #include <qnetwork.h>
  13. #include <qsplitter.h>
  14.  
  15. #include "ftpmainwindow.h"
  16.  
  17. int main( int argc, char **argv )
  18. {
  19.     QApplication a( argc, argv );
  20.  
  21.     // call this to register the FTP network protocol
  22.     // (and in the future more available ones)
  23.     qInitNetworkProtocols();
  24.  
  25.     FtpMainWindow m;
  26.     a.setMainWidget( &m );
  27.     QValueList<int> sizes;
  28.     sizes << 300 << 70 << 300;
  29.     m.mainSplitter()->setSizes( sizes );
  30.     m.resize( 800, 600 );
  31.     m.show();
  32.     return a.exec();
  33. }
  34.