Replace various '#define' strings - part 6

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/16/head
Michele Calgaro 11 months ago
parent f781e430ef
commit 22fd382e3b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -127,7 +127,7 @@ void CellularDeviceTray::addMenuItems(TDEPopupMenu* menu)
title += TQString(" (%1)").arg((conn->ipConfig.connectionFlags & TDENetworkIPConfigurationFlags::IPV4DHCPIP) ? i18n("DHCP") : i18n("Manual IP config")); title += TQString(" (%1)").arg((conn->ipConfig.connectionFlags & TDENetworkIPConfigurationFlags::IPV4DHCPIP) ? i18n("DHCP") : i18n("Manual IP config"));
} }
NetworkMenuItem* item = new NetworkMenuItem(d->dev, conn->UUID, TQT_TQOBJECT(menu)); NetworkMenuItem* item = new NetworkMenuItem(d->dev, conn->UUID, menu);
int id = menu->insertItem(title, item, TQT_SLOT(slotActivate())); int id = menu->insertItem(title, item, TQT_SLOT(slotActivate()));
menu->setItemChecked(id, ((*it) == active_conn)); menu->setItemChecked(id, ((*it) == active_conn));

@ -36,7 +36,7 @@ PluginManager* PluginManager::getInstance()
if (_instance) { if (_instance) {
return _instance; return _instance;
} }
return new PluginManager(TQT_TQOBJECT(TDENetworkManager::getInstance()), "pluginmanager"); return new PluginManager(TDENetworkManager::getInstance(), "pluginmanager");
} }
PluginManager::PluginManager(TQObject* parent, const char* name) PluginManager::PluginManager(TQObject* parent, const char* name)

@ -287,7 +287,7 @@ void Tray::contextMenuAboutToShow (TDEPopupMenu* menu)
TDEAction * deviceNewConnAction = 0; TDEAction * deviceNewConnAction = 0;
TQString menuCaption = "VPN Connection"; TQString menuCaption = "VPN Connection";
TQString actionName = TQString("new_connection_%1").arg("vpn"); TQString actionName = TQString("new_connection_%1").arg("vpn");
deviceNewConnAction = new TDEAction (menuCaption, 0, TQT_TQOBJECT(this), TQT_SLOT(slotNewVPNConnection()), actionCollection(), actionName.utf8()); deviceNewConnAction = new TDEAction (menuCaption, 0, this, TQT_SLOT(slotNewVPNConnection()), actionCollection(), actionName.utf8());
newConnActionMenu->insert(deviceNewConnAction); newConnActionMenu->insert(deviceNewConnAction);
} }
else if ( devices == 1 ) else if ( devices == 1 )
@ -1073,7 +1073,7 @@ Tray::Tray() : KSystemTray()
updateGraphicsCache(); updateGraphicsCache();
d = new TrayPrivate(TQT_TQOBJECT(this)); d = new TrayPrivate(this);
d->helpMenu = new KHelpMenu(0, TDEGlobal::instance()->aboutData(), false); d->helpMenu = new KHelpMenu(0, TDEGlobal::instance()->aboutData(), false);
connect(&d->signalMapper, TQT_SIGNAL(mapped(int)), this, TQT_SLOT(slotDeactivateConnection(int))); connect(&d->signalMapper, TQT_SIGNAL(mapped(int)), this, TQT_SLOT(slotDeactivateConnection(int)));
@ -1084,32 +1084,32 @@ Tray::Tray() : KSystemTray()
// Actions used for plugging into the menu // Actions used for plugging into the menu
new TDEAction (i18n ("Switch to offline mode"), new TDEAction (i18n ("Switch to offline mode"),
SmallIcon ("no", TQIconSet::Automatic), 0, SmallIcon ("no", TQIconSet::Automatic), 0,
TQT_TQOBJECT(this), TQT_SLOT (slotOfflineMode()), actionCollection (), "offline_mode"); this, TQT_SLOT (slotOfflineMode()), actionCollection (), "offline_mode");
new TDEAction (i18n ("Switch to online mode"), new TDEAction (i18n ("Switch to online mode"),
SmallIcon ("ok", TQIconSet::Automatic), 0, SmallIcon ("ok", TQIconSet::Automatic), 0,
TQT_TQOBJECT(this), TQT_SLOT (slotOnlineMode()), actionCollection (), "online_mode"); this, TQT_SLOT (slotOnlineMode()), actionCollection (), "online_mode");
new TDEAction (i18n ("Disable Wireless"), new TDEAction (i18n ("Disable Wireless"),
SmallIcon ("wireless_off", TQIconSet::Automatic), 0, SmallIcon ("wireless_off", TQIconSet::Automatic), 0,
TQT_TQOBJECT(this), TQT_SLOT (slotDisableWireless()), actionCollection (), "disable_wireless"); this, TQT_SLOT (slotDisableWireless()), actionCollection (), "disable_wireless");
new TDEAction (i18n ("Enable Wireless"), new TDEAction (i18n ("Enable Wireless"),
SmallIcon ("wireless", TQIconSet::Automatic), 0, SmallIcon ("wireless", TQIconSet::Automatic), 0,
TQT_TQOBJECT(this), TQT_SLOT (slotEnableWireless()), actionCollection (), "enable_wireless"); this, TQT_SLOT (slotEnableWireless()), actionCollection (), "enable_wireless");
new TDEAction (i18n ("Edit Connections"), new TDEAction (i18n ("Edit Connections"),
SmallIcon ("edit", TQIconSet::Automatic), 0, SmallIcon ("edit", TQIconSet::Automatic), 0,
TQT_TQOBJECT(this), TQT_SLOT (slotEditConnections()), actionCollection (), "edit_connections"); this, TQT_SLOT (slotEditConnections()), actionCollection (), "edit_connections");
new TDEAction (i18n ("Configure Notifications"), new TDEAction (i18n ("Configure Notifications"),
SmallIcon ("knotify", TQIconSet::Automatic), 0, SmallIcon ("knotify", TQIconSet::Automatic), 0,
TQT_TQOBJECT(this), TQT_SLOT (slotEditNotifications()), actionCollection (), "configure_notifications"); this, TQT_SLOT (slotEditNotifications()), actionCollection (), "configure_notifications");
// this action is only connected when the menu is shown, hence the 0 receiver // this action is only connected when the menu is shown, hence the 0 receiver
new TDEAction (i18n ("New connection ..."), new TDEAction (i18n ("New connection ..."),
SmallIcon ("document-new", TQIconSet::Automatic), 0, SmallIcon ("document-new", TQIconSet::Automatic), 0,
TQT_TQOBJECT(this), 0, actionCollection (), "new_connection"); this, 0, actionCollection (), "new_connection");
new TDEActionMenu (i18n ("New connection ..."), new TDEActionMenu (i18n ("New connection ..."),
SmallIcon ("document-new", TQIconSet::Automatic), SmallIcon ("document-new", TQIconSet::Automatic),

@ -77,7 +77,7 @@ VPNManager::getVPNServices ()
kdDebug() << "VPN Service " << serviceString.ascii() << endl; kdDebug() << "VPN Service " << serviceString.ascii() << endl;
// create new VPNService Object // create new VPNService Object
VPNService* vpnservice = new VPNService(serviceString, serviceString, TQT_TQOBJECT(TDENetworkManager::getInstance())); VPNService* vpnservice = new VPNService(serviceString, serviceString, TDENetworkManager::getInstance());
if (!vpnservice->getVPNPlugin()) if (!vpnservice->getVPNPlugin())
{ {
delete vpnservice; delete vpnservice;
@ -132,7 +132,7 @@ VPNManager::getVPNService(TQString service_type)
if (serviceString == service_type) if (serviceString == service_type)
{ {
// create new VPNService Object // create new VPNService Object
VPNService* vpnservice = new VPNService(service_type, service_type, TQT_TQOBJECT(TDENetworkManager::getInstance())); VPNService* vpnservice = new VPNService(service_type, service_type, TDENetworkManager::getInstance());
if (!vpnservice->getVPNPlugin()) if (!vpnservice->getVPNPlugin())
{ {
delete vpnservice; delete vpnservice;

@ -124,7 +124,7 @@ void WiredDeviceTray::addMenuItems(TDEPopupMenu* menu)
title += TQString(" (%1)").arg((conn->ipConfig.connectionFlags & TDENetworkIPConfigurationFlags::IPV4DHCPIP) ? i18n("DHCP") : i18n("Manual IP config")); title += TQString(" (%1)").arg((conn->ipConfig.connectionFlags & TDENetworkIPConfigurationFlags::IPV4DHCPIP) ? i18n("DHCP") : i18n("Manual IP config"));
} }
NetworkMenuItem* item = new NetworkMenuItem(d->dev, conn->UUID, TQT_TQOBJECT(menu)); NetworkMenuItem* item = new NetworkMenuItem(d->dev, conn->UUID, menu);
connectionItems += 1; connectionItems += 1;
int id = menu->insertItem(title, item, TQT_SLOT(slotActivate())); int id = menu->insertItem(title, item, TQT_SLOT(slotActivate()));

@ -89,7 +89,7 @@ void VPNTrayComponent::addMenuItems(TDEPopupMenu* menu)
TQString title = conn->friendlyName; TQString title = conn->friendlyName;
NetworkMenuItem* item = new NetworkMenuItem(NULL, conn->UUID, TQT_TQOBJECT(menu)); NetworkMenuItem* item = new NetworkMenuItem(NULL, conn->UUID, menu);
vpn_found = 0; vpn_found = 0;
TDENetworkConnectionStatus::TDENetworkConnectionStatus connStatus = nm->checkConnectionStatus(conn->UUID); TDENetworkConnectionStatus::TDENetworkConnectionStatus connStatus = nm->checkConnectionStatus(conn->UUID);

Loading…
Cancel
Save