~ubuntu-branches/ubuntu/precise/kde4libs/precise-security

« back to all changes in this revision

Viewing changes to kparts/part.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Kolberg
  • Date: 2012-03-03 00:25:28 UTC
  • mfrom: (1.14.15)
  • Revision ID: package-import@ubuntu.com-20120303002528-chhwyfluldkicy5k
Tags: 4:4.8.1-0ubuntu1
* New upstream release
  - Update symbol files

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
    if ( d->m_widget )
197
197
    {
198
198
        // We need to disconnect first, to avoid calling it !
199
 
        disconnect( d->m_widget, SIGNAL( destroyed() ),
200
 
                    this, SLOT( slotWidgetDestroyed() ) );
 
199
        disconnect( d->m_widget, SIGNAL(destroyed()),
 
200
                    this, SLOT(slotWidgetDestroyed()) );
201
201
    }
202
202
 
203
203
    if ( d->m_manager )
282
282
{
283
283
    Q_D(Part);
284
284
    d->m_widget = widget;
285
 
    connect( d->m_widget, SIGNAL( destroyed() ),
286
 
             this, SLOT( slotWidgetDestroyed() ), Qt::UniqueConnection );
 
285
    connect( d->m_widget, SIGNAL(destroyed()),
 
286
             this, SLOT(slotWidgetDestroyed()), Qt::UniqueConnection );
287
287
}
288
288
 
289
289
void Part::setSelectable( bool selectable )
622
622
    m_job->ui()->setWindow(q->widget() ? q->widget()->topLevelWidget() : 0);
623
623
    emit q->started(m_job);
624
624
    QObject::connect(m_job, SIGNAL(result(KJob*)), q, SLOT(_k_slotJobFinished(KJob*)));
625
 
    QObject::connect(m_job, SIGNAL(mimetype(KIO::Job*, QString)),
 
625
    QObject::connect(m_job, SIGNAL(mimetype(KIO::Job*,QString)),
626
626
                     q, SLOT(_k_slotGotMimeType(KIO::Job*,QString)));
627
627
}
628
628
 
976
976
        }
977
977
        d->m_uploadJob = KIO::file_move( uploadUrl, d->m_url, -1, KIO::Overwrite );
978
978
        d->m_uploadJob->ui()->setWindow( widget() ? widget()->topLevelWidget() : 0 );
979
 
        connect( d->m_uploadJob, SIGNAL( result( KJob * ) ), this, SLOT( _k_slotUploadFinished (KJob *) ) );
 
979
        connect( d->m_uploadJob, SIGNAL(result(KJob*)), this, SLOT(_k_slotUploadFinished(KJob*)) );
980
980
        return true;
981
981
    }
982
982
}