diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:23:09 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:23:09 -0600 |
commit | 8a143ab9f846e910c583ea8e770cd05495e0c58d (patch) | |
tree | 06462d431eeef66349e54facb75e75a09261eba8 /krdc/rdp/rdphostpref.h | |
parent | 1de96857f5b0ed5d4a36e9486ffc8c7f8c802f98 (diff) | |
download | tdenetwork-8a143ab9f846e910c583ea8e770cd05495e0c58d.tar.gz tdenetwork-8a143ab9f846e910c583ea8e770cd05495e0c58d.zip |
Rename obsolete tq methods to standard names
Diffstat (limited to 'krdc/rdp/rdphostpref.h')
-rw-r--r-- | krdc/rdp/rdphostpref.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/krdc/rdp/rdphostpref.h b/krdc/rdp/rdphostpref.h index 11f490ec..7b7be704 100644 --- a/krdc/rdp/rdphostpref.h +++ b/krdc/rdp/rdphostpref.h @@ -60,29 +60,29 @@ static const int rdpDefaultKeymap = 6; // en-us inline int keymap2int(const TQString &keymap) { - int tqlayout; - for(tqlayout = 0; tqlayout < rdpNumKeymaps; tqlayout++) + int layout; + for(layout = 0; layout < rdpNumKeymaps; layout++) { - if(keymap == rdpKeymaps[tqlayout]) + if(keymap == rdpKeymaps[layout]) { break; } } - if(tqlayout == rdpNumKeymaps) + if(layout == rdpNumKeymaps) { - tqlayout = rdpDefaultKeymap; + layout = rdpDefaultKeymap; } - return tqlayout; + return layout; } -inline TQString int2keymap(int tqlayout) +inline TQString int2keymap(int layout) { - if(tqlayout < 0 || tqlayout >= rdpNumKeymaps) + if(layout < 0 || layout >= rdpNumKeymaps) { return rdpKeymaps[rdpDefaultKeymap]; } - return rdpKeymaps[tqlayout]; + return rdpKeymaps[layout]; } class RdpHostPref : public HostPref @@ -117,7 +117,7 @@ class RdpHostPref : public HostPref void setColorDepth(int depth); int colorDepth() const; void setLayout(const TQString &l); - TQString tqlayout() const; + TQString layout() const; void setAskOnConnect(bool ask); bool askOnConnect() const; bool useKWallet() const; |