• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

outputview

outputmodel.cpp

00001 /***************************************************************************
00002  *   This file is part of KDevelop                                         *
00003  *   Copyright 2007 Andreas Pakulat <apaku@gmx.de>                     *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU Library General Public License as       *
00007  *   published by the Free Software Foundation; either version 2 of the    *
00008  *   License, or (at your option) any later version.                       *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU Library General Public     *
00016  *   License along with this program; if not, write to the                 *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
00019  ***************************************************************************/
00020 
00021 #include "outputmodel.h"
00022 
00023 #include <QtCore/QStringList>
00024 
00025 namespace KDevelop
00026 {
00027 
00028 OutputModel::OutputModel( QObject* parent )
00029     : QStandardItemModel( parent ), d(0)
00030 {
00031 
00032 }
00033 
00034 void OutputModel::appendLine( const QString& line )
00035 {
00036     appendRow( new QStandardItem( line ) );
00037 }
00038 
00039 void OutputModel::appendLines( const QStringList& lines)
00040 {
00041     Q_FOREACH( QString s, lines )
00042     {
00043         appendRow( new QStandardItem( s ) );
00044     }
00045 }
00046 
00047 }
00048 
00049 #include "outputmodel.moc"

outputview

Skip menu "outputview"
  • Main Page
  • Namespace List
  • File List
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  •     interfaces
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal