| 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 "textdialog_p.h"
#include <QVBoxLayout>
#include <QTextEdit>
/*!
\internal
Creates a simple dialog containing a text editor.
*/
TextDialog::TextDialog(QWidget *parent)
: QDialog(parent)
, textEdit(0)
{
textEdit = new QTextEdit(this);
QVBoxLayout *layout = new QVBoxLayout;
setLayout(layout);
layout->addWidget(textEdit);
}
/*!
\internal
Returns the document object for the text editor.
*/
QTextDocument *TextDialog::document() const
{
return textEdit->document();
}
| Copyright © 2007 Trolltech | Trademarks | Qtopia 4.3.0 |