Rename KInstance and KAboutData to avoid conflicts with KDE4

r14.0.x
Timothy Pearson 12 years ago
parent 9be8a1a36d
commit 9c8d64b5e7

@ -105,8 +105,8 @@ void applyFilterArgs(TDECmdLineArgs* args, FileViewController* controller) {
extern "C"
KDE_EXPORT int kdemain (int argc, char *argv[]) {
KAboutData aboutData("gwenview", I18N_NOOP("Gwenview"),
version, I18N_NOOP("An image viewer for TDE"), KAboutData::License_GPL,
TDEAboutData aboutData("gwenview", I18N_NOOP("Gwenview"),
version, I18N_NOOP("An image viewer for TDE"), TDEAboutData::License_GPL,
"Copyright 2000-2006, The Gwenview developers",0,"http://gwenview.sourceforge.net");
aboutData.addAuthor("Aurélien Gâteau", I18N_NOOP("Main developer"), "aurelien.gateau@free.fr");
aboutData.addAuthor("Luboš Luňák", I18N_NOOP("Developer"), "l.lunak@suse.cz");

@ -453,7 +453,7 @@ void MainWindow::printFile() {
KPrinter printer;
printer.setDocName(mDocument->filename());
const KAboutData* pAbout = TDEApplication::kApplication()->aboutData();
const TDEAboutData* pAbout = TDEApplication::kApplication()->aboutData();
TQString nm = pAbout->appName();
nm += "-";
nm += pAbout->version();

@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <vtabwidget.h>
int main(int argc, char* argv[]) {
KAboutData aboutData("testvtabwidget", "testvtabwidget", "0");
TDEAboutData aboutData("testvtabwidget", "testvtabwidget", "0");
TDECmdLineArgs::init( argc, argv, &aboutData );
TDEApplication app;

@ -140,10 +140,10 @@ void GVDirPart::partActivateEvent(KParts::PartActivateEvent* event) {
}
KAboutData* GVDirPart::createAboutData() {
KAboutData* aboutData = new KAboutData( "gvdirpart", I18N_NOOP("GVDirPart"),
TDEAboutData* GVDirPart::createAboutData() {
TDEAboutData* aboutData = new TDEAboutData( "gvdirpart", I18N_NOOP("GVDirPart"),
"0.1", I18N_NOOP("Image Browser"),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
"(c) 2004, Jonathan Riddell <jr@jriddell.org>");
return aboutData;
}

@ -25,7 +25,7 @@ Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA.
// Forward declarations
class TQPoint;
class TQSplitter;
class KAboutData;
class TDEAboutData;
class KAction;
class KToggleAction;
@ -79,7 +79,7 @@ public:
/**
* Return information about the part
*/
static KAboutData* createAboutData();
static TDEAboutData* createAboutData();
/**
* Returns the name of the current file in the pixmap

@ -150,10 +150,10 @@ void GVImagePart::guiActivateEvent( KParts::GUIActivateEvent* event) {
}
KAboutData* GVImagePart::createAboutData() {
KAboutData* aboutData = new KAboutData( "gvimagepart", I18N_NOOP("GVImagePart"),
TDEAboutData* GVImagePart::createAboutData() {
TDEAboutData* aboutData = new TDEAboutData( "gvimagepart", I18N_NOOP("GVImagePart"),
"0.1", I18N_NOOP("Image Viewer"),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
"(c) 2004, Jonathan Riddell <jr@jriddell.org>");
return aboutData;
}
@ -407,7 +407,7 @@ void DataUploader::slotJobFinished(KIO::Job* job) {
*/
class PopupGUIClient : public KXMLGUIClient {
public:
PopupGUIClient( KInstance *inst, const TQString &doc ) {
PopupGUIClient( TDEInstance *inst, const TQString &doc ) {
setInstance( inst );
setXML( doc );
}

@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA.
class TQFile;
class TQPoint;
class KAboutData;
class TDEAboutData;
class KAction;
class KDirLister;
class KFileItem;
@ -72,7 +72,7 @@ public:
/**
* Return information about the part
*/
static KAboutData* createAboutData();
static TDEAboutData* createAboutData();
/**
* Returns m_file

@ -201,7 +201,7 @@ void testSetComment() {
int main(int argc, char* argv[]) {
TestEnvironment testEnv;
bool result;
KAboutData aboutData("testjpegcontent", "testjpegcontent", "0");
TDEAboutData aboutData("testjpegcontent", "testjpegcontent", "0");
TDECmdLineArgs::init( argc, argv, &aboutData );
TDEApplication kapplication;

Loading…
Cancel
Save