author | benmeyer <benmeyer> | 2002-11-01 18:46:04 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-11-01 18:46:04 (UTC) |
commit | 6860113387bbc86ee33e86327941cafc986e6481 (patch) (side-by-side diff) | |
tree | 27b48df44c4bd0071efaf62148a26d84940e5c4b | |
parent | 2259e3ab9f2e06a4ee4dbd633c17221a47fdb7ba (diff) | |
download | opie-6860113387bbc86ee33e86327941cafc986e6481.zip opie-6860113387bbc86ee33e86327941cafc986e6481.tar.gz opie-6860113387bbc86ee33e86327941cafc986e6481.tar.bz2 |
Removed Add test examples
-rw-r--r-- | noncore/net/networksetup/mainwindowimp.cpp | 4 | ||||
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/noncore/net/networksetup/mainwindowimp.cpp b/noncore/net/networksetup/mainwindowimp.cpp index 3b0b7e8..7261c58 100644 --- a/noncore/net/networksetup/mainwindowimp.cpp +++ b/noncore/net/networksetup/mainwindowimp.cpp @@ -151,26 +151,26 @@ Module* MainWindowImp::loadPlugin(QString pluginFileName, QString resolveString) libraries.insert(object, lib);
return object;
}
/**
* The Add button was clicked. Bring up the add dialog and if OK is hit
* load the plugin and append it to the list
*/
void MainWindowImp::addClicked(){
QMap<Module*, QLibrary*>::Iterator it;
QMap<QString, QString> list;
QMap<QString, Module*> newInterfaceOwners;
- list.insert("USB (PPP) / (ADD_TEST)", "A dialup connection over the USB port");
- list.insert("IrDa (PPP) / (ADD_TEST)", "A dialup connection over the IdDa port");
+ //list.insert("USB (PPP) / (ADD_TEST)", "A dialup connection over the USB port");
+ //list.insert("IrDa (PPP) / (ADD_TEST)", "A dialup connection over the IdDa port");
for( it = libraries.begin(); it != libraries.end(); ++it ){
if(it.key()){
(it.key())->possibleNewInterfaces(list);
}
}
// See if the list has anything that we can add.
if(list.count() == 0){
QMessageBox::information(this, "Sorry", "Nothing to add.", QMessageBox::Ok);
return;
}
AddConnectionImp addNewConnection(this, "AddConnectionImp", true);
addNewConnection.addConnections(list);
diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp index 3b0b7e8..7261c58 100644 --- a/noncore/settings/networksettings/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindowimp.cpp @@ -151,26 +151,26 @@ Module* MainWindowImp::loadPlugin(QString pluginFileName, QString resolveString) libraries.insert(object, lib);
return object;
}
/**
* The Add button was clicked. Bring up the add dialog and if OK is hit
* load the plugin and append it to the list
*/
void MainWindowImp::addClicked(){
QMap<Module*, QLibrary*>::Iterator it;
QMap<QString, QString> list;
QMap<QString, Module*> newInterfaceOwners;
- list.insert("USB (PPP) / (ADD_TEST)", "A dialup connection over the USB port");
- list.insert("IrDa (PPP) / (ADD_TEST)", "A dialup connection over the IdDa port");
+ //list.insert("USB (PPP) / (ADD_TEST)", "A dialup connection over the USB port");
+ //list.insert("IrDa (PPP) / (ADD_TEST)", "A dialup connection over the IdDa port");
for( it = libraries.begin(); it != libraries.end(); ++it ){
if(it.key()){
(it.key())->possibleNewInterfaces(list);
}
}
// See if the list has anything that we can add.
if(list.count() == 0){
QMessageBox::information(this, "Sorry", "Nothing to add.", QMessageBox::Ok);
return;
}
AddConnectionImp addNewConnection(this, "AddConnectionImp", true);
addNewConnection.addConnections(list);
|