You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.8 KiB

/***************************************************************************
qsconsole.cpp - description
-------------------
begin : Wed Jan 16 2002
copyright : (C) 2002 by kamil
email : kamil@localhost.localdomain
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "qsconsole.h"
QSConsole *QSConsole::m_default_console = NULL;
//-------------------------------------------------------------------------//
QSConsole::QSConsole()
{
m_default_console = this;
}
//-------------------------------------------------------------------------//
QSConsole::~QSConsole()
{
if ( m_default_console == this ) m_default_console = NULL;
}
//-------------------------------------------------------------------------//
void QSConsole::write( const QString& message )
{
if ( m_default_console ) m_default_console->appendText( message );
}
//-------------------------------------------------------------------------//
void QSConsole::appendText( const QString& )
{
// lost in space
}
//-------------------------------------------------------------------------//