Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 46c271a0c9)
r14.1.x
Michele Calgaro 1 year ago
parent 9aaf7457f3
commit 07a7866b32
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -157,7 +157,7 @@ CharTable::CharTable(TQWidget* parent, const char* name)
_cWidth(cell_width), _cHeight(cell_height)
{
setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken);
setFocusPolicy(TQ_NoFocus);
setFocusPolicy(TQWidget::NoFocus);
setBackgroundMode(TQWidget::NoBackground);
}

@ -48,7 +48,7 @@ KCalcDisplay::KCalcDisplay(TQWidget *parent, const char *name)
setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken);
setAlignment(AlignRight | AlignVCenter);
setFocus();
setFocusPolicy(TQ_StrongFocus);
setFocusPolicy(TQWidget::StrongFocus);
setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed, false);
connect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDisplaySelected()));

@ -374,7 +374,7 @@ void KgpgKeyInfo::slotSetPhoto(const TQPixmap &pix)
// kdDebug(2100) << k_funcinfo << endl;
TQImage dup=pix.convertToImage();
TQPixmap dup2;
dup2.convertFromImage(dup.scale(prop->pLPhoto->width(),prop->pLPhoto->height(),TQ_ScaleMin));
dup2.convertFromImage(dup.scale(prop->pLPhoto->width(),prop->pLPhoto->height(),TQImage::ScaleMin));
prop->pLPhoto->setPixmap(dup2);
}

@ -2641,9 +2641,9 @@ TQPixmap KeyView::slotGetPhoto(TQString photoId,bool mini)
TQImage dup=pixmap.convertToImage();
TQPixmap dup2;
if (!mini)
dup2.convertFromImage(dup.scale(previewSize+5,previewSize,TQ_ScaleMin));
dup2.convertFromImage(dup.scale(previewSize+5,previewSize,TQImage::ScaleMin));
else
dup2.convertFromImage(dup.scale(22,22,TQ_ScaleMin));
dup2.convertFromImage(dup.scale(22,22,TQImage::ScaleMin));
phototmp->unlink();
delete phototmp;
return dup2;
@ -2721,7 +2721,7 @@ void KeyView::expandKey(TQListViewItem *item)
pixmap.load(kgpgphototmp->name());
TQImage dup=pixmap.convertToImage();
TQPixmap dup2;
dup2.convertFromImage(dup.scale(previewSize+5,previewSize,TQ_ScaleMin));
dup2.convertFromImage(dup.scale(previewSize+5,previewSize,TQImage::ScaleMin));
itemuid->setPixmap(0,dup2);
delete kgpgphototmp;
//itemuid->setPixmap(0,keyPhotoId);

@ -27,7 +27,7 @@
CDigitLabel::CDigitLabel( TQWidget *parent, uint digit, const char *name )
:TQLabel(parent, name), mDigit( digit ), mDotPosition( 0 )
{
setFocusPolicy( TQ_StrongFocus );
setFocusPolicy( TQWidget::StrongFocus );
initialize();
}

@ -365,7 +365,7 @@ CFindNavigatorDialog::CFindNavigatorDialog( TQWidget *parent, const char *name,
mKey = new TQLineEdit( plainPage() );
mKey->setMinimumWidth( fontMetrics().width("M") * 20 );
mKey->setFocusPolicy( TQ_NoFocus );
mKey->setFocusPolicy( TQWidget::NoFocus );
hbox->addWidget( mKey );
topLayout->addSpacing( spacingHint() ); // A little bit extra space

@ -217,7 +217,7 @@ CHexViewWidget::CHexViewWidget( TQWidget *parent, const char *name,
setFrameStyle( TQFrame::WinPanel|TQFrame::Sunken );
setWFlags( WResizeNoErase );
setFocusPolicy( TQ_StrongFocus );
setFocusPolicy( TQWidget::StrongFocus );
mHexBuffer = hexBuffer;
mHexBuffer->cursorReset();

@ -133,7 +133,7 @@ KHexEdit::KHexEdit( KDataBuffer *Buffer, TQWidget *Parent, const char *Name, WFl
// get the full control
viewport()->setFocusProxy( this );
viewport()->setFocusPolicy( TQ_WheelFocus );
viewport()->setFocusPolicy( TQWidget::WheelFocus );
viewport()->installEventFilter( this );
installEventFilter( this );

@ -90,7 +90,7 @@ KJotsMain::KJotsMain(const char* name)
textStack = new TQWidgetStack(splitter);
me_text = new KJotsEdit(textStack, "me_text");
me_text->setFocusPolicy(TQ_StrongFocus);
me_text->setFocusPolicy(TQWidget::StrongFocus);
me_text->setEnabled(false);
textStack->addWidget(me_text);
connect(me_text, TQT_SIGNAL(findSuccessful()), this, TQT_SLOT(slotFindSuccessful()));

@ -41,7 +41,7 @@ DefaultSkin::DefaultSkin() {
connect(&_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()));
_widget = new DefaultWidget(0, "Screen Indicator", TQt::WX11BypassWM);
_widget->setFocusPolicy(TQ_NoFocus);
_widget->setFocusPolicy(TQWidget::NoFocus);
KWin::setOnAllDesktops(_widget->winId(), true);
KWin::setState( _widget->winId(), NET::StaysOnTop | NET::Sticky

@ -314,7 +314,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
this->setMouseTracking(true);
setFocusPolicy(TQ_StrongFocus);
setFocusPolicy(TQWidget::StrongFocus);
}
karamba::~karamba()

Loading…
Cancel
Save