=begin
/****************************************************************************
** $Id: application.rb,v 1.1.1.2 2000/11/14 17:04:53 horie Exp $
**
** Copyright (C) 1992-2000 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.
**
*****************************************************************************/
=end
require "qt2"
include Qt2
require "mdi_application_lib.rb"
    QApplication::setStyle(QCDEStyle.new)
    a = QApplication.new([$0]+ARGV)
#    QApplication::setStyle(QWindowsStyle.new)
    mw = ApplicationWindow.new
    mw.setCaption( QString.new("Multiple Document") )
    mw.show
    connect( a, QSIGNAL("lastWindowClosed()"), a, QSLOT("quit()") );
    a.exec
