Commit c53a0cd7 authored by Bernd Gehrmann's avatar Bernd Gehrmann
Browse files

Fixed char buffer to QString conversion in CvsProgressDialog

svn path=/trunk/kdesdk/cervisia/; revision=163072
parent 673b5c92
/*
* Copyright (C) 1999-2001 Bernd Gehrmann
* Copyright (C) 1999-2002 Bernd Gehrmann
* bernd@physik.hu-berlin.de
*
* This program may be distributed under the terms of the Q Public
......@@ -11,6 +11,9 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "cvsprogressdlg.h"
#include <qpushbutton.h>
#include <qdir.h>
#include <qlayout.h>
......@@ -27,9 +30,6 @@
#include "misc.h"
#include "cervisiapart.h"
#include "cvsprogressdlg.h"
#include "cvsprogressdlg.moc"
CvsProgressDialog::CvsProgressDialog(const char *text, QWidget *parent)
: QSemiModal(parent, "", true), childproc(0)
......@@ -204,7 +204,7 @@ bool CvsProgressDialog::processOutput()
void CvsProgressDialog::receivedOutputNongui(KProcess *, char *buffer, int buflen)
{
buf += QString::fromLocal8Bit(buffer, buflen+1);
buf += QString::fromLocal8Bit(buffer, buflen);
if (processOutput())
{
stopNonguiPart();
......@@ -215,7 +215,7 @@ void CvsProgressDialog::receivedOutputNongui(KProcess *, char *buffer, int bufle
void CvsProgressDialog::receivedOutput(KProcess *, char *buffer, int buflen)
{
buf += QString::fromLocal8Bit(buffer, buflen+1);
buf += QString::fromLocal8Bit(buffer, buflen);
(void) processOutput();
}
......@@ -257,6 +257,8 @@ void CvsProgressDialog::closeEvent(QCloseEvent *e)
QSemiModal::closeEvent(e);
}
#include "cvsprogressdlg.moc"
// Local Variables:
// c-basic-offset: 4
// End:
/*
* Copyright (C) 1999-2001 Bernd Gehrmann
* Copyright (C) 1999-2002 Bernd Gehrmann
* bernd@physik.hu-berlin.de
*
* This program may be distributed under the terms of the Q Public
......@@ -12,18 +12,17 @@
*/
#ifndef _CVSPROGRESSDLG_H_
#define _CVSPROGRESSDLG_H_
#ifndef CVSPROGRESSDLG_H
#define CVSPROGRESSDLG_H
#include <qsemimodal.h>
#include <qstrlist.h>
#include <qstringlist.h>
class KProcess;
class QListBox;
class QPushButton;
class QCString;
class Gear;
class KAnimWidget;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment