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

Port KAboutData to K4AboutData

parent c563f120
...@@ -502,11 +502,11 @@ void ChatTextEditPart::checkToolbarEnabled() ...@@ -502,11 +502,11 @@ void ChatTextEditPart::checkToolbarEnabled()
emit toolbarToggled( isRichTextEnabled() ); emit toolbarToggled( isRichTextEnabled() );
} }
KAboutData *ChatTextEditPart::createAboutData() K4AboutData *ChatTextEditPart::createAboutData()
{ {
KAboutData *aboutData = new KAboutData("krichtexteditpart", 0, ki18n("Chat Text Edit Part"), "0.1", K4AboutData *aboutData = new K4AboutData("krichtexteditpart", 0, ki18n("Chat Text Edit Part"), "0.1",
ki18n("A simple rich text editor part"), ki18n("A simple rich text editor part"),
KAboutData::License_LGPL ); K4AboutData::License_LGPL );
aboutData->addAuthor(ki18n("Richard J. Moore"), KLocalizedString(), "rich@kde.org", "http://xmelegance.org/" ); aboutData->addAuthor(ki18n("Richard J. Moore"), KLocalizedString(), "rich@kde.org", "http://xmelegance.org/" );
aboutData->addAuthor(ki18n("Jason Keirstead"), KLocalizedString(), "jason@keirstead.org", "http://www.keirstead.org/" ); aboutData->addAuthor(ki18n("Jason Keirstead"), KLocalizedString(), "jason@keirstead.org", "http://www.keirstead.org/" );
aboutData->addAuthor(ki18n("Michaël Larouche"), KLocalizedString(), "larouche@kde.org" "http://www.tehbisnatch.org/" ); aboutData->addAuthor(ki18n("Michaël Larouche"), KLocalizedString(), "larouche@kde.org" "http://www.tehbisnatch.org/" );
......
...@@ -17,8 +17,10 @@ ...@@ -17,8 +17,10 @@
#ifndef CHATTEXTEDITPART_H #ifndef CHATTEXTEDITPART_H
#define CHATTEXTEDITPART_H #define CHATTEXTEDITPART_H
#include <kparts/part.h> #include <kparts/part.h>
#include <krichtextedit.h> #include <krichtextedit.h>
#include <K4AboutData>
#include "kopeterichtextwidget.h" #include "kopeterichtextwidget.h"
#include <QFont> #include <QFont>
...@@ -29,7 +31,6 @@ ...@@ -29,7 +31,6 @@
// TODO: Use kdelibs export // TODO: Use kdelibs export
#include <kopete_export.h> #include <kopete_export.h>
class KAboutData;
class KTextEdit; class KTextEdit;
class KConfigGroup; class KConfigGroup;
class KCompletion; class KCompletion;
...@@ -88,7 +89,7 @@ public: ...@@ -88,7 +89,7 @@ public:
*/ */
bool checkSpellingEnabled() const; bool checkSpellingEnabled() const;
static KAboutData *createAboutData(); static K4AboutData *createAboutData();
/** /**
* @brief Disable file open, because it's not used by this part. * @brief Disable file open, because it's not used by this part.
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
*/ */
#include <kcmdlineargs.h> #include <kcmdlineargs.h>
#include <kaboutdata.h> #include <K4AboutData>
#include <klocale.h> #include <klocale.h>
#include "kopeteapplication.h" #include "kopeteapplication.h"
...@@ -29,8 +29,8 @@ static const char description[] = ...@@ -29,8 +29,8 @@ static const char description[] =
int main( int argc, char *argv[] ) int main( int argc, char *argv[] )
{ {
KAboutData aboutData( "kopete", 0, ki18n("Kopete"), K4AboutData aboutData( "kopete", 0, ki18n("Kopete"),
KOPETE_VERSION_STRING, ki18n(description), KAboutData::License_GPL, KOPETE_VERSION_STRING, ki18n(description), K4AboutData::License_GPL,
ki18n("(c) 2001-2004, Duncan Mac-Vicar Prett\n(c) 2002-2016, Kopete Development Team"), ki18n("kopete-devel@kde.org"), "http://kopete.kde.org"); ki18n("(c) 2001-2004, Duncan Mac-Vicar Prett\n(c) 2002-2016, Kopete Development Team"), ki18n("kopete-devel@kde.org"), "http://kopete.kde.org");
aboutData.addAuthor ( ki18n("Pali Rohár"), ki18n("Developer and maintainer"), "pali.rohar@gmail.com" ); aboutData.addAuthor ( ki18n("Pali Rohár"), ki18n("Developer and maintainer"), "pali.rohar@gmail.com" );
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <qtimer.h> #include <qtimer.h>
#include <kaboutdata.h> #include <K4AboutData>
#include <kactioncollection.h> #include <kactioncollection.h>
#include <QAction> #include <QAction>
#include <QMenu> #include <QMenu>
......
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