diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-18 20:34:22 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-18 20:34:22 +0000 |
commit | b09bffed6b43262948018dfb0f11890850ddf7c1 (patch) | |
tree | 138696bfcc7ac01070d0e8ecaa1cdf94611a2bd8 /kpackage/kpTerm.cpp | |
parent | 6d43944a7130b9d1b4ae3fba37b774aced8612cf (diff) | |
download | tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.tar.gz tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.zip |
TQt4 port kdeadmin
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1237416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpackage/kpTerm.cpp')
-rw-r--r-- | kpackage/kpTerm.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kpackage/kpTerm.cpp b/kpackage/kpTerm.cpp index aab6ab8..c91f1a2 100644 --- a/kpackage/kpTerm.cpp +++ b/kpackage/kpTerm.cpp @@ -38,13 +38,13 @@ ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// -kpTerm::kpTerm(kpPty *pt, TQWidget * parent, const char * name ) : - TQTextEdit(parent,name) +kpTerm::kpTerm(kpPty *pt, TQWidget * tqparent, const char * name ) : + TQTextEdit(tqparent,name) { pty = pt; setFont(KGlobalSettings::fixedFont()); // setMinimumWidth(fontMetrics().maxWidth()*80 + - // minimumSizeHint().width()); + // tqminimumSizeHint().width()); setWordWrap(NoWrap); setReadOnly(TRUE); } @@ -111,13 +111,13 @@ void kpTerm::textIn(const TQString &stext, bool bNewLine) TQRegExp chrs("[\\010\\012\\015]"); TQString del = "\010"; // kdDebug() << "Tin=[" << stext << "]\n"; - if (stext.find(chrs) < 0) { + if (stext.tqfind(chrs) < 0) { insert( stext ); } else { int p; int op = 0; - while ((p = stext.find(chrs,op)) >= 0) { + while ((p = stext.tqfind(chrs,op)) >= 0) { if (p != op) { insert( stext.mid(op, p-op)); } @@ -169,8 +169,8 @@ void kpTerm::slotResult(TQStringList &rlist, int ret) // Dialog window for password prompt // ////////////////////////////////////////////////////////////////////////////// -kpRun::kpRun( TQWidget *parent) - : KDialogBase(parent, "kpRun", true, TQString::null, +kpRun::kpRun( TQWidget *tqparent) + : KDialogBase(tqparent, "kpRun", true, TQString(), Cancel, Cancel, true ) { TQVBox *page = makeVBoxMainWidget(); |