summaryrefslogtreecommitdiffstats
path: root/kppp/pppdata.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kppp/pppdata.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kppp/pppdata.cpp')
-rw-r--r--kppp/pppdata.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kppp/pppdata.cpp b/kppp/pppdata.cpp
index 2c43d7f7..e856dd2c 100644
--- a/kppp/pppdata.cpp
+++ b/kppp/pppdata.cpp
@@ -300,12 +300,12 @@ void PPPData::set_redial_on_nocarrier(bool set) {
bool PPPData::quit_on_disconnect() {
- return (bool) readNumConfig(GENERAL_GRP, QUITONDISCONNECT_KEY, false);
+ return (bool) readNumConfig(GENERAL_GRP, TQUITONDISCONNECT_KEY, false);
}
void PPPData::set_quit_on_disconnect(bool set) {
- writeConfig(GENERAL_GRP, QUITONDISCONNECT_KEY, (int) set);
+ writeConfig(GENERAL_GRP, TQUITONDISCONNECT_KEY, (int) set);
}
@@ -350,7 +350,7 @@ void PPPData::set_dock_into_panel(bool set) {
TQString PPPData::pppdVersion() {
- return TQString("%1.%2.%3").arg(pppdVer).arg(pppdMod).arg(pppdPatch);
+ return TQString("%1.%2.%3").tqarg(pppdVer).tqarg(pppdMod).tqarg(pppdPatch);
}
bool PPPData::pppdVersionMin(int ver, int mod, int patch) {
@@ -498,7 +498,7 @@ int PPPData::copymodem(int i) {
TQMap <TQString, TQString> map = config->entryMap(cmodemgroup);
TQMap <TQString, TQString>::ConstIterator it = map.begin();
- TQString newname = i18n("%1_copy").arg(modname());
+ TQString newname = i18n("%1_copy").tqarg(modname());
newmodem();
@@ -929,7 +929,7 @@ bool PPPData::setAccountByIndex(int i) {
bool PPPData::isUniqueAccname(const TQString &n) {
- if(n.contains(':'))
+ if(n.tqcontains(':'))
return false;
int current = caccount;
for(int i=0; i <= accounthighcount; i++) {
@@ -1026,7 +1026,7 @@ int PPPData::copyaccount(int i) {
TQMap <TQString, TQString> map = config->entryMap(caccountgroup);
TQMap <TQString, TQString>::ConstIterator it = map.begin();
- TQString newname = i18n("%1_copy").arg(accname());
+ TQString newname = i18n("%1_copy").tqarg(accname());
newaccount();
@@ -1199,12 +1199,12 @@ void PPPData::setIpaddr(const TQString &n) {
}
-const TQString PPPData::subnetmask() {
+const TQString PPPData::subnettqmask() {
return readConfig(caccountgroup, SUBNETMASK_KEY);
}
-void PPPData::setSubnetmask(const TQString &n) {
+void PPPData::setSubnettqmask(const TQString &n) {
writeConfig(caccountgroup, SUBNETMASK_KEY, n);
}
@@ -1418,13 +1418,13 @@ void PPPData::graphingOptions(bool &enable,
if(config) {
config->setGroup(GRAPH_GRP);
enable = config->readBoolEntry(GENABLED, true);
- c = Qt::white;
+ c = TQt::white;
bg = config->readColorEntry(GCOLOR_BG, &c);
- c = Qt::black;
+ c = TQt::black;
text = config->readColorEntry(GCOLOR_TEXT, &c);
- c = Qt::blue;
+ c = TQt::blue;
in = config->readColorEntry(GCOLOR_IN, &c);
- c = Qt::red;
+ c = TQt::red;
out = config->readColorEntry(GCOLOR_OUT, &c);
}
}