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

Commit a9f7a35d authored by R. Harish Navnit's avatar R. Harish Navnit Committed by Pali Rohár

Latex plugin ported to KF5

parent bcdf448d
......@@ -21,6 +21,7 @@
#include <kaction.h>
#include <klocale.h>
#include <kshortcut.h>
#include <kmessagebox.h>
#include <kicon.h>
#include <qimage.h>
......@@ -36,7 +37,7 @@
LatexGUIClient::LatexGUIClient( Kopete::ChatSession *parent )
: QObject( parent), KXMLGUIClient( parent )
{
setComponentData( LatexPlugin::plugin()->componentData() );
//setComponentData( LatexPlugin::plugin()->componentData() );
connect( LatexPlugin::plugin(), SIGNAL(destroyed(QObject*)), this, SLOT(deleteLater()) );
m_manager = parent;
......
......@@ -30,6 +30,7 @@
#include <ktemporaryfile.h>
#include <kcodecs.h>
#include <kmessagebox.h>
#include <kmessagebox_queued.h>
#include "kopetechatsessionmanager.h"
#include "kopeteuiglobal.h"
......@@ -41,11 +42,10 @@
K_PLUGIN_FACTORY(LatexPluginFactory, registerPlugin<LatexPlugin>();)
K_EXPORT_PLUGIN(LatexPluginFactory( "kopete_latex" ))
LatexPlugin::LatexPlugin( QObject *parent, const QVariantList &/*args*/ )
: Kopete::Plugin( LatexPluginFactory::componentData(), parent )
: Kopete::Plugin( parent )
{
// kDebug(14317) ;
if( !s_pluginStatic )
......
......@@ -19,10 +19,11 @@
#include <qlayout.h>
#include <kparts/componentfactory.h>
//#include <kparts/componentfactory.h>
#include <klocale.h>
#include <kgenericfactory.h>
#include <kdebug.h>
#include <KUrl>
#include <knuminput.h>
#include "latexplugin.h"
......@@ -30,11 +31,9 @@
#include "ui_latexprefsbase.h"
K_PLUGIN_FACTORY(LatexPreferencesFactory, registerPlugin<LatexPreferences>();)
K_EXPORT_PLUGIN(LatexPreferencesFactory( "kcm_kopete_latex" ))
LatexPreferences::LatexPreferences(QWidget *parent, const QVariantList &args)
: KCModule(LatexPreferencesFactory::componentData(), parent, args)
: KCModule(parent, args)
{
QVBoxLayout* l = new QVBoxLayout( this );
QWidget* w = new QWidget;
......
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