~ubuntu-branches/ubuntu/maverick/kdeutils/maverick-proposed

« back to all changes in this revision

Viewing changes to ark/part/part.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-02-28 11:30:24 UTC
  • mfrom: (1.2.41 upstream)
  • Revision ID: james.westby@ubuntu.com-20100228113024-o11z0lf8ertqublf
Tags: 4:4.4.1-0ubuntu1
* New upstream bugfix release:
  - Bump build-depend versions
  - Update kdelirc.install, printer-applet.install and okteta.install
* Backport svn revision 1089254 (LP: #521061)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "jobtracker.h"
33
33
#include "dnddbusinterface.h"
34
34
 
35
 
#include <KParts/GenericFactory>
 
35
#include <KPluginFactory>
36
36
#include <KApplication>
37
37
#include <KAboutData>
38
38
#include <KDebug>
64
64
 
65
65
using namespace Kerfuffle;
66
66
 
67
 
typedef KParts::GenericFactory<Ark::Part> Factory;
68
 
K_EXPORT_COMPONENT_FACTORY(arkpart, Factory)
 
67
K_PLUGIN_FACTORY(Factory, registerPlugin<Ark::Part>();)
 
68
K_EXPORT_PLUGIN(Factory("ark"))
69
69
 
70
70
namespace Ark
71
71
{
72
72
 
73
 
Part::Part(QWidget *parentWidget, QObject *parent, const QStringList& args)
 
73
Part::Part(QWidget *parentWidget, QObject *parent, const QVariantList& args)
74
74
        : KParts::ReadWritePart(parent),
75
75
          m_model(new ArchiveModel(this)),
76
76
          m_splitter(0),
79
79
          m_jobTracker(0)
80
80
{
81
81
    Q_UNUSED(args)
82
 
    setComponentData(Factory::componentData());
 
82
    setComponentData(Factory::componentData(), false);
83
83
 
84
84
    m_splitter = new QSplitter(Qt::Horizontal, parentWidget);
85
85
    setWidget(m_splitter);