summaryrefslogtreecommitdiffstats
path: root/kdm/kfrontend/kgreeter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:25 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:25 -0600
commit2c01fd64ddde84a6d78b632f7f3b7c3560dc288c (patch)
tree65f4f4370cf4269757d7fa4d0f4d15996a1bf68f /kdm/kfrontend/kgreeter.cpp
parent73c08b592db45af554b9f21029bc549d70f683ab (diff)
downloadtdebase-2c01fd64ddde84a6d78b632f7f3b7c3560dc288c.tar.gz
tdebase-2c01fd64ddde84a6d78b632f7f3b7c3560dc288c.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 73c08b592db45af554b9f21029bc549d70f683ab.
Diffstat (limited to 'kdm/kfrontend/kgreeter.cpp')
-rw-r--r--kdm/kfrontend/kgreeter.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kdm/kfrontend/kgreeter.cpp b/kdm/kfrontend/kgreeter.cpp
index 61a27a03f..ab7fd302b 100644
--- a/kdm/kfrontend/kgreeter.cpp
+++ b/kdm/kfrontend/kgreeter.cpp
@@ -53,7 +53,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <tqtimer.h>
#include <tqheader.h>
#include <tqstyle.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlabel.h>
#include <tqpushbutton.h>
#include <tqtooltip.h>
@@ -96,7 +96,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 );
@@ -122,10 +122,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();
@@ -136,7 +136,7 @@ public:
maxw = thisw;
}
cachedSizeHint.setWidth(
- tqstyle().pixelMetric( TQStyle::PM_ScrollBarExtent ) +
+ tqstyle().tqpixelMetric( TQStyle::PM_ScrollBarExtent ) +
frameWidth() * 2 + maxw );
}
return cachedSizeHint;
@@ -157,7 +157,7 @@ public:
kdDebug() << "paintEmpty " << rect << endl;
TQRect devRect = p->xForm( rect );
kdDebug() << "paintEmpty2 " << devRect << endl;
- p->drawPixmap(0, 0, *pm, devRect.left(), devRect.top() );
+ p->tqdrawPixmap(0, 0, *pm, devRect.left(), devRect.top() );
}
TQPixmap background;
@@ -243,8 +243,8 @@ void KGreeter::handleInputPipe(void) {
currentDisplay = TQString(getenv("DISPLAY"));
currentDisplay = currentDisplay.replace(":", "");
displayNumber = currentDisplay.toInt();
- mPipeFilename = TQString(FIFO_FILE).arg(displayNumber);
- ::unlink((TQString(FIFO_SAK_FILE).arg(displayNumber)).ascii());
+ mPipeFilename = TQString(FIFO_FILE).tqarg(displayNumber);
+ ::unlink((TQString(FIFO_SAK_FILE).tqarg(displayNumber)).ascii());
/* Create the FIFOs if they do not exist */
umask(0);
@@ -338,12 +338,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;
@@ -422,7 +422,7 @@ KGreeter::insertUser( const TQImage &default_pix,
if ( randomFace.isNull() ) {
TQStringList::size_type index = 0;
for ( size_t i = 0; i < username.length(); ++i )
- index += ( 0x7f - username.at( i ).latin1() ) % 37;
+ index += ( 0x7f - username.tqat( i ).latin1() ) % 37;
randomFace = randomFaces[ index % randomFaces.count() ];
}
p.load( _faceDir + "/../pics/users/" + randomFace + ".png" );
@@ -890,14 +890,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 );
}