summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/lineedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/lib/lineedit.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/lib/lineedit.cpp')
-rw-r--r--kalarm/lib/lineedit.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kalarm/lib/lineedit.cpp b/kalarm/lib/lineedit.cpp
index 943d7b2d0..64c79ea7b 100644
--- a/kalarm/lib/lineedit.cpp
+++ b/kalarm/lib/lineedit.cpp
@@ -20,8 +20,8 @@
#include "kalarm.h"
-#include <qregexp.h>
-#include <qdragobject.h>
+#include <tqregexp.h>
+#include <tqdragobject.h>
#include <kurldrag.h>
#include <kurlcompletion.h>
@@ -39,7 +39,7 @@
* It has an option to prevent its contents being selected when it receives
= focus.
=============================================================================*/
-LineEdit::LineEdit(Type type, QWidget* parent, const char* name)
+LineEdit::LineEdit(Type type, TQWidget* parent, const char* name)
: KLineEdit(parent, name),
mType(type),
mNoSelect(false),
@@ -48,7 +48,7 @@ LineEdit::LineEdit(Type type, QWidget* parent, const char* name)
init();
}
-LineEdit::LineEdit(QWidget* parent, const char* name)
+LineEdit::LineEdit(TQWidget* parent, const char* name)
: KLineEdit(parent, name),
mType(Text),
mNoSelect(false),
@@ -75,39 +75,39 @@ void LineEdit::init()
* Called when the line edit receives focus.
* If 'noSelect' is true, prevent the contents being selected.
*/
-void LineEdit::focusInEvent(QFocusEvent* e)
+void LineEdit::focusInEvent(TQFocusEvent* e)
{
if (mNoSelect)
- QFocusEvent::setReason(QFocusEvent::Other);
+ TQFocusEvent::setReason(TQFocusEvent::Other);
KLineEdit::focusInEvent(e);
if (mNoSelect)
{
- QFocusEvent::resetReason();
+ TQFocusEvent::resetReason();
mNoSelect = false;
}
}
-void LineEdit::setText(const QString& text)
+void LineEdit::setText(const TQString& text)
{
KLineEdit::setText(text);
setCursorPosition(mSetCursorAtEnd ? text.length() : 0);
}
-void LineEdit::dragEnterEvent(QDragEnterEvent* e)
+void LineEdit::dragEnterEvent(TQDragEnterEvent* e)
{
if (KCal::ICalDrag::canDecode(e))
e->accept(false); // don't accept "text/calendar" objects
- e->accept(QTextDrag::canDecode(e)
+ e->accept(TQTextDrag::canDecode(e)
|| KURLDrag::canDecode(e)
|| mType != Url && KPIM::MailListDrag::canDecode(e)
|| mType == Emails && KVCardDrag::canDecode(e));
}
-void LineEdit::dropEvent(QDropEvent* e)
+void LineEdit::dropEvent(TQDropEvent* e)
{
- QString newText;
- QStringList newEmails;
- QString txt;
+ TQString newText;
+ TQStringList newEmails;
+ TQString txt;
KPIM::MailList mailList;
KURL::List files;
KABC::Addressee::List addrList;
@@ -132,7 +132,7 @@ void LineEdit::dropEvent(QDropEvent* e)
// KAddressBook entries
for (KABC::Addressee::List::Iterator it = addrList.begin(); it != addrList.end(); ++it)
{
- QString em((*it).fullEmail());
+ TQString em((*it).fullEmail());
if (!em.isEmpty())
newEmails.append(em);
}
@@ -149,7 +149,7 @@ void LineEdit::dropEvent(QDropEvent* e)
case Emails:
{
// Email entry field - ignore all but mailto: URLs
- QString mailto = QString::fromLatin1("mailto");
+ TQString mailto = TQString::fromLatin1("mailto");
for (KURL::List::Iterator it = files.begin(); it != files.end(); ++it)
{
if ((*it).protocol() == mailto)
@@ -162,15 +162,15 @@ void LineEdit::dropEvent(QDropEvent* e)
break;
}
}
- else if (QTextDrag::decode(e, txt))
+ else if (TQTextDrag::decode(e, txt))
{
// Plain text
if (mType == Emails)
{
// Remove newlines from a list of email addresses, and allow an eventual mailto: protocol
- QString mailto = QString::fromLatin1("mailto:");
- newEmails = QStringList::split(QRegExp("[\r\n]+"), txt);
- for (QStringList::Iterator it = newEmails.begin(); it != newEmails.end(); ++it)
+ TQString mailto = TQString::fromLatin1("mailto:");
+ newEmails = TQStringList::split(TQRegExp("[\r\n]+"), txt);
+ for (TQStringList::Iterator it = newEmails.begin(); it != newEmails.end(); ++it)
{
if ((*it).startsWith(mailto))
{