Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 65a06ba904)
r14.1.x
Michele Calgaro 1 year ago
parent 7dede5a422
commit 16c7639b7a
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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.

@ -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();
}

@ -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

@ -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 );

@ -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

@ -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");

@ -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);

@ -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()),

@ -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()));

@ -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),

@ -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();

@ -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:"));

Loading…
Cancel
Save