Commit 9e3dea26 authored by Alexey Chernov's avatar Alexey Chernov Committed by Pali Rohár

Port of History plugin

parent 757b6c99
......@@ -24,12 +24,12 @@ endif (WITH_latex AND UNIX)
if (WITH_autoreplace)
add_subdirectory( autoreplace )
endif (WITH_autoreplace)
#[[if (WITH_history)
if (WITH_history)
add_subdirectory( history )
endif (WITH_history)
if (WITH_history2)
add_subdirectory( history2 )
endif (WITH_history2)]]
endif (WITH_history2)
if (WITH_contactnotes)
add_subdirectory( contactnotes )
endif (WITH_contactnotes)
......
......@@ -14,15 +14,12 @@ set(kopete_history_PART_SRCS
historyguiclient.cpp
historyimport.cpp )
ki18n_wrap_ui(kopete_history_PART_SRCS historyviewer.ui )
kconfig_add_kcfg_files(kopete_history_PART_SRCS historyconfig.kcfgc )
add_library(kopete_history MODULE ${kopete_history_PART_SRCS})
set_target_properties(kopete_history PROPERTIES AUTOMOC TRUE)
target_link_libraries(kopete_history KF5::KHtml kopete )
target_link_libraries(kopete_history Qt5::Widgets KF5::KHtml kopete )
install(TARGETS kopete_history DESTINATION ${PLUGIN_INSTALL_DIR})
......@@ -31,15 +28,14 @@ install(TARGETS kopete_history DESTINATION ${PLUGIN_INSTALL_DIR})
set(kcm_kopete_history_PART_SRCS historypreferences.cpp )
ki18n_wrap_ui(kcm_kopete_history_PART_SRCS historyprefsui.ui )
kconfig_add_kcfg_files(kcm_kopete_history_PART_SRCS historyconfig.kcfgc )
add_library(kcm_kopete_history MODULE ${kcm_kopete_history_PART_SRCS})
set_target_properties(kcm_kopete_history PROPERTIES AUTOMOC TRUE)
target_link_libraries(kcm_kopete_history kopete )
target_link_libraries(kcm_kopete_history KF5::KCMUtils Qt5::Widgets kopete )
install(TARGETS kcm_kopete_history DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -15,7 +15,7 @@
#include <QtCore/QDir>
#include <QtCore/QRegExp>
#include <QtCore/QTextStream>
#include <QtGui/QApplication>
#include <QApplication>
#include <QtXml/QDomDocument>
#include <kconfig.h>
......@@ -23,8 +23,10 @@
#include <klocale.h>
#include <kstandarddirs.h>
#include <kmessagebox.h>
#include <kprogressdialog.h>
#include <ksavefile.h>
#include <QProgressDialog>
#include <QSaveFile>
#include <QStandardPaths>
#include <KSharedConfig>
#include "kopetepluginmanager.h"
#include "kopeteaccount.h"
......@@ -41,12 +43,13 @@ void HistoryPlugin::convertOldHistory()
bool deleteFiles= KMessageBox::questionYesNo( Kopete::UI::Global::mainWidget(),
i18n( "Would you like to remove the old history files?" ) , i18n( "History Converter" ), KStandardGuiItem::del(), KGuiItem( i18n("Keep") ) ) == KMessageBox::Yes;
KProgressDialog *progressDlg=new KProgressDialog(Kopete::UI::Global::mainWidget() , i18n( "History converter" ));
QProgressDialog *progressDlg = new QProgressDialog(Kopete::UI::Global::mainWidget() );
progressDlg->setWindowTitle(i18n( "History converter" ));
progressDlg->setModal(true); //modal to make sure the user will not doing stupid things (we have a qApp->processEvents())
progressDlg->setAllowCancel(false); //because i am too lazy to allow to cancel
progressDlg->setCancelButton(0); //because i am too lazy to allow to cancel
QString kopetedir=KStandardDirs::locateLocal( "data", QString::fromLatin1( "kopete"));
QString kopetedir=QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QString::fromLatin1( "kopete");
QDir d( kopetedir ); //d should point to ~/.kde/share/apps/kopete/
d.setFilter( QDir::Dirs );
......@@ -72,27 +75,27 @@ void HistoryPlugin::convertOldHistory()
if(fi.fileName() == "MSNProtocol" || fi.fileName() == "msn_logs" )
{
protocolId="MSNProtocol";
accountId=KGlobal::config()->group("MSN").readEntry( "UserID" );
accountId=KSharedConfig::openConfig()->group("MSN").readEntry( "UserID" );
}
else if(fi.fileName() == "ICQProtocol" || fi.fileName() == "icq_logs" )
{
protocolId="ICQProtocol";
accountId=KGlobal::config()->group("ICQ").readEntry( "UIN" );
accountId=KSharedConfig::openConfig()->group("ICQ").readEntry( "UIN" );
}
else if(fi.fileName() == "AIMProtocol" || fi.fileName() == "aim_logs" )
{
protocolId="AIMProtocol";
accountId=KGlobal::config()->group("AIM").readEntry( "UserID" );
accountId=KSharedConfig::openConfig()->group("AIM").readEntry( "UserID" );
}
else if(fi.fileName() == "OscarProtocol" )
{
protocolId="AIMProtocol";
accountId=KGlobal::config()->group("OSCAR").readEntry( "UserID" );
accountId=KSharedConfig::openConfig()->group("OSCAR").readEntry( "UserID" );
}
else if(fi.fileName() == "JabberProtocol" || fi.fileName() == "jabber_logs")
{
protocolId="JabberProtocol";
accountId=KGlobal::config()->group("Jabber").readEntry( "UserID" );
accountId=KSharedConfig::openConfig()->group("Jabber").readEntry( "UserID" );
}
//TODO: gadu, wp
}
......@@ -104,8 +107,8 @@ void HistoryPlugin::convertOldHistory()
d2.setNameFilters( QStringList("*.log") );
const QFileInfoList list = d2.entryInfoList();;
progressDlg->progressBar()->reset();
progressDlg->progressBar()->setMaximum(d2.count());
progressDlg->reset();
progressDlg->setMaximum(d2.count());
progressDlg->setLabelText(i18n("Parsing the old history in %1", fi.fileName()));
progressDlg->show(); //if it was not already showed...
......@@ -215,9 +218,8 @@ void HistoryPlugin::convertOldHistory()
QString::fromLatin1( "/" ) +
contactId.replace( QRegExp( QString::fromLatin1( "[./~?*]" ) ), QString::fromLatin1( "-" ) ) +
date.toString(".yyyyMM");
KSaveFile file( KStandardDirs::locateLocal( "data", QString::fromLatin1( "kopete/logs/" ) + name +
QString::fromLatin1( ".xml" ) ) );
if( file.open() )
QSaveFile file( QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QString( "kopete/logs/" + name + QString::fromLatin1( ".xml" ) ) );
if( file.open(QIODevice::WriteOnly) )
{
QString buf;
QTextStream stream( &buf, QIODevice::WriteOnly );
......@@ -225,7 +227,7 @@ void HistoryPlugin::convertOldHistory()
doc.doctype().save( stream, 1 );
doc.documentElement().save( stream, 1 ); // QDomDocument::save() override stream codec to UTF-8
file.write( buf.toUtf8() );
file.finalize();
file.commit();
}
}
......@@ -281,9 +283,8 @@ void HistoryPlugin::convertOldHistory()
QString::fromLatin1( "/" ) +
contactId.replace( QRegExp( QString::fromLatin1( "[./~?*]" ) ), QString::fromLatin1( "-" ) ) +
date.toString(".yyyyMM");
KSaveFile file( KStandardDirs::locateLocal( "data", QString::fromLatin1( "kopete/logs/" ) + name +
QString::fromLatin1( ".xml" ) ) );
if( file.open() )
QSaveFile file( QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QString( "kopete/logs/" + name + QString::fromLatin1( ".xml" ) ) );
if( file.open(QIODevice::WriteOnly) )
{
QString buf;
QTextStream stream( &buf, QIODevice::WriteOnly );
......@@ -291,12 +292,12 @@ void HistoryPlugin::convertOldHistory()
doc.doctype().save( stream, 1 );
doc.documentElement().save( stream, 1 ); // QDomDocument::save() override stream codec to UTF-8
file.write( buf.toUtf8() );
file.finalize();
file.commit();
}
}
}
progressDlg->progressBar()->setValue(progressDlg->progressBar()->value()+1);
progressDlg->setValue(progressDlg->value()+1);
}
}
}
......@@ -307,18 +308,18 @@ void HistoryPlugin::convertOldHistory()
bool HistoryPlugin::detectOldHistory()
{
QString version=KGlobal::config()->group("History Plugin").readEntry( "Version" ,"0.6" );
QString version=KSharedConfig::openConfig()->group("History Plugin").readEntry( "Version" ,"0.6" );
if(version != "0.6")
return false;
QDir d( KStandardDirs::locateLocal( "data", QString::fromLatin1( "kopete/logs")) );
QDir d( QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QString::fromLatin1( "kopete/logs")) ;
d.setFilter( QDir::Dirs );
if(d.count() >= 3) // '.' and '..' are included
return false; //the new history already exists
QDir d2( KStandardDirs::locateLocal( "data", QString::fromLatin1( "kopete")) );
QDir d2( QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QString::fromLatin1( "kopete")) ;
d2.setFilter( QDir::Dirs );
const QFileInfoList list = d2.entryInfoList();
......
......@@ -21,13 +21,14 @@
#include <QtCore/QPointer>
#include <QtCore/QDir>
#include <QtCore/QTextStream>
#include <QtCore/QTimer>
#include <QtGui/QClipboard>
#include <QtGui/QTextDocument>
#include <kdebug.h>
#include <krun.h>
#include <kmenu.h>
#include <kaction.h>
#include <QMenu>
#include <QAction>
#include <kstandardaction.h>
#include <dom/dom_doc.h>
#include <dom/dom_element.h>
......@@ -35,6 +36,11 @@
#include <dom/html_element.h>
#include <khtml_part.h>
#include <khtmlview.h>
#include <KConfigGroup>
#include <QDialogButtonBox>
#include <QPushButton>
#include <QVBoxLayout>
#include <QStandardPaths>
#include "kopetemetacontact.h"
#include "kopeteprotocol.h"
......@@ -81,12 +87,20 @@ bool KListViewDateItem::operator<( const QTreeWidgetItem& other ) const
HistoryDialog::HistoryDialog(Kopete::MetaContact *mc, QWidget* parent)
: KDialog(parent),
: QDialog(parent),
mSearching(false)
{
setAttribute (Qt::WA_DeleteOnClose, true);
setCaption( i18n("History for %1", mc->displayName()) );
setButtons(KDialog::Close);
setWindowTitle( i18n("History for %1", mc->displayName()) );
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout);
mainLayout->addWidget(mainWidget);
connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
//PORTING SCRIPT: WARNING mainLayout->addWidget(buttonBox) must be last item in layout. Please move it.
mainLayout->addWidget(buttonBox);
QString fontSize;
QString htmlCode;
QString fontStyle;
......@@ -122,8 +136,6 @@ HistoryDialog::HistoryDialog(Kopete::MetaContact *mc, QWidget* parent)
mMainWidget->dateSearchLine->setTreeWidget(mMainWidget->dateTreeWidget);
mMainWidget->dateTreeWidget->sortItems(0, Qt::DescendingOrder); //newest-first
setMainWidget( w );
// Initializing HTML Part
QVBoxLayout *l = new QVBoxLayout(mMainWidget->htmlFrame);
mHtmlPart = new KHTMLPart(mMainWidget->htmlFrame);
......@@ -152,8 +164,8 @@ HistoryDialog::HistoryDialog(Kopete::MetaContact *mc, QWidget* parent)
mHtmlPart->end();
connect(mHtmlPart->browserExtension(), SIGNAL(openUrlRequestDelayed(KUrl,KParts::OpenUrlArguments,KParts::BrowserArguments)),
this, SLOT(slotOpenURLRequest(KUrl,KParts::OpenUrlArguments,KParts::BrowserArguments)));
connect(mHtmlPart->browserExtension(), SIGNAL(openUrlRequestDelayed(QUrl,KParts::OpenUrlArguments,KParts::BrowserArguments)),
this, SLOT(slotOpenURLRequest(QUrl,KParts::OpenUrlArguments,KParts::BrowserArguments)));
connect(mMainWidget->dateTreeWidget, SIGNAL(itemClicked(QTreeWidgetItem*,int)), this, SLOT(dateSelected(QTreeWidgetItem*)));
connect(mMainWidget->searchButton, SIGNAL(clicked()), this, SLOT(slotSearch()));
connect(mMainWidget->searchLine, SIGNAL(returnPressed()), this, SLOT(slotSearch()));
......@@ -167,12 +179,11 @@ HistoryDialog::HistoryDialog(Kopete::MetaContact *mc, QWidget* parent)
mCopyAct = KStandardAction::copy( this, SLOT(slotCopy()), mHtmlView );
mHtmlView->addAction( mCopyAct );
mCopyURLAct = new KAction( KIcon("edit-copy"), i18n("Copy Link Address"), mHtmlView );
mCopyURLAct = new QAction( QIcon::fromTheme(QStringLiteral("edit-copy")), i18n("Copy Link Address"), mHtmlView );
mHtmlView->addAction( mCopyURLAct );
connect( mCopyURLAct, SIGNAL(triggered(bool)), this, SLOT(slotCopyURL()) );
resize(650, 700);
centerOnScreen(this);
// show the dialog before people get impatient
show();
......@@ -250,7 +261,7 @@ void HistoryDialog::init(Kopete::Contact *c)
const QString contact_in_filename=c->contactId().replace( QRegExp( QString::fromLatin1( "[./~?*]" ) ), QString::fromLatin1( "-" ) );
// BEGIN check if there are Kopete 0.7.x
QDir d1(KStandardDirs::locateLocal("data",QString("kopete/logs/")+
QDir d1(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QString("kopete/logs/"+
c->protocol()->pluginId().replace( QRegExp(QString::fromLatin1("[./~?*]")),QString::fromLatin1("-"))
));
d1.setFilter( QDir::Files | QDir::NoSymLinks );
......@@ -275,7 +286,7 @@ void HistoryDialog::init(Kopete::Contact *c)
}
// END of kopete 0.7.x check
QString logDir = KStandardDirs::locateLocal("data",QString("kopete/logs/")+
QString logDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + QString("kopete/logs/"+
c->protocol()->pluginId().replace( QRegExp(QString::fromLatin1("[./~?*]")),QString::fromLatin1("-")) +
QString::fromLatin1( "/" ) +
c->account()->accountId().replace( QRegExp( QString::fromLatin1( "[./~?*]" ) ), QString::fromLatin1( "-" ) )
......@@ -402,7 +413,7 @@ void HistoryDialog::slotFilterChanged(int /*index*/)
dateSelected(mMainWidget->dateTreeWidget->currentItem());
}
void HistoryDialog::slotOpenURLRequest(const KUrl &url, const KParts::OpenUrlArguments &, const KParts::BrowserArguments &)
void HistoryDialog::slotOpenURLRequest(const QUrl &url, const KParts::OpenUrlArguments &, const KParts::BrowserArguments &)
{
kDebug(14310) << "url=" << url.url();
new KRun(url, 0, false); // false = non-local files
......@@ -572,14 +583,14 @@ void HistoryDialog::slotContactChanged(int index)
mMainWidget->dateTreeWidget->clear();
if (index == 0)
{
setCaption(i18n("History for All Contacts"));
setWindowTitle(i18n("History for All Contacts"));
mMetaContact = 0;
init();
}
else
{
mMetaContact = mMetaContactList.at(index-1);
setCaption(i18n("History for %1", mMetaContact->displayName()));
setWindowTitle(i18n("History for %1", mMetaContact->displayName()));
init();
}
}
......@@ -600,7 +611,7 @@ void HistoryDialog::doneProgressBar()
void HistoryDialog::slotRightClick(const QString &url, const QPoint &point)
{
KMenu *chatWindowPopup = new KMenu();
QMenu *chatWindowPopup = new QMenu();
if ( !url.isEmpty() )
{
......
......@@ -21,14 +21,15 @@
#include <QtCore/QList>
#include <kdialog.h>
#include <kurl.h>
#include <QDialog>
#include <QUrl>
#include <QDate>
#include "kopetemessage.h"
class QTreeWidgetItem;
class KAction;
class QAction;
class KHTMLView;
class KHTMLPart;
namespace KParts { class BrowserArguments; class OpenUrlArguments; class Part; }
......@@ -56,7 +57,7 @@ class DMPair
* @author Richard Stellingwerff <remenic@linuxfromscratch.org>
* @author Stefan Gehn <metz AT gehn.net>
*/
class HistoryDialog : public KDialog
class HistoryDialog : public QDialog
{
Q_OBJECT
......@@ -73,7 +74,7 @@ class HistoryDialog : public KDialog
void closing();
private slots:
void slotOpenURLRequest(const KUrl &url, const KParts::OpenUrlArguments &, const KParts::BrowserArguments &);
void slotOpenURLRequest(const QUrl &url, const KParts::OpenUrlArguments &, const KParts::BrowserArguments &);
// Called when a date is selected in the treeview
void dateSelected(QTreeWidgetItem *);
......@@ -133,8 +134,8 @@ class HistoryDialog : public KDialog
bool mSearching;
KAction *mCopyAct;
KAction *mCopyURLAct;
QAction *mCopyAct;
QAction *mCopyURLAct;
QString mURL;
};
......
......@@ -21,11 +21,11 @@
#include <QtGui/QTextCursor>
#include <QtGui/QTextDocument>
#include <kaction.h>
#include <QAction>
#include <kstandardaction.h>
#include <klocale.h>
#include <kgenericfactory.h>
#include <kicon.h>
#include <QIcon>
#include <kactioncollection.h>
#include "kopetechatsession.h"
......@@ -41,8 +41,6 @@
HistoryGUIClient::HistoryGUIClient ( Kopete::ChatSession *parent )
: QObject ( parent ), KXMLGUIClient ( parent )
{
setComponentData ( KGenericFactory<HistoryPlugin>::componentData() );
m_manager = parent;
// Refuse to build this client, it is based on wrong parameters
......@@ -52,7 +50,7 @@ HistoryGUIClient::HistoryGUIClient ( Kopete::ChatSession *parent )
QList<Kopete::Contact*> mb=m_manager->members();
m_logger=new HistoryLogger ( mb.first() , this );
actionLast = new KAction ( KIcon ( "go-last" ), i18n ( "Latest History" ), this );
actionLast = new QAction ( QIcon::fromTheme(QStringLiteral("go-last")), i18n ( "Latest History" ), this );
actionCollection()->addAction ( "historyLast", actionLast );
connect ( actionLast, SIGNAL (triggered(bool)), this, SLOT (slotLast()) );
actionPrev = KStandardAction::back ( this, SLOT (slotPrevious()), this );
......@@ -60,12 +58,12 @@ HistoryGUIClient::HistoryGUIClient ( Kopete::ChatSession *parent )
actionNext = KStandardAction::forward ( this, SLOT (slotNext()), this );
actionCollection()->addAction ( "historyNext", actionNext );
KAction *viewChatHistory = new KAction( KIcon("view-history"), i18n("View &History" ), this );
QAction *viewChatHistory = new QAction( QIcon::fromTheme(QStringLiteral("view-history")), i18n("View &History" ), this );
actionCollection()->addAction( "viewChatHistory", viewChatHistory );
viewChatHistory->setShortcut(KShortcut (Qt::CTRL + Qt::Key_H));
viewChatHistory->setShortcut(QKeySequence (Qt::CTRL + Qt::Key_H));
connect(viewChatHistory, SIGNAL(triggered(bool)), this, SLOT(slotViewHistory()));
KAction *actionQuote = new KAction ( KIcon ( "go-last" ),i18n ( "Quote Last Message" ), this );
QAction *actionQuote = new QAction ( QIcon::fromTheme(QStringLiteral("go-last")),i18n ( "Quote Last Message" ), this );
actionCollection()->addAction ( "historyQuote",actionQuote );
connect ( actionQuote,SIGNAL (triggered(bool)),this,SLOT (slotQuote()) );
......
......@@ -21,7 +21,7 @@
#include <kxmlguiclient.h>
class KAction;
class QAction;
namespace Kopete { class ChatSession; }
......@@ -53,9 +53,9 @@ private:
//int m_nbAutoChatWindow;
//unsigned int m_nbChatWindow;
KAction *actionPrev;
KAction *actionNext;
KAction *actionLast;
QAction *actionPrev;
QAction *actionNext;
QAction *actionLast;
};
#endif
......@@ -19,17 +19,17 @@
#include <QtCore/QStack>
#include <QtCore/QDir>
#include <QtGui/QTextEdit>
#include <QtGui/QTreeView>
#include <QtGui/QPushButton>
#include <QtGui/QCheckBox>
#include <QtGui/QGridLayout>
#include <QtGui/QStandardItemModel>
#include <QtGui/QProgressDialog>
#include <QtGui/QMessageBox>
#include <QtGui/QFileDialog>
#include <QtGui/QApplication>
#include <QtXml/QXmlStreamReader>
#include <QTextEdit>
#include <QTreeView>
#include <QPushButton>
#include <QCheckBox>
#include <QGridLayout>
#include <QStandardItemModel>
#include <QProgressDialog>
#include <QMessageBox>
#include <QFileDialog>
#include <QApplication>
#include <QXmlStreamReader>
#include <kdebug.h>
#include <klocale.h>
......
......@@ -22,11 +22,11 @@
#include <kgenericfactory.h>
#include <kaboutdata.h>
#include <kaction.h>
#include <QAction>
#include <kmessagebox.h>
#include <kplugininfo.h>
#include <kdeversion.h>
#include <kicon.h>
#include <QIcon>
#include <kactioncollection.h>
#include "kopetechatsessionmanager.h"
......@@ -42,16 +42,14 @@
#include "historyguiclient.h"
#include "historyconfig.h"
typedef KGenericFactory<HistoryPlugin> HistoryPluginFactory;
static const KAboutData aboutdata("kopete_history", 0, ki18n("History") , "1.0" );
K_EXPORT_COMPONENT_FACTORY( kopete_history, HistoryPluginFactory( &aboutdata ) )
K_PLUGIN_FACTORY(HistoryPluginFactory, registerPlugin<HistoryPlugin>();)
HistoryPlugin::HistoryPlugin( QObject *parent, const QStringList & /* args */ )
: Kopete::Plugin( HistoryPluginFactory::componentData(), parent ), m_loggerFactory( this )
HistoryPlugin::HistoryPlugin( QObject *parent, const QVariantList & /* args */ )
: Kopete::Plugin( parent ), m_loggerFactory( this )
{
KAction *viewMetaContactHistory = new KAction( KIcon("view-history"), i18n("View &History" ), this );
QAction *viewMetaContactHistory = new QAction( QIcon::fromTheme(QStringLiteral("view-history")), i18n("View &History" ), this );
actionCollection()->addAction( "viewMetaContactHistory", viewMetaContactHistory );
viewMetaContactHistory->setShortcut(KShortcut(Qt::CTRL + Qt::Key_H));
viewMetaContactHistory->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_H));
connect(viewMetaContactHistory, SIGNAL(triggered(bool)), this, SLOT(slotViewHistory()));
viewMetaContactHistory->setEnabled(
Kopete::ContactList::self()->selectedMetaContacts().count() == 1 );
......
......@@ -65,7 +65,7 @@ class HistoryPlugin : public Kopete::Plugin
{
Q_OBJECT
public:
HistoryPlugin( QObject *parent, const QStringList &args );
HistoryPlugin( QObject *parent, const QVariantList &args );
~HistoryPlugin();
/**
......
......@@ -18,9 +18,9 @@
#include "historypreferences.h"
#include <QtGui/QLayout>
#include <QtGui/QVBoxLayout>
#include <QtGui/QCheckBox>
#include <QLayout>
#include <QVBoxLayout>
#include <QCheckBox>
#include <kcolorbutton.h>
#include <knuminput.h>
......@@ -33,7 +33,7 @@ K_PLUGIN_FACTORY( HistoryPreferencesFactory, registerPlugin<HistoryPreferences>(
K_EXPORT_PLUGIN( HistoryPreferencesFactory( "kcm_kopete_history" ) )
HistoryPreferences::HistoryPreferences(QWidget *parent, const QVariantList &args)
: KCModule(HistoryPreferencesFactory::componentData(), parent, args)
: KCModule(parent, args)
{
kDebug(14310) << "called.";
......
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