summaryrefslogtreecommitdiffstats
path: root/kdm/kfrontend/kgreeter.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 /kdm/kfrontend/kgreeter.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 'kdm/kfrontend/kgreeter.cpp')
-rw-r--r--kdm/kfrontend/kgreeter.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kdm/kfrontend/kgreeter.cpp b/kdm/kfrontend/kgreeter.cpp
index bd2e2651a..8e144f06f 100644
--- a/kdm/kfrontend/kgreeter.cpp
+++ b/kdm/kfrontend/kgreeter.cpp
@@ -79,7 +79,7 @@ class UserListView : public KListView {
: KListView( parent, name )
, themed(_them), cachedSizeHint( -1, 0 )
{
- setSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Ignored );
+ tqsetSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Ignored );
header()->hide();
addColumn( TQString::null );
setColumnAlignment( 0, AlignVCenter );
@@ -105,10 +105,10 @@ class UserListView : public KListView {
return sum;
}
public:
- virtual TQSize sizeHint() const
+ virtual TQSize tqsizeHint() const
{
if (themed)
- return KListView::sizeHint();
+ return KListView::tqsizeHint();
if (!cachedSizeHint.isValid()) {
constPolish();
@@ -119,7 +119,7 @@ public:
maxw = thisw;
}
cachedSizeHint.setWidth(
- style().pixelMetric( TQStyle::PM_ScrollBarExtent ) +
+ style().tqpixelMetric( TQStyle::PM_ScrollBarExtent ) +
frameWidth() * 2 + maxw );
}
return cachedSizeHint;
@@ -235,12 +235,12 @@ class UserListViewItem : public KListViewItem {
parent->cachedSizeHint.setWidth( -1 );
}
- virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment)
+ virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment)
{
if (((UserListView*)listView())->themed)
- TQListViewItem::paintCell(p, cg, column, width, alignment);
+ TQListViewItem::paintCell(p, cg, column, width, tqalignment);
else
- KListViewItem::paintCell(p, cg, column, width, alignment);
+ KListViewItem::paintCell(p, cg, column, width, tqalignment);
}
TQString login;
@@ -343,7 +343,7 @@ KGreeter::insertUser( const TQImage &default_pix,
class KCStringList : public TQValueList<TQCString> {
public:
- bool contains( const char *str ) const
+ bool tqcontains( const char *str ) const
{
for (ConstIterator it = begin(); it != end(); ++it)
if (*it == str)
@@ -355,7 +355,7 @@ class KCStringList : public TQValueList<TQCString> {
class UserList {
public:
UserList( char **in );
- bool hasUser( const char *str ) const { return users.contains( str ); }
+ bool hasUser( const char *str ) const { return users.tqcontains( str ); }
bool hasGroup( gid_t gid ) const
{ return groups.find( gid ) != groups.end(); }
bool hasGroups() const { return !groups.isEmpty(); }
@@ -786,14 +786,14 @@ KStdGreeter::KStdGreeter()
i18n("This display requires no X authorization.\n"
"This means that anybody can connect to it,\n"
"open windows on it or intercept your input.") );
- complainLabel->setAlignment( AlignCenter );
+ complainLabel->tqsetAlignment( AlignCenter );
complainLabel->setFont( _failFont );
complainLabel->setPaletteForegroundColor( Qt::red );
inner_box->addWidget( complainLabel );
}
if (!_greetString.isEmpty()) {
TQLabel *welcomeLabel = new TQLabel( _greetString, this );
- welcomeLabel->setAlignment( AlignCenter );
+ welcomeLabel->tqsetAlignment( AlignCenter );
welcomeLabel->setFont( _greetFont );
inner_box->addWidget( welcomeLabel );
}
@@ -1092,7 +1092,7 @@ TQString KThemedGreeter::timedUser = TQString::null;
int KThemedGreeter::timedDelay = -1;
void
-KThemedGreeter::updateStatus( bool fail, bool caps, int timedleft )
+KThemedGreeter::updatetqStatus( bool fail, bool caps, int timedleft )
{
if (pam_error) {
if (fail)