summaryrefslogtreecommitdiffstats
path: root/kdmlib/kgreet_pam.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /kdmlib/kgreet_pam.cpp
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdmlib/kgreet_pam.cpp')
-rw-r--r--kdmlib/kgreet_pam.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kdmlib/kgreet_pam.cpp b/kdmlib/kgreet_pam.cpp
index b43952488..5ac93e074 100644
--- a/kdmlib/kgreet_pam.cpp
+++ b/kdmlib/kgreet_pam.cpp
@@ -94,12 +94,12 @@ KPamGreeter::KPamGreeter( KGreeterPluginHandler *_handler,
debug("KPamGreeter constructed\n");
- m_parentWidget = parent;
+ m_tqparentWidget = parent;
KdmItem *user_entry = 0, *pw_entry = 0;
int line = 0;
- layoutItem = 0;
+ tqlayoutItem = 0;
if (themer &&
(!(user_entry = themer->findNode( "user-entry" )) ||
@@ -109,7 +109,7 @@ KPamGreeter::KPamGreeter( KGreeterPluginHandler *_handler,
m_themer = themer;
if (!themer)
- layoutItem = new TQGridLayout( 0, 0, 10 );
+ tqlayoutItem = new TQGridLayout( 0, 0, 10 );
loginLabel = 0;
authLabel.clear();
@@ -205,14 +205,14 @@ KPamGreeter::~KPamGreeter()
{
debug("KPamGreeter::~KPamGreeter");
abort();
- if (!layoutItem) {
+ if (!tqlayoutItem) {
delete loginEdit;
return;
}
- TQLayoutIterator it = static_cast<TQLayout *>(layoutItem)->iterator();
+ TQLayoutIterator it = static_cast<TQLayout *>(tqlayoutItem)->iterator();
for (TQLayoutItem *itm = it.current(); itm; itm = ++it)
delete itm->widget();
- delete layoutItem;
+ delete tqlayoutItem;
debug("destructor finished, good bye");
}
@@ -314,7 +314,7 @@ KPamGreeter::textMessage( const char *text, bool err )
return false;
if (getLayoutItem()) {
- TQLabel* label = new TQLabel(TQString::fromUtf8(text), m_parentWidget);
+ TQLabel* label = new TQLabel(TQString::fromUtf8(text), m_tqparentWidget);
getLayoutItem()->addWidget(label, state+1, 0, 0);
}
@@ -341,9 +341,9 @@ KPamGreeter::textPrompt( const char *prompt, bool echo, bool nonBlocking )
}
else if (state >= authEdit.size()) {
if (getLayoutItem()) {
- TQLabel* label = new TQLabel(TQString::fromUtf8(prompt), m_parentWidget);
+ TQLabel* label = new TQLabel(TQString::fromUtf8(prompt), m_tqparentWidget);
getLayoutItem()->addWidget(label, state+1, 0, 0);
- debug("added label widget to layout");
+ debug("added label widget to tqlayout");
}
else if (m_themer) {
debug("themer found!");
@@ -361,9 +361,9 @@ KPamGreeter::textPrompt( const char *prompt, bool echo, bool nonBlocking )
KDMPasswordEdit* passwdEdit;
if (echoMode == -1)
- passwdEdit = new KDMPasswordEdit( m_parentWidget );
+ passwdEdit = new KDMPasswordEdit( m_tqparentWidget );
else
- passwdEdit = new KDMPasswordEdit( echoMode, m_parentWidget);
+ passwdEdit = new KDMPasswordEdit( echoMode, m_tqparentWidget);
connect( passwdEdit, TQT_SIGNAL(textChanged( const TQString & )),
TQT_SLOT(slotActivity()) );
connect( passwdEdit, TQT_SIGNAL(lostFocus()), TQT_SLOT(slotActivity()) );