diff options
author | Michele Calgaro <[email protected]> | 2023-11-06 11:29:21 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-07 09:55:39 +0900 |
commit | 65a06ba9047c5b3bbe201d2e453f30868bd3fad3 (patch) | |
tree | 4ad717fdb26890dbcd584eec0e6d4e5019689d58 | |
parent | 52bc9d0886f26f484d140b3244136f43c8ae07ea (diff) | |
download | tdeadmin-65a06ba9047c5b3bbe201d2e453f30868bd3fad3.tar.gz tdeadmin-65a06ba9047c5b3bbe201d2e453f30868bd3fad3.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r-- | kdat/KDatMainWindow.cpp | 4 | ||||
-rw-r--r-- | kdat/ktreeview.cpp | 10 | ||||
-rw-r--r-- | knetworkconf/knetworkconf/kadddevicecontainer.cpp | 2 | ||||
-rw-r--r-- | kpackage/kplview.cpp | 2 | ||||
-rw-r--r-- | kpackage/managementWidget.cpp | 2 | ||||
-rw-r--r-- | kpackage/options.cpp | 8 | ||||
-rw-r--r-- | kpackage/updateLoc.cpp | 8 | ||||
-rw-r--r-- | ksysv/OldView.cpp | 2 | ||||
-rw-r--r-- | ksysv/Properties.cpp | 2 | ||||
-rw-r--r-- | ksysv/kscroller.cpp | 4 | ||||
-rw-r--r-- | ksysv/ksvdraglist.cpp | 2 | ||||
-rw-r--r-- | kuser/pwddlg.cpp | 2 |
12 files changed, 24 insertions, 24 deletions
diff --git a/kdat/KDatMainWindow.cpp b/kdat/KDatMainWindow.cpp index 86a4fef..e89a83f 100644 --- a/kdat/KDatMainWindow.cpp +++ b/kdat/KDatMainWindow.cpp @@ -173,9 +173,9 @@ KDatMainWindow::KDatMainWindow() _statusBar->insertItem( i18n( "Ready." ), 0 ); #ifdef KDAT_HORIZONTAL_LAYOUT /* 2002-01-20 LEW */ - _panner = new TQSplitter( Qt::Horizontal, this, "panner"); + _panner = new TQSplitter( TQt::Horizontal, this, "panner"); #else - _panner = new TQSplitter( Qt::Vertical, this, "panner"); + _panner = new TQSplitter( TQt::Vertical, this, "panner"); #endif /* KDAT_HORIZONTAL_LAYOUT */ // Create info viewers. diff --git a/kdat/ktreeview.cpp b/kdat/ktreeview.cpp index 24712d4..f3a98ce 100644 --- a/kdat/ktreeview.cpp +++ b/kdat/ktreeview.cpp @@ -350,7 +350,7 @@ void KTreeViewItem::paintHighlight(TQPainter* p, int indent, const TQColorGroup& textRect.setCoords(l - 1, t - 1, r + 1, b + 1); p->setPen(TQPen(TQt::yellow, 0, TQt::DotLine)); p->setBackgroundColor(fc); - p->setBackgroundMode(Qt::OpaqueMode); + p->setBackgroundMode(TQt::OpaqueMode); p->drawRect(textRect); textRect.setCoords(l - 2, t - 2, r + 2, b + 2); p->setPen(fc); @@ -1701,7 +1701,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e) { // first: check which button was pressed - if (e->button() == Qt::MidButton) + if (e->button() == TQt::MidButton) { // RB: the MMB is hardcoded to the "rubberband" scroll mode if (!rubberband_mode) { @@ -1709,7 +1709,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e) } return; } - else if ( ( rubberband_mode ) && ( e->button() != Qt::RightButton ) ) + else if ( ( rubberband_mode ) && ( e->button() != TQt::RightButton ) ) { // another button was pressed while rubberbanding, stop the move. // RB: if we allow other buttons while rubberbanding the tree can expand @@ -1751,7 +1751,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e) // hit item (to show info on the file/dir label clicked) else if (item->boundingRect(indentation(item)).contains(cellCoord)) { setCurrentItem(itemClicked); // highlight item - if ( e->button() == Qt::RightButton ) { + if ( e->button() == TQt::RightButton ) { emit popupMenu( itemClicked, mapToGlobal( TQPoint( e->pos().x(), e->pos().y() ) ) ); } } @@ -1761,7 +1761,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e) void KTreeView::mouseReleaseEvent(TQMouseEvent *e) { /* if it's the MMB end rubberbanding */ - if (rubberband_mode && e->button()==Qt::MidButton) + if (rubberband_mode && e->button()==TQt::MidButton) { end_rubberband(); } diff --git a/knetworkconf/knetworkconf/kadddevicecontainer.cpp b/knetworkconf/knetworkconf/kadddevicecontainer.cpp index 51f66e4..529fb6f 100644 --- a/knetworkconf/knetworkconf/kadddevicecontainer.cpp +++ b/knetworkconf/knetworkconf/kadddevicecontainer.cpp @@ -25,7 +25,7 @@ KAddDeviceContainer::KAddDeviceContainer(TQWidget *parent, const char *name) //Setup extension dialog setExtension( new KAddDeviceDlgExtension( this ) ); - setOrientation(Qt::Vertical ); + setOrientation(TQt::Vertical ); //Create dialog that contains the KAddDeviceDlg and KAddDeviceWifiExt (when //configuring a wireless interface) widgets diff --git a/kpackage/kplview.cpp b/kpackage/kplview.cpp index 3c38fa6..27bfe72 100644 --- a/kpackage/kplview.cpp +++ b/kpackage/kplview.cpp @@ -97,7 +97,7 @@ void KpTreeList::contentsMousePressEvent ( TQMouseEvent * e ) { bool markUpdate = false; - if (e->button() == Qt::LeftButton) { + if (e->button() == TQt::LeftButton) { if (inMark(e->x())) { TQPoint vp = contentsToViewport(e->pos()); KpTreeListItem *i = ( KpTreeListItem *)itemAt( vp ); diff --git a/kpackage/managementWidget.cpp b/kpackage/managementWidget.cpp index 649d24e..55293b5 100644 --- a/kpackage/managementWidget.cpp +++ b/kpackage/managementWidget.cpp @@ -114,7 +114,7 @@ void managementWidget::setupWidgets() TQTab t; top = new TQBoxLayout(this,TQBoxLayout::TopToBottom); - vPan = new TQSplitter(Qt::Horizontal, this); + vPan = new TQSplitter(TQt::Horizontal, this); top->addWidget(vPan); // the left panel diff --git a/kpackage/options.cpp b/kpackage/options.cpp index 3edf36f..3f86743 100644 --- a/kpackage/options.cpp +++ b/kpackage/options.cpp @@ -72,9 +72,9 @@ Options::Options(TQWidget *parent) { TQVBox *page = addVBoxPage(i18n("&Types")); - framet = new TQGroupBox(1,Qt::Horizontal,i18n("Handle Package Type"), page); + framet = new TQGroupBox(1,TQt::Horizontal,i18n("Handle Package Type"), page); - hh = new TQGroupBox(1,Qt::Horizontal,i18n("Remote Host"),framet); + hh = new TQGroupBox(1,TQt::Horizontal,i18n("Remote Host"),framet); huse = new TQCheckBox(i18n("Use remote host (Debian APT only):"),hh); connect(huse, TQT_SIGNAL(clicked()), this, TQT_SLOT(useRemote())); hosts = new KComboBox( true, hh, "combo" ); @@ -99,7 +99,7 @@ Options::Options(TQWidget *parent) .arg(kpinterface[i]->name) .arg(kpinterface[i]->errExe); } - packageBox[i] = new TQGroupBox(2,Qt::Horizontal,msgStr, framet, "box"); + packageBox[i] = new TQGroupBox(2,TQt::Horizontal,msgStr, framet, "box"); packageHandle[i] = new TQCheckBox(i18n("Enable"), packageBox[i]); connect(packageHandle[i], TQT_SIGNAL(clicked()), this, TQT_SLOT(scanLocates())); locate[i] = new TQPushButton(i18n("Location of Packages"),packageBox[i]); @@ -145,7 +145,7 @@ Options::Options(TQWidget *parent) pcache[2] = new TQRadioButton(i18n("Never"),bp); vp->addWidget(pcache[2]); - TQGroupBox* cd = new TQGroupBox (1, Qt::Horizontal, i18n("Cache Folder"), page) ; + TQGroupBox* cd = new TQGroupBox (1, TQt::Horizontal, i18n("Cache Folder"), page) ; cd->setSizePolicy (TQSizePolicy::Expanding, TQSizePolicy::Fixed) ; cachedir = new KURLRequester("", cd, "cachedir"); diff --git a/kpackage/updateLoc.cpp b/kpackage/updateLoc.cpp index 4bee494..5f125db 100644 --- a/kpackage/updateLoc.cpp +++ b/kpackage/updateLoc.cpp @@ -271,7 +271,7 @@ void updateLoc::doBase(const TQString & bmsg) base = 0; if (haveBase) { fbase = new TQGroupBox(bmsg, this); - fbase->setColumnLayout(0, Qt::Vertical ); + fbase->setColumnLayout(0, TQt::Vertical ); fbase->layout()->setSpacing( KDialog::spacingHint() ); fbase->layout()->setMargin( KDialog::marginHint() ); vbase = new TQVBoxLayout(fbase->layout()); @@ -297,7 +297,7 @@ aUpdateLoc::aUpdateLoc(TQWidget *p, int panelNumber, pkgInterface *inter, const ap[0] = 0; - TQGroupBox *floc = new TQGroupBox(1,Qt::Vertical, label, this); + TQGroupBox *floc = new TQGroupBox(1,TQt::Vertical, label, this); vf->addWidget(floc,1); TQScrollView* sv = new TQScrollView(floc); sv->setHScrollBarMode(TQScrollView::AlwaysOff); @@ -409,7 +409,7 @@ pdUpdateLoc::pdUpdateLoc(TQWidget *p, int panelNumber, pkgInterface *inter, cons doBase(bmsg); TQGroupBox *floc = new TQGroupBox(lmsg, this); - floc->setColumnLayout(0, Qt::Vertical ); + floc->setColumnLayout(0, TQt::Vertical ); floc->layout()->setSpacing( KDialog::spacingHint() ); floc->layout()->setMargin( KDialog::marginHint() ); vf->addWidget(floc,1); @@ -546,7 +546,7 @@ cUpdateLoc::cUpdateLoc(TQWidget *p, int panelNumber, pkgInterface *inter, const for (int i = 0; i < numLines; i++) { TQGroupBox *floc = new TQGroupBox(*kcIt, this); - floc->setColumnLayout(0, Qt::Vertical ); + floc->setColumnLayout(0, TQt::Vertical ); floc->layout()->setSpacing( KDialog::spacingHint() ); floc->layout()->setMargin( KDialog::marginHint() ); vf->addWidget(floc,1); diff --git a/ksysv/OldView.cpp b/ksysv/OldView.cpp index 37dd2d4..e24b422 100644 --- a/ksysv/OldView.cpp +++ b/ksysv/OldView.cpp @@ -73,7 +73,7 @@ #include "TopWidget.h" KSVContent::KSVContent (TDEPopupMenu* openWithMenu, KSVTopLevel* parent, const char* name) - : TQSplitter (Qt::Vertical, parent, name), + : TQSplitter (TQt::Vertical, parent, name), startRL (new KSVDragList*[ksv::runlevelNumber]), stopRL (new KSVDragList*[ksv::runlevelNumber]), conf(KSVConfig::self()), diff --git a/ksysv/Properties.cpp b/ksysv/Properties.cpp index 6b7b378..96e0ebf 100644 --- a/ksysv/Properties.cpp +++ b/ksysv/Properties.cpp @@ -54,7 +54,7 @@ KSVServicesPage::KSVServicesPage (KSVData& data, KPropertiesDialog* props) ksv::getServiceDescription (data.filename(), text); mDesc = new TQTextView (TQString("<p>%1</p>").arg (text), TQString(), desc); - TQButtonGroup* buttons = new TQButtonGroup (1,Qt::Vertical, i18n ("Actions"), mPage); + TQButtonGroup* buttons = new TQButtonGroup (1,TQt::Vertical, i18n ("Actions"), mPage); TQPushButton* b = new TQPushButton (i18n ("&Edit"), buttons); connect (b, TQT_SIGNAL (clicked()), props, TQT_SLOT (doEdit())); diff --git a/ksysv/kscroller.cpp b/ksysv/kscroller.cpp index 0c18b25..87d8b71 100644 --- a/ksysv/kscroller.cpp +++ b/ksysv/kscroller.cpp @@ -26,8 +26,8 @@ public: KScroller::KScroller (TQWidget* parent, const char* name) : TQFrame (parent, name), d (new KScrollerPrivate()), - mVertical (new TQScrollBar (Qt::Vertical, this)), - mHorizontal (new TQScrollBar (Qt::Horizontal, this)), + mVertical (new TQScrollBar (TQt::Vertical, this)), + mHorizontal (new TQScrollBar (TQt::Horizontal, this)), mCornerWidget (new TQWidget (this)), mContent (0L), mVerticalOld (0), diff --git a/ksysv/ksvdraglist.cpp b/ksysv/ksvdraglist.cpp index 6b3c41f..e5798ae 100644 --- a/ksysv/ksvdraglist.cpp +++ b/ksysv/ksvdraglist.cpp @@ -229,7 +229,7 @@ TQPixmap KSVItem::paintDragIcon (const TQFont& font, const TQColorGroup&) const label()); TQBrush brush (color0); - brush.setStyle(Qt::Dense5Pattern); + brush.setStyle(TQt::Dense5Pattern); p.fillRect (0, 0, width, height, brush); p.end(); diff --git a/kuser/pwddlg.cpp b/kuser/pwddlg.cpp index 0989afc..2fda099 100644 --- a/kuser/pwddlg.cpp +++ b/kuser/pwddlg.cpp @@ -28,7 +28,7 @@ pwddlg::pwddlg( TQWidget* parent, const char* name ) : KDialogBase(parent, name, true, i18n("Enter Password"), Ok | Cancel, Ok, true) { - TQGrid *page = makeGridMainWidget(2, Qt::Horizontal); + TQGrid *page = makeGridMainWidget(2, TQt::Horizontal); TQLabel* lb1 = new TQLabel(page, "lb1"); lb1->setText(i18n("Password:")); |