Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix missing component data of KomparePart

parent ddf3cafd
......@@ -64,10 +64,25 @@ K_PLUGIN_FACTORY( KomparePartFactory, registerPlugin<KomparePart>(); )
ViewSettings* KomparePart::m_viewSettings = 0L;
DiffSettings* KomparePart::m_diffSettings = 0L;
static KAboutData createAboutData()
{
KAboutData about(QStringLiteral("kompare"), i18n("KomparePart"), QStringLiteral("4.0"),
QString(), KAboutLicense::GPL);
about.addAuthor(i18n("John Firebaugh"), i18n("Author"), "jfirebaugh@kde.org");
about.addAuthor(i18n("Otto Bruggeman"), i18n("Author"), "bruggie@gmail.com" );
about.addAuthor(i18n("Kevin Kofler"), i18n("Author"), "kevin.kofler@chello.at" );
return about;
}
KomparePart::KomparePart( QWidget *parentWidget, QObject *parent, const QVariantList & /*args*/ ) :
KParts::ReadWritePart(parent),
m_info()
{
setComponentData(createAboutData());
// set our XML-UI resource file
setXMLFile(QStringLiteral("komparepartui.rc"));
if( !m_viewSettings ) {
m_viewSettings = new ViewSettings( 0 );
}
......@@ -149,9 +164,6 @@ KomparePart::KomparePart( QWidget *parentWidget, QObject *parent, const QVariant
setupActions();
// set our XML-UI resource file
setXMLFile( "komparepartui.rc" );
// we are read-write by default -> uhm what if we are opened by lets say konq in RO mode ?
// Then we should not be doing this...
setReadWrite( true );
......@@ -644,15 +656,6 @@ void KomparePart::slotPaintRequested( QPrinter* printer )
qCDebug(KOMPAREPART) << "Done painting something...";
}
KAboutData* KomparePart::createAboutData()
{
KAboutData *about = new KAboutData("kompare", i18n("KomparePart"), "4.0");
about->addAuthor(i18n("John Firebaugh"), i18n("Author"), "jfirebaugh@kde.org");
about->addAuthor(i18n("Otto Bruggeman"), i18n("Author"), "bruggie@gmail.com" );
about->addAuthor(i18n("Kevin Kofler"), i18n("Author"), "kevin.kofler@chello.at" );
return about;
}
void KomparePart::slotSetStatus( enum Kompare::Status status )
{
updateActions();
......
......@@ -85,8 +85,6 @@ public:
// Do we really want to expose this ???
const Diff2::KompareModelList* model() const { return m_modelList; };
static KAboutData *createAboutData();
public:
// Reimplemented from the KompareInterface
/**
......
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