[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: branches/KDE/3.5/kdelibs/kio
From: André_Wöbbeking <Woebbeking () kde ! org>
Date: 2007-01-25 17:14:04
Message-ID: 200701251814.05086.Woebbeking () kde ! org
[Download RAW message or body]
On Thursday 25 January 2007, André Wöbbeking wrote:
> On Thursday 25 January 2007, David Faure wrote:
> > SVN commit 627004 by dfaure:
> >
> > Forward mimetype signal from the get job to the FileCopyJob, to
> > help kpdf with #140482. (and any other kpart that wants to know
> > what it's opening exactly) CCMAIL: Albert Astals Cid
> > <aacid@kde.org>
> >
> >
> > M +9 -2 kio/job.cpp
> > M +14 -1 kio/jobclasses.h
> > M +18 -3 tests/jobtest.cpp
> > M +2 -0 tests/jobtest.h
> >
> >
> > --- branches/KDE/3.5/kdelibs/kio/kio/job.cpp #627003:627004
> > @@ -1808,8 +1808,10 @@
> > connectSubjob( m_getJob ); // Progress info depends on
> > get m_getJob->resume(); // Order a beer
> >
> > - connect( m_getJob, SIGNAL(data(KIO::Job *, const
> > QByteArray&)), - SLOT( slotData(KIO::Job *,
> > const QByteArray&))); + connect( m_getJob,
> > SIGNAL(data(KIO::Job*,const QByteArray&)), +
> > SLOT( slotData(KIO::Job*,const QByteArray&)) ); +
> > connect( m_getJob, SIGNAL(mimetype(KIO::Job*,const QString&) ), +
> > SLOT(slotMimetype(KIO::Job*,const QString&)) ); }
> > else // copyjob
> > {
> > @@ -1870,6 +1872,11 @@
> > m_buffer = QByteArray();
> > }
> >
> > +void FileCopyJob::slotMimetype( KIO::Job*, const QString& type )
> > +{
> > + emit mimetype( this, type );
> > +}
>
> You know that you can connect a signal directly to a signal?
or is this != not used job pointer?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic