summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/lineedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kalarm/lib/lineedit.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/lib/lineedit.cpp')
-rw-r--r--kalarm/lib/lineedit.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kalarm/lib/lineedit.cpp b/kalarm/lib/lineedit.cpp
index 4dcdc15f8..d85a99458 100644
--- a/kalarm/lib/lineedit.cpp
+++ b/kalarm/lib/lineedit.cpp
@@ -39,8 +39,8 @@
* It has an option to prevent its contents being selected when it receives
= focus.
=============================================================================*/
-LineEdit::LineEdit(Type type, TQWidget* parent, const char* name)
- : KLineEdit(parent, name),
+LineEdit::LineEdit(Type type, TQWidget* tqparent, const char* name)
+ : KLineEdit(tqparent, name),
mType(type),
mNoSelect(false),
mSetCursorAtEnd(false)
@@ -48,8 +48,8 @@ LineEdit::LineEdit(Type type, TQWidget* parent, const char* name)
init();
}
-LineEdit::LineEdit(TQWidget* parent, const char* name)
- : KLineEdit(parent, name),
+LineEdit::LineEdit(TQWidget* tqparent, const char* name)
+ : KLineEdit(tqparent, name),
mType(Text),
mNoSelect(false),
mSetCursorAtEnd(false)
@@ -122,7 +122,7 @@ void LineEdit::dropEvent(TQDropEvent* e)
if (mType == Emails)
newText = mailList.first().from();
else
- setText(mailList.first().subject()); // tqreplace any existing text
+ setText(mailList.first().subject()); // replace any existing text
}
}
// This must come before KURLDrag
@@ -144,7 +144,7 @@ void LineEdit::dropEvent(TQDropEvent* e)
{
case Url:
// URL entry field - ignore all but the first dropped URL
- setText(files.first().prettyURL()); // tqreplace any existing text
+ setText(files.first().prettyURL()); // replace any existing text
break;
case Emails:
{
@@ -181,7 +181,7 @@ void LineEdit::dropEvent(TQDropEvent* e)
}
else
{
- int newline = txt.find('\n');
+ int newline = txt.tqfind('\n');
newText = (newline >= 0) ? txt.left(newline) : txt;
}
}