Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

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

@ -91,8 +91,8 @@ DeviceDialog::DeviceDialog(const TQString& defaultDevice, TQWidget* parent) :
#endif #endif
deviceBox->setCurrentText(defaultDevice); deviceBox->setCurrentText(defaultDevice);
connect(deviceBox, TQT_SIGNAL(textChanged(const TQString&)), connect(deviceBox, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(updateDevice(const TQString&))); this, TQ_SLOT(updateDevice(const TQString&)));
} }
const TQString& DeviceDialog::getDevice() const { const TQString& DeviceDialog::getDevice() const {

@ -254,7 +254,7 @@ void KNetLoad::insertCustomItems(TDEPopupMenu* menu) {
stockDevice[i], i); stockDevice[i], i);
deviceMenu->insertItem(SmallIcon("devother"), i18n("Other...")); deviceMenu->insertItem(SmallIcon("devother"), i18n("Other..."));
updateDeviceMenu(deviceMenu); updateDeviceMenu(deviceMenu);
connect(deviceMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setDevice(int))); connect(deviceMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setDevice(int)));
menu->insertItem(SmallIcon("devselect"), i18n("&Device"), deviceMenu); menu->insertItem(SmallIcon("devselect"), i18n("&Device"), deviceMenu);
// Scale menus. The menu item IDs are the scales themselves (in bits // Scale menus. The menu item IDs are the scales themselves (in bits
@ -274,7 +274,7 @@ void KNetLoad::insertCustomItems(TDEPopupMenu* menu) {
scaleInMenu->insertItem(i18n("10MBit/s"), 10000000); scaleInMenu->insertItem(i18n("10MBit/s"), 10000000);
scaleInMenu->insertItem(i18n("Other...")); scaleInMenu->insertItem(i18n("Other..."));
updateScaleInMenu(scaleInMenu); updateScaleInMenu(scaleInMenu);
connect(scaleInMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setScaleIn(int))); connect(scaleInMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setScaleIn(int)));
menu->insertItem(SmallIcon("scalein"), i18n("&Scale (In)"), scaleInMenu); menu->insertItem(SmallIcon("scalein"), i18n("&Scale (In)"), scaleInMenu);
TDEPopupMenu* scaleOutMenu = new TDEPopupMenu(menu); TDEPopupMenu* scaleOutMenu = new TDEPopupMenu(menu);
@ -294,7 +294,7 @@ void KNetLoad::insertCustomItems(TDEPopupMenu* menu) {
scaleOutMenu->insertSeparator(); scaleOutMenu->insertSeparator();
scaleOutMenu->insertItem(i18n("Same as for in"), 0); scaleOutMenu->insertItem(i18n("Same as for in"), 0);
updateScaleOutMenu(scaleOutMenu); updateScaleOutMenu(scaleOutMenu);
connect(scaleOutMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setScaleOut(int))); connect(scaleOutMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setScaleOut(int)));
menu->insertItem(SmallIcon("scaleout"), i18n("&Scale (Out)"), scaleOutMenu); menu->insertItem(SmallIcon("scaleout"), i18n("&Scale (Out)"), scaleOutMenu);
// The final separator. // The final separator.

@ -36,8 +36,8 @@ ScaleDialog::ScaleDialog(int defaultScale, const TQString &title,
val->setBottom(1); val->setBottom(1);
scaleBox->setValidator(val); scaleBox->setValidator(val);
connect(scaleBox, TQT_SIGNAL(textChanged(const TQString&)), connect(scaleBox, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(updateScale(const TQString&))); this, TQ_SLOT(updateScale(const TQString&)));
} }
int ScaleDialog::getScale() const { int ScaleDialog::getScale() const {

@ -48,8 +48,8 @@ SpeedDialog::SpeedDialog(int defaultSpeed, TQWidget* parent) :
speedStr.setNum(defaultSpeed); speedStr.setNum(defaultSpeed);
speedBox->setCurrentText(speedStr); speedBox->setCurrentText(speedStr);
connect(speedBox, TQT_SIGNAL(textChanged(const TQString&)), connect(speedBox, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(updateSpeed(const TQString&))); this, TQ_SLOT(updateSpeed(const TQString&)));
} }
int SpeedDialog::getSpeed() const { int SpeedDialog::getSpeed() const {

@ -61,7 +61,7 @@ StatPopup::StatPopup(bool useSupportSplit, TQWidget *parent, const char *name) :
// Set up a timer for our periodic updates. // Set up a timer for our periodic updates.
timer = new TQTimer(this); timer = new TQTimer(this);
connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(takeReading())); connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(takeReading()));
} }
StatPopup::~StatPopup() { StatPopup::~StatPopup() {
@ -344,30 +344,30 @@ void StatPopup::setupActions() {
bVal = config->readBoolEntry("Active", true); bVal = config->readBoolEntry("Active", true);
actActive = new TDEToggleAction(i18n("&Active"), 0, coll, "active"); actActive = new TDEToggleAction(i18n("&Active"), 0, coll, "active");
actActive->setChecked(bVal); actActive->setChecked(bVal);
connect(actActive, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setActive(bool))); connect(actActive, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setActive(bool)));
actClearHistory = new TDEAction(i18n("&Clear"), "edit-delete", 0, actClearHistory = new TDEAction(i18n("&Clear"), "edit-delete", 0,
this, TQT_SLOT(clearHistory()), coll, "clear"); this, TQ_SLOT(clearHistory()), coll, "clear");
speed = config->readNumEntry("Speed", DEFAULT_SPEED); speed = config->readNumEntry("Speed", DEFAULT_SPEED);
actSpeed = new TDEAction(i18n("&Speed..."), "speedarrow", 0, actSpeed = new TDEAction(i18n("&Speed..."), "speedarrow", 0,
this, TQT_SLOT(selectSpeed()), coll, "speed"); this, TQ_SLOT(selectSpeed()), coll, "speed");
if (supportSplit) { if (supportSplit) {
bVal = config->readBoolEntry("Split", true); bVal = config->readBoolEntry("Split", true);
actSplit = new IconToggleAction(i18n("Sp&lit Graph"), "split", actSplit = new IconToggleAction(i18n("Sp&lit Graph"), "split",
i18n("Graph Sp&litting Enabled"), "spliton", 0, coll, "split"); i18n("Graph Sp&litting Enabled"), "spliton", 0, coll, "split");
actSplit->setChecked(bVal); actSplit->setChecked(bVal);
connect(actSplit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setSplit(bool))); connect(actSplit, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setSplit(bool)));
} }
iVal = config->readNumEntry("StyleID", StatDock::fillShaded); iVal = config->readNumEntry("StyleID", StatDock::fillShaded);
actFillLines = new IconToggleAction(i18n("&Lines"), "lines", "lineson", 0, actFillLines = new IconToggleAction(i18n("&Lines"), "lines", "lineson", 0,
this, TQT_SLOT(setFillLines()), coll, "filllines"); this, TQ_SLOT(setFillLines()), coll, "filllines");
actFillBars = new IconToggleAction(i18n("&Bars"), "bars", "barson", 0, actFillBars = new IconToggleAction(i18n("&Bars"), "bars", "barson", 0,
this, TQT_SLOT(setFillBars()), coll, "fillbars"); this, TQ_SLOT(setFillBars()), coll, "fillbars");
actFillShaded = new IconToggleAction(i18n("&Shaded"), "shaded", "shadedon", actFillShaded = new IconToggleAction(i18n("&Shaded"), "shaded", "shadedon",
0, this, TQT_SLOT(setFillShaded()), coll, "fillshaded"); 0, this, TQ_SLOT(setFillShaded()), coll, "fillshaded");
if (iVal == StatDock::fillLines) if (iVal == StatDock::fillLines)
setFillLines(); setFillLines();
else if (iVal == StatDock::fillBars) else if (iVal == StatDock::fillBars)
@ -379,30 +379,30 @@ void StatPopup::setupActions() {
actSoft = new IconToggleAction(i18n("So&ft Curves"), "soft", actSoft = new IconToggleAction(i18n("So&ft Curves"), "soft",
i18n("So&ft Curves Enabled"), "softon", 0, coll, "soft"); i18n("So&ft Curves Enabled"), "softon", 0, coll, "soft");
actSoft->setChecked(bVal); actSoft->setChecked(bVal);
connect(actSoft, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setSoft(bool))); connect(actSoft, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setSoft(bool)));
bVal = config->readBoolEntry("Labelled", true); bVal = config->readBoolEntry("Labelled", true);
actLabelled= new IconToggleAction(i18n("Show &Labels"), "labels", actLabelled= new IconToggleAction(i18n("Show &Labels"), "labels",
i18n("&Labels Enabled"), "labelson", 0, coll, "labelled"); i18n("&Labels Enabled"), "labelson", 0, coll, "labelled");
actLabelled->setChecked(bVal); actLabelled->setChecked(bVal);
connect(actLabelled, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setLabelled(bool))); connect(actLabelled, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setLabelled(bool)));
bVal = config->readBoolEntry("Grid", true); bVal = config->readBoolEntry("Grid", true);
actGrid = new IconToggleAction(i18n("Show &Grid"), "grid", actGrid = new IconToggleAction(i18n("Show &Grid"), "grid",
i18n("&Grid Enabled"), "gridon", 0, coll, "grid"); i18n("&Grid Enabled"), "gridon", 0, coll, "grid");
actGrid->setChecked(bVal); actGrid->setChecked(bVal);
connect(actGrid, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setGrid(bool))); connect(actGrid, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setGrid(bool)));
color[0] = defaultDockColor(0); color[0] = defaultDockColor(0);
color[0] = config->readColorEntry("Color0", color); color[0] = config->readColorEntry("Color0", color);
actColor0 = new TDEAction(TQString(i18n("Color (%1)...")).arg(dockName(0)), actColor0 = new TDEAction(TQString(i18n("Color (%1)...")).arg(dockName(0)),
"color0", 0, this, TQT_SLOT(selectColor0()), coll, "color0"); "color0", 0, this, TQ_SLOT(selectColor0()), coll, "color0");
actColor0->setEnabled(false); actColor0->setEnabled(false);
color[1] = defaultDockColor(1); color[1] = defaultDockColor(1);
color[1] = config->readColorEntry("Color1", color + 1); color[1] = config->readColorEntry("Color1", color + 1);
actColor1 = new TDEAction(TQString(i18n("Color (%1)...")).arg(dockName(1)), actColor1 = new TDEAction(TQString(i18n("Color (%1)...")).arg(dockName(1)),
"color1", 0, this, TQT_SLOT(selectColor1()), coll, "color1"); "color1", 0, this, TQ_SLOT(selectColor1()), coll, "color1");
actColor1->setEnabled(false); actColor1->setEnabled(false);
setupCustomActions(); setupCustomActions();

Loading…
Cancel
Save