diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-13 21:03:36 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-13 21:03:36 +0900 |
commit | b965cbac5b21345e9dfc768a7e4f660ffa4aa72f (patch) | |
tree | 7fcff5d301752cbdcdfff64d8791aff1369b803f /tdm/kfrontend | |
parent | 7d6d35b42e00d6b6658951871b29489bdec80714 (diff) | |
download | tdebase-b965cbac5b21345e9dfc768a7e4f660ffa4aa72f.tar.gz tdebase-b965cbac5b21345e9dfc768a7e4f660ffa4aa72f.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdm/kfrontend')
-rw-r--r-- | tdm/kfrontend/kfdialog.cpp | 6 | ||||
-rw-r--r-- | tdm/kfrontend/kgapp.cpp | 8 | ||||
-rw-r--r-- | tdm/kfrontend/kgapp.h | 2 | ||||
-rw-r--r-- | tdm/kfrontend/kgreeter.cpp | 6 | ||||
-rw-r--r-- | tdm/kfrontend/kgverify.cpp | 8 | ||||
-rw-r--r-- | tdm/kfrontend/sakdlg.cpp | 2 | ||||
-rw-r--r-- | tdm/kfrontend/tdmshutdown.cpp | 12 | ||||
-rw-r--r-- | tdm/kfrontend/themer/tdmitem.cpp | 2 |
8 files changed, 23 insertions, 23 deletions
diff --git a/tdm/kfrontend/kfdialog.cpp b/tdm/kfrontend/kfdialog.cpp index 5e8f8e861..428b2ce09 100644 --- a/tdm/kfrontend/kfdialog.cpp +++ b/tdm/kfrontend/kfdialog.cpp @@ -181,7 +181,7 @@ KFMsgBox::KFMsgBox( TQWidget *parent, TQMessageBox::Icon type, const TQString &t connect( button, TQT_SIGNAL(clicked()), TQT_SLOT(accept()) ); TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 ); - grid->addWidget( label1, 0, 0, Qt::AlignCenter ); - grid->addWidget( label2, 0, 1, Qt::AlignCenter ); - grid->addMultiCellWidget( button, 1,1, 0,1, Qt::AlignCenter ); + grid->addWidget( label1, 0, 0, TQt::AlignCenter ); + grid->addWidget( label2, 0, 1, TQt::AlignCenter ); + grid->addMultiCellWidget( button, 1,1, 0,1, TQt::AlignCenter ); } diff --git a/tdm/kfrontend/kgapp.cpp b/tdm/kfrontend/kgapp.cpp index 58b9d2e9c..521c624f2 100644 --- a/tdm/kfrontend/kgapp.cpp +++ b/tdm/kfrontend/kgapp.cpp @@ -101,7 +101,7 @@ GreeterApp::GreeterApp(Display *dpy) : TDEApplication(dpy) init(); } -GreeterApp::GreeterApp(Display *dpy, Qt::HANDLE visual, Qt::HANDLE colormap) : TDEApplication(dpy, visual, colormap) +GreeterApp::GreeterApp(Display *dpy, TQt::HANDLE visual, TQt::HANDLE colormap) : TDEApplication(dpy, visual, colormap) { init(); } @@ -201,7 +201,7 @@ checkSAK(GreeterApp* app) app->restoreOverrideCursor(); SAKDlg sak(0); sak.exec(); - app->setOverrideCursor( Qt::WaitCursor ); + app->setOverrideCursor( TQt::WaitCursor ); } void @@ -284,7 +284,7 @@ kg_main( const char *argv0 ) GreeterApp *app; if ((!_compositor.isEmpty()) && ( argb_visual_available == true )) { - app = new GreeterApp(dpyi, Qt::HANDLE( visual ), Qt::HANDLE( colormap )); + app = new GreeterApp(dpyi, TQt::HANDLE( visual ), TQt::HANDLE( colormap )); } else { argb_visual_available = false; @@ -418,7 +418,7 @@ kg_main( const char *argv0 ) } TDEProcess *proc2 = 0; - app->setOverrideCursor( Qt::WaitCursor ); + app->setOverrideCursor( TQt::WaitCursor ); FDialog *dialog = NULL; #ifdef XDMCP if (cmd == G_Choose) { diff --git a/tdm/kfrontend/kgapp.h b/tdm/kfrontend/kgapp.h index 0a1c69d19..1acbcf187 100644 --- a/tdm/kfrontend/kgapp.h +++ b/tdm/kfrontend/kgapp.h @@ -40,7 +40,7 @@ class GreeterApp : public TDEApplication { public: GreeterApp(); GreeterApp(Display *dpy); - GreeterApp(Display *dpy, Qt::HANDLE visual, Qt::HANDLE colormap); + GreeterApp(Display *dpy, TQt::HANDLE visual, TQt::HANDLE colormap); ~GreeterApp(); virtual bool x11EventFilter( XEvent * ); diff --git a/tdm/kfrontend/kgreeter.cpp b/tdm/kfrontend/kgreeter.cpp index 61c3f84ef..4aa49eca5 100644 --- a/tdm/kfrontend/kgreeter.cpp +++ b/tdm/kfrontend/kgreeter.cpp @@ -123,8 +123,8 @@ class UserListView : public TDEListView { // FIXME: This must be configurable, so disable // painting of list background for now. // if (themed) { -// setBackgroundMode( Qt::NoBackground ); -// viewport()->setBackgroundMode( Qt::NoBackground ); +// setBackgroundMode( TQt::NoBackground ); +// viewport()->setBackgroundMode( TQt::NoBackground ); // setFrameStyle( TQFrame::NoFrame ); // } } @@ -993,7 +993,7 @@ KStdGreeter::KStdGreeter() "open windows on it or intercept your input.") ); complainLabel->setAlignment( AlignCenter ); complainLabel->setFont( _failFont ); - complainLabel->setPaletteForegroundColor( Qt::red ); + complainLabel->setPaletteForegroundColor( TQt::red ); inner_box->addWidget( complainLabel ); } if (_logoArea == LOGO_NONE) { diff --git a/tdm/kfrontend/kgverify.cpp b/tdm/kfrontend/kgverify.cpp index 44353087a..66b13e974 100644 --- a/tdm/kfrontend/kgverify.cpp +++ b/tdm/kfrontend/kgverify.cpp @@ -1086,7 +1086,7 @@ KGStdVerify::KGStdVerify( KGVerifyHandler *_handler, TQWidget *_parent, failedLabel = new TQLabel( parent ); failedLabel->setFont( _failFont ); - grid->addWidget( failedLabel, 1, 0, Qt::AlignCenter ); + grid->addWidget( failedLabel, 1, 0, TQt::AlignCenter ); updateLockStatus(); } @@ -1143,7 +1143,7 @@ KGStdVerify::updateStatus() if (failedLabelState != nfls) { failedLabelState = nfls; if (nfls < 0) { - failedLabel->setPaletteForegroundColor( Qt::black ); + failedLabel->setPaletteForegroundColor( TQt::black ); failedLabel->setText( i18n( "Automatic login in 1 second...", "Automatic login in %n seconds...", timedLeft ) ); @@ -1153,11 +1153,11 @@ KGStdVerify::updateStatus() failedLabel->clear(); break; case 3: - failedLabel->setPaletteForegroundColor( Qt::red ); + failedLabel->setPaletteForegroundColor( TQt::red ); failedLabel->setText( i18n("Warning: Caps Lock on") ); break; case 2: - failedLabel->setPaletteForegroundColor( Qt::black ); + failedLabel->setPaletteForegroundColor( TQt::black ); failedLabel->setText( authTok ? i18n("Change failed") : fixedEntity.isEmpty() ? diff --git a/tdm/kfrontend/sakdlg.cpp b/tdm/kfrontend/sakdlg.cpp index a15012a17..138045a52 100644 --- a/tdm/kfrontend/sakdlg.cpp +++ b/tdm/kfrontend/sakdlg.cpp @@ -253,7 +253,7 @@ void SAKDlg::reject() void SAKDlg::updateLabel(TQString &txt) { - mStatusLabel->setPaletteForegroundColor(Qt::black); + mStatusLabel->setPaletteForegroundColor(TQt::black); mStatusLabel->setText("<b>" + txt + "</b>"); } diff --git a/tdm/kfrontend/tdmshutdown.cpp b/tdm/kfrontend/tdmshutdown.cpp index 094e2a8c8..1a9ea254c 100644 --- a/tdm/kfrontend/tdmshutdown.cpp +++ b/tdm/kfrontend/tdmshutdown.cpp @@ -304,9 +304,9 @@ TDMShutdown::TDMShutdown( int _uid, TQWidget *_parent ) TQGridLayout *grid = new TQGridLayout( schedGroup, 0, 0, KDmh, KDsh ); grid->addRowSpacing( 0, schedGroup->fontMetrics().height() - 5 ); - grid->addWidget( lab1, 1, 0, Qt::AlignRight ); + grid->addWidget( lab1, 1, 0, TQt::AlignRight ); grid->addWidget( le_start, 1, 1 ); - grid->addWidget( lab2, 2, 0, Qt::AlignRight ); + grid->addWidget( lab2, 2, 0, TQt::AlignRight ); grid->addWidget( le_timeout, 2, 1 ); grid->addMultiCellWidget( cb_force, 3,3, 0,1 ); @@ -494,7 +494,7 @@ TDMSlimShutdown::TDMSlimShutdown( TQWidget *_parent ) // first line of buttons hbuttonbox = new TQHBoxLayout( vbox, 8 * KDialog::spacingHint() ); - hbuttonbox->setAlignment( Qt::AlignHCenter ); + hbuttonbox->setAlignment( TQt::AlignHCenter ); // Reboot FlatButton* btnReboot = new FlatButton( lfrm ); @@ -538,7 +538,7 @@ TDMSlimShutdown::TDMSlimShutdown( TQWidget *_parent ) // cancel buttonbox TQHBoxLayout* hbuttonbox2 = new TQHBoxLayout( vbox, 8 * KDialog::spacingHint() ); - hbuttonbox2->setAlignment( Qt::AlignRight ); + hbuttonbox2->setAlignment( TQt::AlignRight ); // Back to tdm KSMPushButton* btnBack = new KSMPushButton( KStdGuiItem::cancel(), lfrm ); @@ -885,13 +885,13 @@ TDMCancelShutdown::TDMCancelShutdown( int how, int start, int timeout, strt = i18n("now"); else { qdt.setTime_t( start ); - strt = qdt.toString( Qt::LocalDate ); + strt = qdt.toString( TQt::LocalDate ); } if (timeout == TO_INF) end = i18n("infinite"); else { qdt.setTime_t( timeout ); - end = qdt.toString( Qt::LocalDate ); + end = qdt.toString( TQt::LocalDate ); } TQString trg = i18n("Owner: %1" diff --git a/tdm/kfrontend/themer/tdmitem.cpp b/tdm/kfrontend/themer/tdmitem.cpp index 969833511..361f73e06 100644 --- a/tdm/kfrontend/themer/tdmitem.cpp +++ b/tdm/kfrontend/themer/tdmitem.cpp @@ -379,7 +379,7 @@ KdmItem::paint( TQPainter *p, const TQRect &rect ) #ifdef DRAW_OUTLINE // Draw bounding rect for this item - p->setPen( Qt::white ); + p->setPen( TQt::white ); p->drawRect( area ); #endif |