| Home · All Classes · Grouped Classes · Annotated · Functions |
/**************************************************************************** ** ** Copyright (C) 2000-2007 TROLLTECH ASA. All rights reserved. ** ** This file is part of the Opensource Edition of the Qtopia Toolkit. ** ** $TROLLTECH_DUAL_LICENSE$ ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ****************************************************************************/ #include "notesdemo.h" #include "notesdemo_p.h" #include "textdialog_p.h" #include <qsoftmenubar.h> #include <QVBoxLayout> #include <QDocumentSelector> /*! * Constructs a NotesDemo object which is a child of 'parent', with the * name 'name' and widget flags set to 'f' */ NotesDemo::NotesDemo( QWidget *parent, Qt::WFlags f ) : QWidget( parent, f ) , priv(0) { priv = new NotesDemoPrivate(this); QVBoxLayout *layout = new QVBoxLayout; setLayout(layout); layout->addWidget(priv->documentSelector()); // QDocumentSelector will put a default menu in for us, so we don't have to // worry about that. } /*! * Destroys the object and frees any allocated resources */ NotesDemo::~NotesDemo() { // no need to delete child widgets, Qt does it all for us }
| Copyright © 2007 Trolltech | Trademarks | Qtopia 4.3.0 |