From bacff63f1e4915c683a409e81b18ffcf5aeceda3 Mon Sep 17 00:00:00 2001 From: kergoth Date: Wed, 09 Apr 2003 18:10:11 +0000 Subject: Make networksettings actually compile again. Fix the ifdef on non-kde to actually work, and killed off more references to qt3 widget flags. --- (limited to 'noncore/settings/networksettings/mainwindowimp.cpp') diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp index d6b708b..581b7e3 100644 --- a/noncore/settings/networksettings/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindowimp.cpp @@ -14,12 +14,12 @@ #include -#ifdef QTE_VERSION +#ifdef QWS #include #include #include #include - #define QLibrary +// #define QLibrary Library #else #include #define QLibrary KLibrary @@ -59,8 +59,8 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par connect(newProfile, SIGNAL(textChanged(const QString&)), this, SLOT(newProfileChanged(const QString&))); // Load connections. // /usr/local/kde/lib/libinterfaces.la -#ifdef QTE_VERSION - loadModules(QPEApplication::kdeDir() + "/plugins/networksettings"); +#ifdef QWS + loadModules(QPEApplication::qpeDir() + "/plugins/networksettings"); #else loader = KLibLoader::self(); loadModules(QString("/usr/")+KStandardDirs::kde_default("lib")); @@ -130,7 +130,7 @@ MainWindowImp::~MainWindowImp(){ delete iIt.key(); } -#ifdef QTE_VERSION +#ifdef QWS // Delete Modules and Libraries QMap::Iterator it; for( it = libraries.begin(); it != libraries.end(); ++it ){ @@ -246,7 +246,7 @@ Module* MainWindowImp::loadPlugin(const QString &pluginFileName, const QString & #ifdef DEBUG qDebug("MainWindowImp::loadPlugin: %s", pluginFileName.latin1()); #endif -#ifdef QTE_VERSION +#ifdef QWS QLibrary *lib = new QLibrary(pluginFileName); void *functionPointer = lib->resolve(resolveString); if( !functionPointer ){ @@ -382,7 +382,7 @@ void MainWindowImp::configureClicked(){ } } - InterfaceSetupImpDialog *configure = new InterfaceSetupImpDialog(this, "InterfaceSetupImp", i, true, Qt::WShowModal | Qt::WDestructiveClose | Qt::WType_Dialog); + InterfaceSetupImpDialog *configure = new InterfaceSetupImpDialog(this, "InterfaceSetupImp", i, true, Qt::WType_Modal | Qt::WDestructiveClose | Qt::WStyle_Dialog); QString currentProfileText = currentProfileLabel->text(); if(currentProfileText.upper() == "ALL"); currentProfileText = ""; @@ -418,7 +418,7 @@ void MainWindowImp::informationClicked(){ return; } } - InterfaceInformationImp *information = new InterfaceInformationImp(this, "InterfaceSetupImp", i, Qt::WShowModal | Qt::WDestructiveClose | Qt::WType_Dialog); + InterfaceInformationImp *information = new InterfaceInformationImp(this, "InterfaceSetupImp", i, Qt::WType_Modal | Qt::WDestructiveClose | Qt::WStyle_Dialog); information->showMaximized(); } @@ -450,7 +450,7 @@ void MainWindowImp::updateInterface(Interface *i){ item = items[i]; // Update the icons and information -#ifdef QTE_VERSION +#ifdef QWS item->setPixmap(0, (Resource::loadPixmap(i->getStatus() ? "up": "down"))); #else item->setPixmap(0, (SmallIcon(i->getStatus() ? "up": "down"))); @@ -472,7 +472,7 @@ void MainWindowImp::updateInterface(Interface *i){ if(i->getModuleOwner() != NULL) typeName = i->getModuleOwner()->getPixmapName(i); -#ifdef QTE_VERSION +#ifdef QWS item->setPixmap(1, (Resource::loadPixmap(QString("networksettings/") + typeName))); #else item->setPixmap(1, (SmallIcon(typeName))); -- cgit v0.9.0.2