Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/57/head
Michele Calgaro 8 months ago
parent 42857567f9
commit d377051849
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -125,7 +125,7 @@ MatchView::MatchView(TQWidget *parent, const char *name)
boxLayout->addSpacing(1);
w_list = new TQListView(this);
w_list->setFocusPolicy(TQ_StrongFocus);
w_list->setFocusPolicy(TQWidget::StrongFocus);
w_list->header()->hide();
w_list->addColumn("foo");
w_list->setColumnWidthMode(0,TQListView::Maximum);

@ -140,7 +140,7 @@ QueryView::QueryView(TQWidget *_parent)
part->setJScriptEnabled(false);
part->setJavaEnabled(false);
part->setURLCursor(KCursor::handCursor());
setFocusPolicy(TQ_NoFocus);
setFocusPolicy(TQWidget::NoFocus);
connect(part, TQT_SIGNAL(completed()), TQT_SLOT(partCompleted()));
connect(part, TQT_SIGNAL(middleButtonClicked()), TQT_SLOT(middleButtonClicked()));
rightBtnMenu = new TDEPopupMenu(this);

@ -64,7 +64,7 @@ void NewsIconMgr::getIcon(const KURL &url)
TQPixmap icon(url.encodedPathAndQuery());
if (!icon.isNull()) {
if (icon.size() != TQSize(16, 16)) {
if (!icon.convertFromImage(icon.convertToImage().smoothScale(16, 16, TQ_ScaleMin))) {
if (!icon.convertFromImage(icon.convertToImage().smoothScale(16, 16, TQImage::ScaleMin))) {
emit gotIcon(url, m_stdIcon);
return;
}

@ -57,7 +57,7 @@ KNewsTicker::KNewsTicker(const TQString &cfgFile, Type t, int actions, TQWidget
m_arrowButton = new KArrowButton(this);
TQToolTip::add(m_arrowButton, i18n("Show menu"));
connect(m_arrowButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotArrowButtonPressed()));
m_arrowButton->setFocusPolicy(TQ_NoFocus);
m_arrowButton->setFocusPolicy(TQWidget::NoFocus);
setupArrowButton();
layout->addWidget(m_arrowButton);

@ -231,7 +231,7 @@ ChatMessagePart::ChatMessagePart( Kopete::ChatSession *mgr, TQWidget *parent, co
// Write the template to TDEHTMLPart
writeTemplate();
view()->setFocusPolicy( TQ_NoFocus );
view()->setFocusPolicy( TQWidget::NoFocus );
d->tt=new ToolTip( this );

@ -241,7 +241,7 @@ AppearanceConfig::AppearanceConfig(TQWidget *parent, const char* /*name*/, const
TDEHTMLView *htmlWidget = d->preview->view();
htmlWidget->setMarginWidth(4);
htmlWidget->setMarginHeight(4);
htmlWidget->setFocusPolicy(TQ_NoFocus);
htmlWidget->setFocusPolicy(TQWidget::NoFocus);
htmlWidget->setSizePolicy(
TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
l->addWidget(htmlWidget);

@ -383,7 +383,7 @@ void KopeteIdentityConfig::slotEnableAndDisableWidgets()
}
if(!photo.isNull())
d->m_view->labelPhoto->setPixmap(TQPixmap(photo.smoothScale(64, 92, TQ_ScaleMin)));
d->m_view->labelPhoto->setPixmap(TQPixmap(photo.smoothScale(64, 92, TQImage::ScaleMin)));
else
d->m_view->labelPhoto->setPixmap(TQPixmap());
@ -528,7 +528,7 @@ void KopeteIdentityConfig::slotChangePhoto(const TQString &photoUrl)
if(photo.width() > 96 || photo.height() > 96)
{
// Scale and crop the picture.
photo = photo.smoothScale( 96, 96, TQ_ScaleMin );
photo = photo.smoothScale( 96, 96, TQImage::ScaleMin );
// crop image if not square
if(photo.width() < photo.height())
photo = photo.copy((photo.width()-photo.height())/2, 0, 96, 96);
@ -539,7 +539,7 @@ void KopeteIdentityConfig::slotChangePhoto(const TQString &photoUrl)
else if (photo.width() < 32 || photo.height() < 32)
{
// Scale and crop the picture.
photo = photo.smoothScale( 32, 32, TQ_ScaleMin );
photo = photo.smoothScale( 32, 32, TQImage::ScaleMin );
// crop image if not square
if(photo.width() < photo.height())
photo = photo.copy((photo.width()-photo.height())/2, 0, 32, 32);

@ -372,7 +372,7 @@ void KopeteMetaLVIProps::slotEnableAndDisableWidgets()
break;
}
if( !photo.isNull() )
mainWidget->photoLabel->setPixmap(TQPixmap(photo.smoothScale( 64, 92, TQ_ScaleMin )));
mainWidget->photoLabel->setPixmap(TQPixmap(photo.smoothScale( 64, 92, TQImage::ScaleMin )));
else
mainWidget->photoLabel->setPixmap( TQPixmap() );
}

@ -521,7 +521,7 @@ void KopeteMetaContactLVI::slotPhotoChanged()
{
int photoSize = d->iconSize;
photoImg = photoImg.smoothScale( photoSize, photoSize, TQ_ScaleMin );
photoImg = photoImg.smoothScale( photoSize, photoSize, TQImage::ScaleMin );
KImageEffect *effect = 0L;
switch ( m_metaContact->status() )

@ -100,7 +100,7 @@ void KopeteEditGlobalIdentityWidget::setIconSize(int size)
d->labelPicture->setMinimumSize(TQSize(d->iconSize, d->iconSize));
d->labelPicture->setMaximumSize(TQSize(d->iconSize, d->iconSize));
if( !d->myself->photo().isNull() )
d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQ_ScaleMin)));
d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQImage::ScaleMin)));
}
void KopeteEditGlobalIdentityWidget::iconSizeChanged()
@ -115,7 +115,7 @@ void KopeteEditGlobalIdentityWidget::iconSizeChanged()
d->labelPicture->setMinimumSize(TQSize(d->iconSize, d->iconSize));
d->labelPicture->setMaximumSize(TQSize(d->iconSize, d->iconSize));
if( !d->myself->photo().isNull() )
d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQ_ScaleMin)));
d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQImage::ScaleMin)));
}
}
@ -149,7 +149,7 @@ void KopeteEditGlobalIdentityWidget::updateGUI(const TQString &key, const TQVari
// Update the picture and the tooltip
if( !d->myself->photo().isNull() )
{
d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQ_ScaleMin)));
d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQImage::ScaleMin)));
TQToolTip::add(d->labelPicture, "<qt><img src=\""+ value.toString() +"\"></qt>");
}
}
@ -183,7 +183,7 @@ void KopeteEditGlobalIdentityWidget::photoClicked()
if(photo.width() > 96 || photo.height() > 96)
{
// Scale and crop the picture.
photo = photo.smoothScale( 96, 96, TQ_ScaleMin );
photo = photo.smoothScale( 96, 96, TQImage::ScaleMin );
// crop image if not square
if(photo.width() < photo.height())
photo = photo.copy((photo.width()-photo.height())/2, 0, 96, 96);
@ -194,7 +194,7 @@ void KopeteEditGlobalIdentityWidget::photoClicked()
else if (photo.width() < 32 || photo.height() < 32)
{
// Scale and crop the picture.
photo = photo.smoothScale( 32, 32, TQ_ScaleMin );
photo = photo.smoothScale( 32, 32, TQImage::ScaleMin );
// crop image if not square
if(photo.width() < photo.height())
photo = photo.copy((photo.width()-photo.height())/2, 0, 32, 32);

@ -984,12 +984,12 @@ void KopeteWindow::slotBuildStatusMessageMenu()
m_newMessageEdit->setText(Kopete::Away::message());
newMessageBox->setFocusProxy( m_newMessageEdit );
newMessageBox->setFocusPolicy( TQ_ClickFocus );
newMessageBox->setFocusPolicy( TQWidget::ClickFocus );
/* newMessageLabel->setFocusProxy( newMessageEdit );
newMessageLabel->setBuddy( newMessageEdit );
newMessageLabel->setFocusPolicy( TQ_ClickFocus );*/
newMessageLabel->setFocusPolicy( TQWidget::ClickFocus );*/
newMessagePix->setFocusProxy( m_newMessageEdit );
newMessagePix->setFocusPolicy( TQ_ClickFocus );
newMessagePix->setFocusPolicy( TQWidget::ClickFocus );
connect( m_newMessageEdit, TQT_SIGNAL( returnPressed() ), TQT_SLOT( slotNewStatusMessageEntered() ) );
m_globalStatusMessageMenu->insertItem( newMessageBox );

@ -426,7 +426,7 @@ void KPixmapRegionSelectorWidget::setMaximumWidgetSize(int width, int height)
{
/* We have to resize the pixmap to get it complete on the screen */
TQImage image=m_originalPixmap.convertToImage();
m_originalPixmap.convertFromImage( image.smoothScale( width, height, TQ_ScaleMin ) );
m_originalPixmap.convertFromImage( image.smoothScale( width, height, TQImage::ScaleMin ) );
double oldZoomFactor = m_zoomFactor;
m_zoomFactor=m_originalPixmap.width()/(double)m_unzoomedPixmap.width();

@ -690,7 +690,7 @@ TQImage MetaContact::photo() const
if( picture().image().width() > 96 && picture().image().height() > 96 )
{
kdDebug( 14010 ) << k_funcinfo << "Resizing image from " << picture().image().width() << " x " << picture().image().height() << endl;
return picture().image().smoothScale(96,96,TQ_ScaleMin);
return picture().image().smoothScale(96,96,TQImage::ScaleMin);
}
else
return picture().image();

@ -790,7 +790,7 @@ void ImageComponent::paint( TQPainter *painter, const TQColorGroup & )
painter->drawPixmap( rc & ourRc, d->image );
}
void ImageComponent::scale( int w, int h, TQ_ScaleMode mode )
void ImageComponent::scale( int w, int h, TQImage::ScaleMode mode )
{
TQImage im = d->image.convertToImage();
setPixmap( TQPixmap( im.smoothScale( w, h, mode ) ) );
@ -1052,7 +1052,7 @@ void DisplayNameComponent::redraw()
case Kopete::Emoticons::Image:
ic = new ImageComponent( this );
ic->setPixmap( TQPixmap( (*token).picPath ) );
ic->scale( INT_MAX, fontHeight, TQ_ScaleMin );
ic->scale( INT_MAX, fontHeight, TQImage::ScaleMin );
break;
default:
kdDebug( 14010 ) << k_funcinfo << "This should have not happened!" << endl;

@ -344,7 +344,7 @@ public:
virtual void paint( TQPainter *painter, const TQColorGroup &cg );
virtual void scale( int w, int h, TQ_ScaleMode );
virtual void scale( int w, int h, TQImage::ScaleMode );
static int RTTI;
virtual int rtti() const { return RTTI; }
protected:

@ -112,7 +112,7 @@ void MetaContactSelectorWidgetLVI::slotPhotoChanged()
{
int photoSize = d->photoSize;
photoImg = photoImg.smoothScale( photoSize, photoSize, TQ_ScaleMin ) ;
photoImg = photoImg.smoothScale( photoSize, photoSize, TQImage::ScaleMin ) ;
// draw a 1 pixel black border
photoPixmap = photoImg;

@ -147,7 +147,7 @@ HistoryDialog::HistoryDialog(Kopete::MetaContact *mc, TQWidget* parent,
mHtmlView = mHtmlPart->view();
mHtmlView->setMarginWidth(4);
mHtmlView->setMarginHeight(4);
mHtmlView->setFocusPolicy(TQ_NoFocus);
mHtmlView->setFocusPolicy(TQWidget::NoFocus);
mHtmlView->setSizePolicy(
TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
l->addWidget(mHtmlView);

@ -732,7 +732,7 @@ void JabberContact::setPhoto( const TQString &photoPath )
TQString newLocation( locateLocal( "appdata", "jabberphotos/"+ KURL(photoPath).fileName().lower() ) );
// Scale and crop the picture.
contactPhoto = contactPhoto.smoothScale( 96, 96, TQ_ScaleMin );
contactPhoto = contactPhoto.smoothScale( 96, 96, TQImage::ScaleMin );
// crop image if not square
if(contactPhoto.width() < contactPhoto.height())
contactPhoto = contactPhoto.copy((contactPhoto.width()-contactPhoto.height())/2, 0, 96, 96);
@ -751,7 +751,7 @@ void JabberContact::setPhoto( const TQString &photoPath )
TQString newLocation( locateLocal( "appdata", "jabberphotos/"+ KURL(photoPath).fileName().lower() ) );
// Scale and crop the picture.
contactPhoto = contactPhoto.smoothScale( 32, 32, TQ_ScaleMin );
contactPhoto = contactPhoto.smoothScale( 32, 32, TQImage::ScaleMin );
// crop image if not square
if(contactPhoto.width() < contactPhoto.height())
contactPhoto = contactPhoto.copy((contactPhoto.width()-contactPhoto.height())/2, 0, 32, 32);

@ -493,7 +493,7 @@ void dlgJabberVCard::slotSelectPhoto()
if(img.width() > 96 || img.height() > 96)
{
// Scale and crop the picture.
img = img.smoothScale( 96, 96, TQ_ScaleMin );
img = img.smoothScale( 96, 96, TQImage::ScaleMin );
// crop image if not square
if(img.width() < img.height())
img = img.copy((img.width()-img.height())/2, 0, 96, 96);
@ -504,7 +504,7 @@ void dlgJabberVCard::slotSelectPhoto()
else if (img.width() < 32 || img.height() < 32)
{
// Scale and crop the picture.
img = img.smoothScale( 32, 32, TQ_ScaleMin );
img = img.smoothScale( 32, 32, TQImage::ScaleMin );
// crop image if not square
if(img.width() < img.height())
img = img.copy((img.width()-img.height())/2, 0, 32, 32);

@ -160,7 +160,7 @@ bool MSNProtocol::validContactId(const TQString& userid)
TQImage MSNProtocol::scalePicture(const TQImage &picture)
{
TQImage img(picture);
img = img.smoothScale( 96, 96, TQ_ScaleMin );
img = img.smoothScale( 96, 96, TQImage::ScaleMin );
// crop image if not square
if(img.width() < img.height())
{

@ -475,7 +475,7 @@ void OscarAccount::setBuddyIcon( KURL url )
const TQSize size = ( d->engine->isIcq() ) ? TQSize( 52, 64 ) : TQSize( 48, 48 );
image = image.smoothScale( size, TQ_ScaleMax );
image = image.smoothScale( size, TQImage::ScaleMax );
if( image.width() > size.width())
image = image.copy( ( image.width() - size.width() ) / 2, 0, size.width(), image.height() );

@ -1791,7 +1791,7 @@ void YahooAccount::setBuddyIcon( const KURL &url )
KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Sorry, i18n( "<qt>The selected buddy icon could not be opened. <br />Please set a new buddy icon.</qt>" ), i18n( "Yahoo Plugin" ) );
return;
}
image = image.smoothScale( 96, 96, TQ_ScaleMin );
image = image.smoothScale( 96, 96, TQImage::ScaleMin );
if(image.width() < image.height())
{
image = image.copy((image.width()-image.height())/2, 0, 96, 96);

@ -115,7 +115,7 @@ AccountWidget::AccountWidget( TQWidget *parent, const char *name )
l121->addWidget(costlabel);
costedit = new TQLineEdit(parent);
costedit->setFocusPolicy(TQ_NoFocus);
costedit->setFocusPolicy(TQWidget::NoFocus);
costedit->setFixedHeight(costedit->sizeHint().height());
costedit->setEnabled(FALSE);
l121->addWidget(costedit);
@ -134,7 +134,7 @@ AccountWidget::AccountWidget( TQWidget *parent, const char *name )
l121->addWidget(vollabel);
voledit = new TQLineEdit(parent,"voledit");
voledit->setFocusPolicy(TQ_NoFocus);
voledit->setFocusPolicy(TQWidget::NoFocus);
voledit->setFixedHeight(voledit->sizeHint().height());
voledit->setEnabled(FALSE);
l121->addWidget(voledit);

@ -89,13 +89,13 @@ PPPStatsDlg::PPPStatsDlg(TQWidget *parent, const char *name, TQWidget *,
ip_address_label1->setText(i18n("Local Addr:"));
ip_address_label2 = new IPLineEdit(this);
ip_address_label2->setFocusPolicy(TQ_NoFocus);
ip_address_label2->setFocusPolicy(TQWidget::NoFocus);
ip_address_label3 = new TQLabel(this);
ip_address_label3->setText(i18n("Remote Addr:"));
ip_address_label4 = new IPLineEdit(this);
ip_address_label4->setFocusPolicy(TQ_NoFocus);
ip_address_label4->setFocusPolicy(TQWidget::NoFocus);
l1112->addWidget(ip_address_label1, 0, 0);
l1112->addWidget(ip_address_label2, 0, 1);

@ -49,7 +49,7 @@ PWEntry::PWEntry( TQWidget *parent, const char *name )
frame = new TQGroupBox(name, this );
setFocusPolicy( TQ_StrongFocus );
setFocusPolicy( TQWidget::StrongFocus );
pw = new TQLineEdit( this, "le" );
pw->setEchoMode( TQLineEdit::Password );

@ -91,7 +91,7 @@ KVncView::KVncView(TQWidget *parent,
password = _password;
dpy = tqt_xdisplay();
setFixedSize(16,16);
setFocusPolicy(TQ_StrongFocus);
setFocusPolicy(TQWidget::StrongFocus);
m_cb = TQApplication::clipboard();
connect(m_cb, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(selectionChanged()));

@ -45,7 +45,7 @@ ColorPicker::ColorPicker( TQWidget *parent, const char *name )
sampleLayout->addWidget( preview );
m_sample = new TQLineEdit( i18n( "Sample Text" ), sampleBox );
m_sample->setFocusPolicy( TQ_NoFocus );
m_sample->setFocusPolicy( TQWidget::NoFocus );
m_sample->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum,
m_sample->sizePolicy().verData() ) );
sampleLayout->addWidget( m_sample );
@ -140,7 +140,7 @@ ColorBar::ColorBar( const TQValueVector<TQColor> &colors, TQWidget *parent,
updateCellSize();
setFocusPolicy( TQ_StrongFocus );
setFocusPolicy( TQWidget::StrongFocus );
}
void ColorBar::drawContents( TQPainter *p )

@ -184,7 +184,7 @@ KSircTopicEditor::KSircTopicEditor( TQWidget *parent, const char *name )
: TQTextEdit( parent, name )
{
setWFlags( WDestructiveClose );
setFocusPolicy( TQ_ClickFocus );
setFocusPolicy( TQWidget::ClickFocus );
connect( this, TQT_SIGNAL( textChanged () ), this, TQT_SLOT( slotMaybeResize() ) );
}

@ -244,7 +244,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf
#endif
mainw = new KSircView(ksircProcess(), pan, kstn + "KSircView" );
mainw->setFocusPolicy(TQ_NoFocus);
mainw->setFocusPolicy(TQWidget::NoFocus);
nicks_box = new TQVBox(pan);
@ -253,7 +253,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf
this, TQT_SLOT(setMode(TQString, int, TQString)));
nicks = new aListBox(nicks_box, kstn + "aListBox");
nicks->setFocusPolicy(TQ_NoFocus);
nicks->setFocusPolicy(TQWidget::NoFocus);
//nicks->hide(); // default = only the main widget
lag = new TQLabel(nicks_box);
@ -360,7 +360,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf
// setup line editor
linee->setFocusPolicy(TQ_StrongFocus);
linee->setFocusPolicy(TQWidget::StrongFocus);
linee->setFont(ksopts->defaultFont);
if(ksopts->oneLineEntry == true) {

Loading…
Cancel
Save