Rename KInstance and KAboutData to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent a32e2961ee
commit d0de10e23a

@ -44,8 +44,8 @@ static const char description[] = I18N_NOOP("TDE creature for your desktop");
int main(int argc, char *argv[])
{
KAboutData aboutData( "amor", I18N_NOOP("amor"),
AMOR_VERSION, description, KAboutData::License_GPL,
TDEAboutData aboutData( "amor", I18N_NOOP("amor"),
AMOR_VERSION, description, TDEAboutData::License_GPL,
"(c) 1999, Martin R. Jones");
aboutData.addAuthor("Martin R. Jones",0, "mjones@kde.org");
aboutData.addAuthor("Gerardo Puga", I18N_NOOP("Current maintainer"), "gpuga@gioia.ing.unlp.edu.ar");

@ -75,12 +75,12 @@ int FifteenApplet::heightForWidth(int w) const
void FifteenApplet::about()
{
if(!_aboutData) {
_aboutData = new KAboutData("kfifteenapplet", I18N_NOOP("KFifteenApplet"), "1.0",
_aboutData = new TDEAboutData("kfifteenapplet", I18N_NOOP("KFifteenApplet"), "1.0",
I18N_NOOP("Fifteen pieces applet.\n\n"
"The goal is to put the sliding pieces into numerical order.\n"
"Select \"Randomize Pieces\" from the right mouse button menu\n"
"to start a game."),
KAboutData::License_BSD, "(c) 2001, Matthias Elter");
TDEAboutData::License_BSD, "(c) 2001, Matthias Elter");
_aboutData->addAuthor("Matthias Elter", 0, "elter@kde.org");
}

@ -30,7 +30,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <kpanelapplet.h>
class TQPopupMenu;
class KAboutData;
class TDEAboutData;
class PiecesTable : public QtTableView
{
@ -80,7 +80,7 @@ public:
private:
PiecesTable *_table;
KAboutData *_aboutData;
TDEAboutData *_aboutData;
};
#endif

@ -63,10 +63,10 @@ int main(int argc, char *argv[])
{
/* Top level details */
KAboutData *aboutData = new KAboutData("kodo",
TDEAboutData *aboutData = new TDEAboutData("kodo",
I18N_NOOP("KOdometer"), "3.2",
I18N_NOOP("KOdometer measures your desktop mileage"),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
"(c) 1998, Armen Nakashian",
I18N_NOOP("A mouse odometer"), 0,
"dev@gioelebarabucci.com");

@ -39,8 +39,8 @@ static const char version[] = "v1.1.0";
int main(int argc, char *argv[])
{
KAboutData aboutData( "kteatime", I18N_NOOP("KTeaTime"),
version, description, KAboutData::License_GPL,
TDEAboutData aboutData( "kteatime", I18N_NOOP("KTeaTime"),
version, description, TDEAboutData::License_GPL,
"(c) 1998-1999, Matthias Hoelzer-Kluepfel\n(c) 2002-2003, Martin Willers");
aboutData.addAuthor("Matthias Hoelzer-Kluepfel",0, "hoelzer@kde.org");
aboutData.addAuthor("Martin Willers", 0, "willers@xm-arts.de");

@ -72,10 +72,10 @@ KCMWeather::KCMWeather( TQWidget *parent, const char *name )
connect( mWidget->m_textColor, TQT_SIGNAL( changed(const TQColor &) ),
TQT_SLOT( textColorChanged(const TQColor &) ) );
KAboutData *about = new KAboutData(
TDEAboutData *about = new TDEAboutData(
I18N_NOOP( "kcmweather" ),
I18N_NOOP( "KWeather Configure Dialog" ),
0, 0, KAboutData::License_GPL,
0, 0, TDEAboutData::License_GPL,
I18N_NOOP( "(c), 2003 Tobias Koenig" ) );
about->addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );

@ -48,9 +48,9 @@ KCMWeatherService::KCMWeatherService( TQWidget *parent, const char *name )
//connect(mWidget, TQT_SIGNAL(changed(bool)), this, TQT_SIGNAL(changed(bool)));
layout->addWidget( mWidget );
KAboutData *about = new KAboutData( "kcmweatherservice",
TDEAboutData *about = new TDEAboutData( "kcmweatherservice",
I18N_NOOP( "KWeather Configure Dialog" ),
0, 0, KAboutData::License_GPL,
0, 0, TDEAboutData::License_GPL,
I18N_NOOP( "(c), 2003 Tobias Koenig" ) );
about->addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );

@ -126,8 +126,8 @@ void kweather::initDCOP()
/** about box */
void kweather::about(){
kdDebug(12004) << "Telling about" << endl;
KAboutData aboutData("KWeather", "KWeather", "2.1.0",
I18N_NOOP("Weather applet for the Kicker"), KAboutData::License_GPL_V2);
TDEAboutData aboutData("KWeather", "KWeather", "2.1.0",
I18N_NOOP("Weather applet for the Kicker"), TDEAboutData::License_GPL_V2);
aboutData.addAuthor("Ian Reinhart Geiser", "", "geiseri@kde.org",
"http://www.kde.org/");
//aboutData.addAuthor("Nadeem Hasan", "", "nhasan@nadmm.com", "http://www.nadmm.com/");

@ -9,9 +9,9 @@
int main (int argc, char *argv[])
{
KLocale::setMainCatalogue("tdelibs");
KAboutData aboutdata("KWeatherService", I18N_NOOP("TDE"),
TDEAboutData aboutdata("KWeatherService", I18N_NOOP("TDE"),
"0.8", I18N_NOOP("KWeather DCOP Service"),
KAboutData::License_GPL, "(C) 2002, Ian Reinhart Geiser");
TDEAboutData::License_GPL, "(C) 2002, Ian Reinhart Geiser");
aboutdata.addAuthor("Ian Reinhart Geiser",I18N_NOOP("Developer"),"geiseri@kde.org");
aboutdata.addAuthor("Nadeem Hasan",I18N_NOOP("Developer"),"nhasan@kde.org");

@ -17,9 +17,9 @@ static KCmdLineOptions options[] =
extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
{
KAboutData aboutData("reportview", I18N_NOOP("Weather Report"),
TDEAboutData aboutData("reportview", I18N_NOOP("Weather Report"),
"0.8", I18N_NOOP("Weather Report for KWeatherService"),
KAboutData::License_GPL, "(C) 2002-2003, Ian Reinhart Geiser");
TDEAboutData::License_GPL, "(C) 2002-2003, Ian Reinhart Geiser");
aboutData.addAuthor("Ian Reinhart Geiser", I18N_NOOP("Developer"),
"geiseri@kde.org");
aboutData.addAuthor("Nadeem Hasan", I18N_NOOP("Developer"),

@ -36,7 +36,7 @@
#include <dcopref.h>
KonqSidebarWeather::KonqSidebarWeather(KInstance* inst, TQObject* parent,
KonqSidebarWeather::KonqSidebarWeather(TDEInstance* inst, TQObject* parent,
TQWidget* widgetParent,
TQString& desktopName, const char* name)
@ -149,7 +149,7 @@ void KonqSidebarWeather::update()
extern "C"
{
KDE_EXPORT void* create_weather_sidebar(KInstance* inst, TQObject* par, TQWidget*widp,
KDE_EXPORT void* create_weather_sidebar(TDEInstance* inst, TQObject* par, TQWidget*widp,
TQString& desktopname, const char* name)
{
return new KonqSidebarWeather(inst, par, widp, desktopname, name);

@ -40,7 +40,7 @@ class KonqSidebarWeather: public KonqSidebarPlugin, virtual public DCOPObject
K_DCOP
public:
KonqSidebarWeather(KInstance* inst, TQObject* parent, TQWidget* widgetParent,
KonqSidebarWeather(TDEInstance* inst, TQObject* parent, TQWidget* widgetParent,
TQString& desktopName_, const char* name = 0);
~KonqSidebarWeather();

@ -175,7 +175,7 @@ static KCmdLineOptions options[] =
int main(int argc, char *argv[])
{
KAboutData about("kworldclock", I18N_NOOP("TDE World Clock"), "1.5");
TDEAboutData about("kworldclock", I18N_NOOP("TDE World Clock"), "1.5");
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions(options);
KUniqueApplication::addCmdLineOptions();
@ -183,7 +183,7 @@ int main(int argc, char *argv[])
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->isSet("themes"))
{
KInstance app(&about);
TDEInstance app(&about);
listThemes();
return 0;
}

Loading…
Cancel
Save