From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdesktop/lock/querydlg.cc | 56 +++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'kdesktop/lock/querydlg.cc') diff --git a/kdesktop/lock/querydlg.cc b/kdesktop/lock/querydlg.cc index 7bdedf0e8..d4ad06e88 100644 --- a/kdesktop/lock/querydlg.cc +++ b/kdesktop/lock/querydlg.cc @@ -25,18 +25,18 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -59,49 +59,49 @@ // Simple dialog for displaying a password/PIN entry dialog // QueryDlg::QueryDlg(LockProcess *parent) - : QDialog(parent, "query dialog", true, WX11BypassWM), + : TQDialog(parent, "query dialog", true, WX11BypassWM), mUnlockingFailed(false) { - frame = new QFrame( this ); - frame->setFrameStyle( QFrame::Panel | QFrame::Raised ); + frame = new TQFrame( this ); + frame->setFrameStyle( TQFrame::Panel | TQFrame::Raised ); frame->setLineWidth( 2 ); - mpixLabel = new QLabel( frame, "pixlabel" ); + mpixLabel = new TQLabel( frame, "pixlabel" ); mpixLabel->setPixmap(DesktopIcon("unlock")); KUser user; - mStatusLabel = new QLabel( " ", frame ); - //mStatusLabel->setAlignment( QLabel::AlignCenter ); - mStatusLabel->setAlignment( QLabel::AlignLeft ); + mStatusLabel = new TQLabel( " ", frame ); + //mStatusLabel->setAlignment( TQLabel::AlignCenter ); + mStatusLabel->setAlignment( TQLabel::AlignLeft ); KSeparator *sep = new KSeparator( KSeparator::HLine, frame ); ok = new KPushButton( i18n("Unl&ock"), frame ); - QVBoxLayout *unlockDialogLayout = new QVBoxLayout( this ); + TQVBoxLayout *unlockDialogLayout = new TQVBoxLayout( this ); unlockDialogLayout->addWidget( frame ); - QHBoxLayout *layStatus = new QHBoxLayout( 0, 0, KDialog::spacingHint()); + TQHBoxLayout *layStatus = new TQHBoxLayout( 0, 0, KDialog::spacingHint()); layStatus->addWidget( mStatusLabel ); - QHBoxLayout *layPin = new QHBoxLayout( 0, 0, KDialog::spacingHint()); + TQHBoxLayout *layPin = new TQHBoxLayout( 0, 0, KDialog::spacingHint()); pin_box = new KPasswordEdit( this, "pin_box" ); layPin->addWidget( pin_box ); pin_box->setFocus(); - QHBoxLayout *layButtons = new QHBoxLayout( 0, 0, KDialog::spacingHint()); + TQHBoxLayout *layButtons = new TQHBoxLayout( 0, 0, KDialog::spacingHint()); layButtons->addStretch(); layButtons->addWidget( ok ); - frameLayout = new QGridLayout( frame, 1, 1, KDialog::marginHint(), KDialog::spacingHint() ); + frameLayout = new TQGridLayout( frame, 1, 1, KDialog::marginHint(), KDialog::spacingHint() ); frameLayout->addMultiCellWidget( mpixLabel, 0, 2, 0, 0, AlignTop ); frameLayout->addLayout( layStatus, 0, 1 ); frameLayout->addLayout( layPin, 2, 1 ); frameLayout->addMultiCellWidget( sep, 3, 3, 0, 1 ); frameLayout->addMultiCellLayout( layButtons, 4, 4, 0, 1 ); - connect(ok, SIGNAL(clicked()), SLOT(slotOK())); + connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(slotOK())); installEventFilter(this); } @@ -121,7 +121,7 @@ const char * QueryDlg::getEntry() return pin_box->password(); } -void QueryDlg::updateLabel(QString &txt) +void QueryDlg::updateLabel(TQString &txt) { mStatusLabel->setPaletteForegroundColor(Qt::black); mStatusLabel->setText("" + txt + ""); @@ -139,8 +139,8 @@ void QueryDlg::setWarningIcon() void QueryDlg::show() { - QDialog::show(); - QApplication::flushX(); + TQDialog::show(); + TQApplication::flushX(); } #include "querydlg.moc" -- cgit v1.2.1