Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/46/head
Michele Calgaro 1 year ago
parent d1e35d25fc
commit 04e50e547f
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -47,7 +47,7 @@ KGradientSlider::KGradientSlider(TQWidget *parent, const char *name, WFlags f)
m_whitecursor = 255; m_whitecursor = 255;
m_gamma = 1.0; m_gamma = 1.0;
m_gammaEnabled = false; m_gammaEnabled = false;
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
} }
KGradientSlider::~KGradientSlider() KGradientSlider::~KGradientSlider()

@ -239,7 +239,7 @@ void DlgColorRange::updatePreview()
TQ_INT32 x, y, w, h; TQ_INT32 x, y, w, h;
m_dev->exactBounds(x, y, w, h); m_dev->exactBounds(x, y, w, h);
TQPixmap pix = TQPixmap(m_selection->maskImage().smoothScale(350, 350, TQ_ScaleMin)); TQPixmap pix = TQPixmap(m_selection->maskImage().smoothScale(350, 350, TQImage::ScaleMin));
m_subject->canvasController()->updateCanvas(); m_subject->canvasController()->updateCanvas();
m_page->pixSelection->setPixmap(pix); m_page->pixSelection->setPixmap(pix);
} }

@ -236,7 +236,7 @@ void KSnapshot::slotPrint()
neww = newh/h*w; neww = newh/h*w;
} }
img = img.smoothScale( int(neww), int(newh), TQ_ScaleMin ); img = img.smoothScale( int(neww), int(newh), TQImage::ScaleMin );
tqApp->processEvents(); tqApp->processEvents();
int x = (metrics.width()-img.width())/2; int x = (metrics.width()-img.width())/2;

@ -61,7 +61,7 @@ KCurve::KCurve(TQWidget *parent, const char *name, WFlags f)
p->first = 1.0; p->second=1.0; p->first = 1.0; p->second=1.0;
m_points.append(p); m_points.append(p);
m_points.setAutoDelete(true); m_points.setAutoDelete(true);
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
} }
KCurve::~KCurve() KCurve::~KCurve()

@ -1284,7 +1284,7 @@ void KisCanvas::updateGeometry()
dynamic_cast<TQWidget *>(m_canvasWidget)->updateGeometry(); dynamic_cast<TQWidget *>(m_canvasWidget)->updateGeometry();
} }
void KisCanvas::setFocusPolicy(TQ_FocusPolicy focusPolicy) void KisCanvas::setFocusPolicy(TQWidget::FocusPolicy focusPolicy)
{ {
Q_ASSERT(m_canvasWidget); Q_ASSERT(m_canvasWidget);
dynamic_cast<TQWidget *>(m_canvasWidget)->setFocusPolicy(focusPolicy); dynamic_cast<TQWidget *>(m_canvasWidget)->setFocusPolicy(focusPolicy);

@ -362,7 +362,7 @@ protected:
void setUpdatesEnabled(bool updatesEnabled); void setUpdatesEnabled(bool updatesEnabled);
bool isUpdatesEnabled() const; bool isUpdatesEnabled() const;
void setFocusPolicy(TQ_FocusPolicy focusPolicy); void setFocusPolicy(TQWidget::FocusPolicy focusPolicy);
const TQCursor& cursor() const; const TQCursor& cursor() const;
void setCursor(const TQCursor& cursor); void setCursor(const TQCursor& cursor);

@ -48,7 +48,7 @@ KisColorPopup::KisColorPopup(TQColor c, TQWidget * parent, const char * name)
{ {
m_color = c; m_color = c;
setMargin(4); setMargin(4);
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
TQHBoxLayout * l = new TQHBoxLayout(this); TQHBoxLayout * l = new TQHBoxLayout(this);
l->add(m_khsSelector = new KHSSelector(this)); l->add(m_khsSelector = new KHSSelector(this));
m_khsSelector->setMinimumSize(140, 7); m_khsSelector->setMinimumSize(140, 7);

@ -63,7 +63,7 @@
KisPopupFrame::KisPopupFrame(TQWidget * parent, const char* name) KisPopupFrame::KisPopupFrame(TQWidget * parent, const char* name)
: TQPopupMenu(parent, name) : TQPopupMenu(parent, name)
{ {
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
} }
void KisPopupFrame::keyPressEvent(TQKeyEvent * e) void KisPopupFrame::keyPressEvent(TQKeyEvent * e)
@ -222,7 +222,7 @@ void KisControlFrame::createBrushesChooser(KisView * view)
TQTabWidget * m_brushesTab = new TQTabWidget(m_brushChooserPopup, "brushestab"); TQTabWidget * m_brushesTab = new TQTabWidget(m_brushChooserPopup, "brushestab");
m_brushesTab->setTabShape(TQTabWidget::Triangular); m_brushesTab->setTabShape(TQTabWidget::Triangular);
m_brushesTab->setFocusPolicy(TQ_NoFocus); m_brushesTab->setFocusPolicy(TQWidget::NoFocus);
m_brushesTab->setFont(m_font); m_brushesTab->setFont(m_font);
m_brushesTab->setMargin(1); m_brushesTab->setMargin(1);
@ -274,7 +274,7 @@ void KisControlFrame::createPatternsChooser(KisView * view)
TQTabWidget * m_patternsTab = new TQTabWidget(m_patternChooserPopup, "patternstab"); TQTabWidget * m_patternsTab = new TQTabWidget(m_patternChooserPopup, "patternstab");
m_patternsTab->setTabShape(TQTabWidget::Triangular); m_patternsTab->setTabShape(TQTabWidget::Triangular);
m_patternsTab->setFocusPolicy(TQ_NoFocus); m_patternsTab->setFocusPolicy(TQWidget::NoFocus);
m_patternsTab->setFont(m_font); m_patternsTab->setFont(m_font);
m_patternsTab->setMargin(1); m_patternsTab->setMargin(1);
l2->add( m_patternsTab ); l2->add( m_patternsTab );
@ -315,7 +315,7 @@ void KisControlFrame::createGradientsChooser(KisView * view)
TQTabWidget * m_gradientTab = new TQTabWidget(m_gradientChooserPopup, "gradientstab"); TQTabWidget * m_gradientTab = new TQTabWidget(m_gradientChooserPopup, "gradientstab");
m_gradientTab->setTabShape(TQTabWidget::Triangular); m_gradientTab->setTabShape(TQTabWidget::Triangular);
m_gradientTab->setFocusPolicy(TQ_NoFocus); m_gradientTab->setFocusPolicy(TQWidget::NoFocus);
m_gradientTab->setFont(m_font); m_gradientTab->setFont(m_font);
m_gradientTab->setMargin(1); m_gradientTab->setMargin(1);

@ -212,7 +212,7 @@ TQImage KisLayerItem::tooltipPreview() const
return img; //so TQt doesn't complain return img; //so TQt doesn't complain
img.setAlphaBuffer( true ); img.setAlphaBuffer( true );
const int size = kMin( 200, kMax( img.width(), img.height() ) ); const int size = kMin( 200, kMax( img.width(), img.height() ) );
return img.smoothScale( size, size, TQ_ScaleMin ); return img.smoothScale( size, size, TQImage::ScaleMin );
} }
//void KisLayerItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int align ); //void KisLayerItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int align );

@ -70,7 +70,7 @@ KisPaletteWidget::KisPaletteWidget( TQWidget *parent, int minWidth, int cols)
TQVBoxLayout *layout = new TQVBoxLayout( this ); TQVBoxLayout *layout = new TQVBoxLayout( this );
combo = new TQComboBox( false, this ); combo = new TQComboBox( false, this );
combo->setFocusPolicy( TQ_ClickFocus ); combo->setFocusPolicy( TQWidget::ClickFocus );
layout->addWidget(combo); layout->addWidget(combo);
m_view = new KisPaletteView(this, 0, minWidth, cols); m_view = new KisPaletteView(this, 0, minWidth, cols);

@ -169,7 +169,7 @@ void KisPreviewWidget::updateZoom()
int sh = int(ceil(m_zoom * h / m_filterZoom)); int sh = int(ceil(m_zoom * h / m_filterZoom));
m_dirtyPreview = false; m_dirtyPreview = false;
m_scaledPreview = m_previewDevice->convertToTQImage(m_profile, 0, 0, w, h); m_scaledPreview = m_previewDevice->convertToTQImage(m_profile, 0, 0, w, h);
m_scaledPreview = m_scaledPreview.scale(sw,sh, TQ_ScaleMax); // Use scale instead of smoothScale for speed up m_scaledPreview = m_scaledPreview.scale(sw,sh, TQImage::ScaleMax); // Use scale instead of smoothScale for speed up
} }
m_preview->setImage(m_scaledPreview); m_preview->setImage(m_scaledPreview);
} else } else
@ -182,7 +182,7 @@ void KisPreviewWidget::updateZoom()
int sh = int(ceil(m_zoom * h)); int sh = int(ceil(m_zoom * h));
m_dirtyOriginal = false; m_dirtyOriginal = false;
m_scaledOriginal = m_origDevice->convertToTQImage(m_profile, 0, 0, w, h); m_scaledOriginal = m_origDevice->convertToTQImage(m_profile, 0, 0, w, h);
m_scaledOriginal = m_scaledOriginal.scale(sw,sh, TQ_ScaleMax); // Use scale instead of smoothScale for speed up m_scaledOriginal = m_scaledOriginal.scale(sw,sh, TQImage::ScaleMax); // Use scale instead of smoothScale for speed up
} }
m_preview->setImage(m_scaledOriginal); m_preview->setImage(m_scaledOriginal);
} }

@ -244,7 +244,7 @@ KisView::KisView(KisDoc *doc, KisUndoAdapter *adapter, TQWidget *parent, const c
KisConfig cfg; KisConfig cfg;
m_currentColorChooserDisplay = KisID("BLA"); m_currentColorChooserDisplay = KisID("BLA");
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
// Must come before input devices are referenced as this detects them. // Must come before input devices are referenced as this detects them.
#ifdef Q_WS_X11 #ifdef Q_WS_X11
@ -3161,7 +3161,7 @@ void KisView::scrollV(int value)
void KisView::setupCanvas() void KisView::setupCanvas()
{ {
m_canvas = new KisCanvas(this, "kis_canvas"); m_canvas = new KisCanvas(this, "kis_canvas");
m_canvas->setFocusPolicy( TQ_StrongFocus ); m_canvas->setFocusPolicy( TQWidget::StrongFocus );
TQObject::connect(m_canvas, TQT_SIGNAL(sigGotButtonPressEvent(KisButtonPressEvent*)), TQT_TQOBJECT(this), TQT_SLOT(canvasGotButtonPressEvent(KisButtonPressEvent*))); TQObject::connect(m_canvas, TQT_SIGNAL(sigGotButtonPressEvent(KisButtonPressEvent*)), TQT_TQOBJECT(this), TQT_SLOT(canvasGotButtonPressEvent(KisButtonPressEvent*)));
TQObject::connect(m_canvas, TQT_SIGNAL(sigGotButtonReleaseEvent(KisButtonReleaseEvent*)), TQT_TQOBJECT(this), TQT_SLOT(canvasGotButtonReleaseEvent(KisButtonReleaseEvent*))); TQObject::connect(m_canvas, TQT_SIGNAL(sigGotButtonReleaseEvent(KisButtonReleaseEvent*)), TQT_TQOBJECT(this), TQT_SLOT(canvasGotButtonReleaseEvent(KisButtonReleaseEvent*)));
TQObject::connect(m_canvas, TQT_SIGNAL(sigGotDoubleClickEvent(KisDoubleClickEvent*)), TQT_TQOBJECT(this), TQT_SLOT(canvasGotDoubleClickEvent(KisDoubleClickEvent*))); TQObject::connect(m_canvas, TQT_SIGNAL(sigGotDoubleClickEvent(KisDoubleClickEvent*)), TQT_TQOBJECT(this), TQT_SLOT(canvasGotDoubleClickEvent(KisDoubleClickEvent*)));

@ -179,7 +179,7 @@ public:
if( !m_img.isNull() ) if( !m_img.isNull() )
{ {
if( m_img.width() > MAX_SIZE || m_img.height() > MAX_SIZE ) if( m_img.width() > MAX_SIZE || m_img.height() > MAX_SIZE )
m_img = m_img.scale( MAX_SIZE, MAX_SIZE, TQ_ScaleMin ); m_img = m_img.scale( MAX_SIZE, MAX_SIZE, TQImage::ScaleMin );
int y = 0; int y = 0;
if( m_img.height() < text.height() ) if( m_img.height() < text.height() )
y = text.height()/2 - m_img.height()/2; y = text.height()/2 - m_img.height()/2;
@ -1128,7 +1128,7 @@ void LayerItem::drawPreview( TQPainter *p, const TQColorGroup &/*cg*/, const TQR
if( d->previewChanged || r.size() != d->previewSize ) if( d->previewChanged || r.size() != d->previewSize )
{ //TODO handle width() != height() { //TODO handle width() != height()
const int size = kMin( r.width(), kMax( previewImage()->width(), previewImage()->height() ) ); const int size = kMin( r.width(), kMax( previewImage()->width(), previewImage()->height() ) );
const TQImage i = previewImage()->smoothScale( size, size, TQ_ScaleMin ); const TQImage i = previewImage()->smoothScale( size, size, TQImage::ScaleMin );
d->scaledPreview.convertFromImage( i ); d->scaledPreview.convertFromImage( i );
d->previewOffset.setX( r.width()/2 - i.width()/2 ); d->previewOffset.setX( r.width()/2 - i.width()/2 );
d->previewOffset.setY( r.height()/2 - i.height()/2 ); d->previewOffset.setY( r.height()/2 - i.height()/2 );

@ -87,7 +87,7 @@ VImage::draw( VPainter *painter, const KoRect * ) const
//painter->setWorldMatrix( m_matrix ); //painter->setWorldMatrix( m_matrix );
//*m_image = m_image->smoothScale( m_image->width() * zoomFactor, m_image->height() * zoomFactor, TQ_ScaleMin ); //*m_image = m_image->smoothScale( m_image->width() * zoomFactor, m_image->height() * zoomFactor, TQImage::ScaleMin );
m_boundingBox = KoRect( 0, 0, m_image->width(), m_image->height() ); m_boundingBox = KoRect( 0, 0, m_image->width(), m_image->height() );
m_boundingBox = m_boundingBox.transform( m_matrix ); m_boundingBox = m_boundingBox.transform( m_matrix );
if( !m_image->isNull() ) if( !m_image->isNull() )

@ -98,7 +98,7 @@ VCanvas::VCanvas( TQWidget *parent, KarbonView* view, KarbonPart* part )
WRepaintNoErase ), m_part( part ), m_view( view ) WRepaintNoErase ), m_part( part ), m_view( view )
{ {
connect(this, TQT_SIGNAL( contentsMoving( int, int ) ), this, TQT_SLOT( slotContentsMoving( int, int ) ) ); connect(this, TQT_SIGNAL( contentsMoving( int, int ) ), this, TQT_SLOT( slotContentsMoving( int, int ) ) );
viewport()->setFocusPolicy( TQ_StrongFocus ); viewport()->setFocusPolicy( TQWidget::StrongFocus );
viewport()->setMouseTracking( true ); viewport()->setMouseTracking( true );
setMouseTracking( true ); setMouseTracking( true );

@ -56,7 +56,7 @@ VStrokeFillPreview::VStrokeFillPreview(
: TQFrame( parent, name ), m_part( part ) : TQFrame( parent, name ), m_part( part )
{ {
m_strokeWidget = false; m_strokeWidget = false;
setFocusPolicy( TQ_NoFocus ); setFocusPolicy( TQWidget::NoFocus );
setFrameStyle( TQFrame::GroupBoxPanel | TQFrame::Sunken ); setFrameStyle( TQFrame::GroupBoxPanel | TQFrame::Sunken );

@ -148,7 +148,7 @@ KoPageLayoutDia::KoPageLayoutDia( TQWidget* parent, const char* name,
if ( tabs & FORMAT_AND_BORDERS ) setupTab1( true ); if ( tabs & FORMAT_AND_BORDERS ) setupTab1( true );
if ( tabs & HEADER_AND_FOOTER ) setupTab2( hf ); if ( tabs & HEADER_AND_FOOTER ) setupTab2( hf );
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
setFocus(); setFocus();
} }
@ -176,7 +176,7 @@ KoPageLayoutDia::KoPageLayoutDia( TQWidget* parent, const char* name,
if ( tabs & COLUMNS ) setupTab3(); if ( tabs & COLUMNS ) setupTab3();
if ( tabs & KW_HEADER_AND_FOOTER ) setupTab4(kwhf); if ( tabs & KW_HEADER_AND_FOOTER ) setupTab4(kwhf);
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
setFocus(); setFocus();
} }

@ -457,14 +457,14 @@ Form::addWidgetToTabStops(ObjectTreeItem *it)
TQWidget *w = it->widget(); TQWidget *w = it->widget();
if(!w) if(!w)
return; return;
if(!(w->focusPolicy() & TQ_TabFocus)) if(!(w->focusPolicy() & TQWidget::TabFocus))
{ {
TQObjectList clo = w->childrenListObject(); TQObjectList clo = w->childrenListObject();
if (clo.isEmpty()) if (clo.isEmpty())
return; return;
// For composed widgets, we check if one of the child can have focus // For composed widgets, we check if one of the child can have focus
for(TQObjectListIterator chIt(clo); chIt.current(); ++chIt) { for(TQObjectListIterator chIt(clo); chIt.current(); ++chIt) {
if(chIt.current()->isWidgetType()) {//TQ_TabFocus flag will be checked later! if(chIt.current()->isWidgetType()) {//TQWidget::TabFocus flag will be checked later!
if(d->tabstops.findRef(it) == -1) { if(d->tabstops.findRef(it) == -1) {
d->tabstops.append(it); d->tabstops.append(it);
return; return;
@ -480,7 +480,7 @@ void
Form::updateTabStopsOrder() Form::updateTabStopsOrder()
{ {
for (ObjectTreeListIterator it(d->tabstops);it.current();) { for (ObjectTreeListIterator it(d->tabstops);it.current();) {
if(!(it.current()->widget()->focusPolicy() & TQ_TabFocus)) { if(!(it.current()->widget()->focusPolicy() & TQWidget::TabFocus)) {
kexidbg << "Form::updateTabStopsOrder(): widget removed because has no TabFocus: " << it.current()->widget()->name() << endl; kexidbg << "Form::updateTabStopsOrder(): widget removed because has no TabFocus: " << it.current()->widget()->name() << endl;
d->tabstops.remove( it.current() ); d->tabstops.remove( it.current() );
} }

@ -139,7 +139,7 @@ KFormDesignerKDevPart::KFormDesignerKDevPart(TQWidget *parent, const char *name,
m_inShell = (!args.grep("shell").isEmpty()); m_inShell = (!args.grep("shell").isEmpty());
TQHBox *container = new TQHBox(parent, "kfd_container_widget"); TQHBox *container = new TQHBox(parent, "kfd_container_widget");
container->setFocusPolicy(TQ_ClickFocus); container->setFocusPolicy(TQWidget::ClickFocus);
m_workspace = new TQWorkspace(container, "kfd_workspace"); m_workspace = new TQWorkspace(container, "kfd_workspace");
m_workspace->show(); m_workspace->show();

@ -283,7 +283,7 @@ void KexiUtils::drawPixmap( TQPainter& p, int lineWidth, const TQRect& rect,
if (scaledContents) { if (scaledContents) {
if (keepAspectRatio) { if (keepAspectRatio) {
TQImage img(pixmap.convertToImage()); TQImage img(pixmap.convertToImage());
img = img.smoothScale(w, h, TQ_ScaleMin); img = img.smoothScale(w, h, TQImage::ScaleMin);
pos = rect.topLeft(); //0, 0); pos = rect.topLeft(); //0, 0);
if (img.width() < w) { if (img.width() < w) {
int hAlign = TQApplication::horizontalAlignment( alignment ); int hAlign = TQApplication::horizontalAlignment( alignment );

@ -481,7 +481,7 @@ void KexiSimplePrintingEngine::paintRecord(TQPainter& painter, KexiTableItem *it
int( (rect.y()+m_mainLineSpacing/4) / m_SCALE), int( (rect.y()+m_mainLineSpacing/4) / m_SCALE),
pixmap.convertToImage().smoothScale( pixmap.convertToImage().smoothScale(
int(pixmapWidth / m_SCALE), int(pixmapHeight / m_SCALE), int(pixmapWidth / m_SCALE), int(pixmapHeight / m_SCALE),
TQ_ScaleMin )); TQImage::ScaleMin ));
painter.restore(); // back to m_SCALE:1 scale painter.restore(); // back to m_SCALE:1 scale
} }
} }

@ -192,7 +192,7 @@ KexiNewProjectWizard::KexiNewProjectWizard(KexiDBConnectionSet& conn_set,
m_project_selector = new KexiProjectSelectorWidget( m_project_selector = new KexiProjectSelectorWidget(
m_server_db_name->frm_dblist, "KexiProjectSelectorWidget", 0, false, false ); m_server_db_name->frm_dblist, "KexiProjectSelectorWidget", 0, false, false );
GLUE_WIDGET(m_project_selector, m_server_db_name->frm_dblist); GLUE_WIDGET(m_project_selector, m_server_db_name->frm_dblist);
m_project_selector->setFocusPolicy(TQ_NoFocus); m_project_selector->setFocusPolicy(TQWidget::NoFocus);
m_project_selector->setSelectable(false); m_project_selector->setSelectable(false);
addPage(m_server_db_name, i18n("Select Project's Caption & Database Name")); addPage(m_server_db_name, i18n("Select Project's Caption & Database Name"));

@ -176,7 +176,7 @@ KexiDataSourcePage::KexiDataSourcePage(TQWidget *parent, const char *name)
"add_field", "addFieldButton"); "add_field", "addFieldButton");
m_addField->setMinimumHeight(m_availableFieldsLabel->minimumHeight()); m_addField->setMinimumHeight(m_availableFieldsLabel->minimumHeight());
// m_addField->setTextPosition(TQToolButton::Right); // m_addField->setTextPosition(TQToolButton::Right);
m_addField->setFocusPolicy(TQ_StrongFocus); m_addField->setFocusPolicy(TQWidget::StrongFocus);
TQToolTip::add(m_addField, i18n("Insert selected fields into form")); TQToolTip::add(m_addField, i18n("Insert selected fields into form"));
hlyr->addWidget(m_addField); hlyr->addWidget(m_addField);
connect(m_addField, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotInsertSelectedFields())); connect(m_addField, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotInsertSelectedFields()));

@ -300,9 +300,9 @@ KexiDBAutoField::setInvalidState( const TQString &text )
return; return;
d->widgetType = Auto; d->widgetType = Auto;
createEditor(); createEditor();
setFocusPolicy(TQ_NoFocus); setFocusPolicy(TQWidget::NoFocus);
if (m_subwidget) if (m_subwidget)
m_subwidget->setFocusPolicy(TQ_NoFocus); m_subwidget->setFocusPolicy(TQWidget::NoFocus);
//! @todo or set this to editor's text? //! @todo or set this to editor's text?
d->label->setText( text ); d->label->setText( text );
} }
@ -667,7 +667,7 @@ KexiDBAutoField::sizeHint() const
} }
void void
KexiDBAutoField::setFocusPolicy( TQ_FocusPolicy policy ) KexiDBAutoField::setFocusPolicy( TQWidget::FocusPolicy policy )
{ {
d->focusPolicyChanged = true; d->focusPolicyChanged = true;
TQWidget::setFocusPolicy(policy); TQWidget::setFocusPolicy(policy);

@ -133,7 +133,7 @@ class KEXIFORMUTILS_EXPORT KexiDBAutoField :
TQString fieldCaptionInternal() const; TQString fieldCaptionInternal() const;
virtual TQSize sizeHint() const; virtual TQSize sizeHint() const;
virtual void setFocusPolicy ( TQ_FocusPolicy policy ); virtual void setFocusPolicy ( TQWidget::FocusPolicy policy );
//! Reimplemented to return internal editor's color. //! Reimplemented to return internal editor's color.
const TQColor & paletteForegroundColor() const; const TQColor & paletteForegroundColor() const;

@ -29,7 +29,7 @@ KexiDBCheckBox::KexiDBCheckBox(const TQString &text, TQWidget *parent, const cha
, m_tristateChanged(false) , m_tristateChanged(false)
, m_tristate(TristateDefault) , m_tristate(TristateDefault)
{ {
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
updateTristate(); updateTristate();
connect(this, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(slotStateChanged(int))); connect(this, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(slotStateChanged(int)));
} }
@ -44,8 +44,8 @@ void KexiDBCheckBox::setInvalidState( const TQString& displayText )
setState(NoChange); setState(NoChange);
m_invalidState = true; m_invalidState = true;
//! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ? //! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ?
if (focusPolicy() & TQ_TabFocus) if (focusPolicy() & TQWidget::TabFocus)
setFocusPolicy(TQ_ClickFocus); setFocusPolicy(TQWidget::ClickFocus);
setText(displayText); setText(displayText);
} }

@ -78,7 +78,7 @@ KexiDBComboBox::KexiDBComboBox(TQWidget *parent, const char *name, bool designMo
, d(new Private()) , d(new Private())
{ {
setMouseTracking(true); setMouseTracking(true);
setFocusPolicy(TQ_WheelFocus); setFocusPolicy(TQWidget::WheelFocus);
installEventFilter(this); installEventFilter(this);
d->designMode = designMode; d->designMode = designMode;
d->paintedCombo = new KComboBox(this); d->paintedCombo = new KComboBox(this);

@ -82,7 +82,7 @@ void KexiDBDateEdit::setInvalidState( const TQString& )
m_invalidState = true; m_invalidState = true;
//! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ? //! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ?
if (focusPolicy() & TabFocus) if (focusPolicy() & TabFocus)
setFocusPolicy(TQ_ClickFocus); setFocusPolicy(TQWidget::ClickFocus);
} }
void void

@ -91,7 +91,7 @@ void KexiDBDateTimeEdit::setInvalidState(const TQString & /*! @todo paint this t
m_invalidState = true; m_invalidState = true;
//! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ? //! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ?
if (focusPolicy() & TabFocus) if (focusPolicy() & TabFocus)
setFocusPolicy(TQ_ClickFocus); setFocusPolicy(TQWidget::ClickFocus);
} }
void void

@ -39,7 +39,7 @@ void KexiDBDoubleSpinBox::setInvalidState( const TQString& displayText )
setReadOnly(true); setReadOnly(true);
//! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ? //! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ?
if (focusPolicy() & TabFocus) if (focusPolicy() & TabFocus)
setFocusPolicy(TQ_ClickFocus); setFocusPolicy(TQWidget::ClickFocus);
setSpecialValueText(displayText); setSpecialValueText(displayText);
KDoubleSpinBox::setValue(minValue()); KDoubleSpinBox::setValue(minValue());
} }

@ -310,7 +310,7 @@ void KexiDBForm::updateTabStopsOrder(KFormDesigner::Form* form)
// if (d->orderedFocusWidgets.isEmpty()) { // if (d->orderedFocusWidgets.isEmpty()) {
//generate a new list //generate a new list
for (KFormDesigner::ObjectTreeListIterator it(form->tabStopsIterator()); it.current(); ++it) { for (KFormDesigner::ObjectTreeListIterator it(form->tabStopsIterator()); it.current(); ++it) {
if (it.current()->widget()->focusPolicy() & TQ_TabFocus) { if (it.current()->widget()->focusPolicy() & TQWidget::TabFocus) {
//this widget has tab focus: //this widget has tab focus:
it.current()->widget()->installEventFilter(this); it.current()->widget()->installEventFilter(this);
//also filter events for data-aware children of this widget (i.e. KexiDBAutoField's editors) //also filter events for data-aware children of this widget (i.e. KexiDBAutoField's editors)
@ -368,7 +368,7 @@ void KexiDBForm::updateTabStopsOrder(KFormDesigner::Form* form)
void KexiDBForm::updateTabStopsOrder() void KexiDBForm::updateTabStopsOrder()
{ {
for (TQPtrListIterator<TQWidget> it( d->orderedFocusWidgets ); it.current();) { for (TQPtrListIterator<TQWidget> it( d->orderedFocusWidgets ); it.current();) {
if (! (it.current()->focusPolicy() & TQ_TabFocus)) if (! (it.current()->focusPolicy() & TQWidget::TabFocus))
d->orderedFocusWidgets.remove( it.current() ); d->orderedFocusWidgets.remove( it.current() );
else else
++it; ++it;

@ -91,7 +91,7 @@ KexiDBImageBox::KexiDBImageBox( bool designMode, TQWidget *parent, const char *n
} }
else { else {
m_chooser = new KexiDropDownButton(this); m_chooser = new KexiDropDownButton(this);
m_chooser->setFocusPolicy(TQ_StrongFocus); m_chooser->setFocusPolicy(TQWidget::StrongFocus);
m_chooser->setPopup(m_popupMenu); m_chooser->setPopup(m_popupMenu);
setFocusProxy(m_chooser); setFocusProxy(m_chooser);
m_chooser->installEventFilter(this); m_chooser->installEventFilter(this);
@ -711,7 +711,7 @@ void KexiDBImageBox::updatePixmap()
KexiDBImageBox_pmDeleter.setObject( KexiDBImageBox_pm, new TQPixmap(fname, "PNG") ); KexiDBImageBox_pmDeleter.setObject( KexiDBImageBox_pm, new TQPixmap(fname, "PNG") );
TQImage img(KexiDBImageBox_pm->convertToImage()); TQImage img(KexiDBImageBox_pm->convertToImage());
KexiDBImageBox_pmSmallDeleter.setObject( KexiDBImageBox_pmSmall, KexiDBImageBox_pmSmallDeleter.setObject( KexiDBImageBox_pmSmall,
new TQPixmap( img.smoothScale(img.width()/2, img.height()/2, TQ_ScaleMin) ) ); new TQPixmap( img.smoothScale(img.width()/2, img.height()/2, TQImage::ScaleMin) ) );
} }
} }
@ -849,19 +849,19 @@ bool KexiDBImageBox::eventFilter( TQObject * watched, TQEvent * e )
return KexiFrame::eventFilter(watched, e); return KexiFrame::eventFilter(watched, e);
} }
TQ_FocusPolicy KexiDBImageBox::focusPolicy() const TQWidget::FocusPolicy KexiDBImageBox::focusPolicy() const
{ {
if (dataSource().isEmpty()) if (dataSource().isEmpty())
return TQ_NoFocus; return TQWidget::NoFocus;
return m_focusPolicyInternal; return m_focusPolicyInternal;
} }
TQ_FocusPolicy KexiDBImageBox::focusPolicyInternal() const TQWidget::FocusPolicy KexiDBImageBox::focusPolicyInternal() const
{ {
return m_focusPolicyInternal; return m_focusPolicyInternal;
} }
void KexiDBImageBox::setFocusPolicy( TQ_FocusPolicy policy ) void KexiDBImageBox::setFocusPolicy( TQWidget::FocusPolicy policy )
{ {
m_focusPolicyInternal = policy; m_focusPolicyInternal = policy;
KexiFrame::setFocusPolicy( focusPolicy() ); //set modified policy KexiFrame::setFocusPolicy( focusPolicy() ); //set modified policy

@ -127,14 +127,14 @@ class KEXIFORMUTILS_EXPORT KexiDBImageBox :
/*! Overriden to change the policy behaviour a bit: /*! Overriden to change the policy behaviour a bit:
NoFocus is returned regardless the real focus flag NoFocus is returned regardless the real focus flag
if the data source is empty (see dataSource()). */ if the data source is empty (see dataSource()). */
TQ_FocusPolicy focusPolicy() const; TQWidget::FocusPolicy focusPolicy() const;
//! \return the internal focus policy value, i.e. the one unrelated to data source presence. //! \return the internal focus policy value, i.e. the one unrelated to data source presence.
TQ_FocusPolicy focusPolicyInternal() const; TQWidget::FocusPolicy focusPolicyInternal() const;
/*! Sets the internal focus policy value. /*! Sets the internal focus policy value.
"Internal" means that if there is no data source set, real policy becomes NoFocus. */ "Internal" means that if there is no data source set, real policy becomes NoFocus. */
virtual void setFocusPolicy( TQ_FocusPolicy policy ); virtual void setFocusPolicy( TQWidget::FocusPolicy policy );
public slots: public slots:
void setPixmapId(uint id); void setPixmapId(uint id);
@ -259,7 +259,7 @@ class KEXIFORMUTILS_EXPORT KexiDBImageBox :
// *m_deleteAction, *m_propertiesAction; // *m_deleteAction, *m_propertiesAction;
// TQTimer m_clickTimer; // TQTimer m_clickTimer;
int m_alignment; int m_alignment;
TQ_FocusPolicy m_focusPolicyInternal; //!< Used for focusPolicyInternal() TQWidget::FocusPolicy m_focusPolicyInternal; //!< Used for focusPolicyInternal()
bool m_designMode : 1; bool m_designMode : 1;
bool m_readOnly : 1; bool m_readOnly : 1;
bool m_scaledContents : 1; bool m_scaledContents : 1;

@ -40,7 +40,7 @@ void KexiDBIntSpinBox::setInvalidState( const TQString& displayText )
setReadOnly(true); setReadOnly(true);
//! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ? //! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ?
if (focusPolicy() & TabFocus) if (focusPolicy() & TabFocus)
setFocusPolicy(TQ_ClickFocus); setFocusPolicy(TQWidget::ClickFocus);
setSpecialValueText(displayText); setSpecialValueText(displayText);
KIntSpinBox::setValue(minValue()); KIntSpinBox::setValue(minValue());
} }

@ -80,8 +80,8 @@ void KexiDBLineEdit::setInvalidState( const TQString& displayText )
{ {
KLineEdit::setReadOnly(true); KLineEdit::setReadOnly(true);
//! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ? //! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ?
if (focusPolicy() & TQ_TabFocus) if (focusPolicy() & TQWidget::TabFocus)
setFocusPolicy(TQ_ClickFocus); setFocusPolicy(TQWidget::ClickFocus);
setText(displayText); setText(displayText);
} }

@ -47,8 +47,8 @@ void KexiDBTextEdit::setInvalidState( const TQString& displayText )
{ {
setReadOnly(true); setReadOnly(true);
//! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ? //! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ?
if (focusPolicy() & TQ_TabFocus) if (focusPolicy() & TQWidget::TabFocus)
setFocusPolicy(TQ_ClickFocus); setFocusPolicy(TQWidget::ClickFocus);
KTextEdit::setText(displayText); KTextEdit::setText(displayText);
} }

@ -56,7 +56,7 @@ void KexiDBTimeEdit::setInvalidState( const TQString&)
m_invalidState = true; m_invalidState = true;
//! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ? //! @todo move this to KexiDataItemInterface::setInvalidStateInternal() ?
if (focusPolicy() & TabFocus) if (focusPolicy() & TabFocus)
setFocusPolicy(TQ_ClickFocus); setFocusPolicy(TQWidget::ClickFocus);
} }
void void

@ -169,7 +169,7 @@ KexiCSVInfoLabel::KexiCSVInfoLabel( const TQString& labelText, TQWidget* parent
m_iconLbl->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred); m_iconLbl->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred);
m_iconLbl->setAlignment(TQt::AlignVCenter | TQt::AlignLeft); m_iconLbl->setAlignment(TQt::AlignVCenter | TQt::AlignLeft);
m_fnameLbl = new KActiveLabel(this); m_fnameLbl = new KActiveLabel(this);
m_fnameLbl->setFocusPolicy(TQ_NoFocus); m_fnameLbl->setFocusPolicy(TQWidget::NoFocus);
m_fnameLbl->setTextFormat(TQt::PlainText); m_fnameLbl->setTextFormat(TQt::PlainText);
m_fnameLbl->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding,1,0)); m_fnameLbl->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding,1,0));
m_fnameLbl->setLineWidth(1); m_fnameLbl->setLineWidth(1);
@ -180,7 +180,7 @@ KexiCSVInfoLabel::KexiCSVInfoLabel( const TQString& labelText, TQWidget* parent
hbox->addWidget(m_fnameLbl, 1, TQt::AlignVCenter | TQt::AlignLeft | TQt::WordBreak); hbox->addWidget(m_fnameLbl, 1, TQt::AlignVCenter | TQt::AlignLeft | TQt::WordBreak);
hbox->addSpacing(10); hbox->addSpacing(10);
m_commentLbl = new KActiveLabel(this); m_commentLbl = new KActiveLabel(this);
m_commentLbl->setFocusPolicy(TQ_NoFocus); m_commentLbl->setFocusPolicy(TQWidget::NoFocus);
m_commentLbl->setTextFormat(TQt::PlainText); m_commentLbl->setTextFormat(TQt::PlainText);
m_commentLbl->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding); m_commentLbl->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
m_commentLbl->setLineWidth(1); m_commentLbl->setLineWidth(1);

@ -132,7 +132,7 @@ KexiPropertyEditorView::KexiPropertyEditorView(KexiMainWindow *mainWin, TQWidget
lyr->addWidget(d->editor); lyr->addWidget(d->editor);
setFocusProxy(d->editor); setFocusProxy(d->editor);
d->objectInfoLabel->setBuddy(d->editor); d->objectInfoLabel->setBuddy(d->editor);
setFocusPolicy(TQ_WheelFocus); setFocusPolicy(TQWidget::WheelFocus);
connect(d->editor, TQT_SIGNAL(propertySetChanged(KoProperty::Set*)), connect(d->editor, TQT_SIGNAL(propertySetChanged(KoProperty::Set*)),
this, TQT_SLOT(slotPropertySetChanged(KoProperty::Set*))); this, TQT_SLOT(slotPropertySetChanged(KoProperty::Set*)));

@ -60,7 +60,7 @@ KexiScrollView::KexiScrollView(TQWidget *parent, bool preview)
// (fc.blue()+bc.blue()*2)/3); // (fc.blue()+bc.blue()*2)/3);
m_helpFont.setPointSize( m_helpFont.pointSize() * 3 ); m_helpFont.setPointSize( m_helpFont.pointSize() * 3 );
setFocusPolicy(TQ_WheelFocus); setFocusPolicy(TQWidget::WheelFocus);
//initial resize mode is always manual; //initial resize mode is always manual;
//will be changed on show(), if needed //will be changed on show(), if needed

@ -66,7 +66,7 @@ KexiSectionHeader::KexiSectionHeader(const TQString &caption, Qt::Orientation o,
d->lbl_b = new TQHBox(this); d->lbl_b = new TQHBox(this);
d->lbl = new TQLabel(TQString(" ")+caption, d->lbl_b); d->lbl = new TQLabel(TQString(" ")+caption, d->lbl_b);
d->lbl->setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred); d->lbl->setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred);
d->lbl->setFocusPolicy(TQ_StrongFocus); d->lbl->setFocusPolicy(TQWidget::StrongFocus);
d->lbl->installEventFilter(this); d->lbl->installEventFilter(this);
installEventFilter(this); installEventFilter(this);
setCaption(caption); setCaption(caption);
@ -82,7 +82,7 @@ void KexiSectionHeader::addButton(const TQString& icon, const TQString& toolTip,
{ {
KPushButton *btn = new KPushButton(d->lbl_b); KPushButton *btn = new KPushButton(d->lbl_b);
btn->setFlat(true); btn->setFlat(true);
btn->setFocusPolicy(TQ_NoFocus); btn->setFocusPolicy(TQWidget::NoFocus);
btn->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred); btn->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred);
if (receiver && member) { if (receiver && member) {
connect(btn, TQT_SIGNAL(clicked()), receiver, member); connect(btn, TQT_SIGNAL(clicked()), receiver, member);

@ -343,7 +343,7 @@ PixmapCollectionEditor::getPixmap(const TQString &name)
KPixmapIO io; KPixmapIO io;
TQImage image = io.convertToImage(pixmap); TQImage image = io.convertToImage(pixmap);
pixmap = io.convertToPixmap(image.scale(48, 48, TQ_ScaleMin)); pixmap = io.convertToPixmap(image.scale(48, 48, TQImage::ScaleMin));
return pixmap; return pixmap;
} }
@ -420,7 +420,7 @@ PixmapCollectionChooser::getPixmap(const TQString &name)
// We scale the pixmap down to 48x48 to fit in the iconView // We scale the pixmap down to 48x48 to fit in the iconView
KPixmapIO io; KPixmapIO io;
TQImage image = io.convertToImage(pixmap); TQImage image = io.convertToImage(pixmap);
pixmap = io.convertToPixmap(image.scale(48, 48, TQ_ScaleMin)); pixmap = io.convertToPixmap(image.scale(48, 48, TQImage::ScaleMin));
return pixmap; return pixmap;
} }

@ -58,7 +58,7 @@ KexiRelationView::KexiRelationView(TQWidget *parent, const char *name)
// connect(relation, TQT_SIGNAL(relationListUpdated(TQObject *)), this, TQT_SLOT(slotListUpdate(TQObject *))); // connect(relation, TQT_SIGNAL(relationListUpdated(TQObject *)), this, TQT_SLOT(slotListUpdate(TQObject *)));
viewport()->setPaletteBackgroundColor(colorGroup().mid()); viewport()->setPaletteBackgroundColor(colorGroup().mid());
setFocusPolicy(TQ_WheelFocus); setFocusPolicy(TQWidget::WheelFocus);
setResizePolicy(Manual); setResizePolicy(Manual);
/*MOVED TO KexiRelationDialog /*MOVED TO KexiRelationDialog
//actions //actions

@ -70,7 +70,7 @@ KexiComboBoxTableEdit::KexiComboBoxTableEdit(KexiTableViewColumn &column, TQWidg
m_setVisibleValueOnSetValueInternal = true; m_setVisibleValueOnSetValueInternal = true;
d->button = new KexiComboBoxDropDownButton( parentWidget() /*usually a viewport*/ ); d->button = new KexiComboBoxDropDownButton( parentWidget() /*usually a viewport*/ );
d->button->hide(); d->button->hide();
d->button->setFocusPolicy( TQ_NoFocus ); d->button->setFocusPolicy( TQWidget::NoFocus );
connect(d->button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotButtonClicked())); connect(d->button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotButtonClicked()));
connect(m_lineedit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotLineEditTextChanged(const TQString&))); connect(m_lineedit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotLineEditTextChanged(const TQString&)));

@ -192,9 +192,9 @@ KexiTableView::KexiTableView(KexiTableViewData* data, TQWidget* parent, const ch
setResizePolicy(Manual); setResizePolicy(Manual);
viewport()->setBackgroundMode(TQt::NoBackground); viewport()->setBackgroundMode(TQt::NoBackground);
// viewport()->setFocusPolicy(TQ_StrongFocus); // viewport()->setFocusPolicy(TQWidget::StrongFocus);
viewport()->setFocusPolicy(TQ_WheelFocus); viewport()->setFocusPolicy(TQWidget::WheelFocus);
setFocusPolicy(TQ_WheelFocus); //<--- !!!!! important (was NoFocus), setFocusPolicy(TQWidget::WheelFocus); //<--- !!!!! important (was NoFocus),
// otherwise TQApplication::setActiveWindow() won't activate // otherwise TQApplication::setActiveWindow() won't activate
// this widget when needed! // this widget when needed!
// setFocusProxy(viewport()); // setFocusProxy(viewport());

@ -88,13 +88,13 @@ KexiRecordNavigator::KexiRecordNavigator(TQWidget *parent, int leftMargin, const
d->lyr->addWidget( m_navBtnFirst = new TQToolButton(this) ); d->lyr->addWidget( m_navBtnFirst = new TQToolButton(this) );
m_navBtnFirst->setFixedWidth(bw); m_navBtnFirst->setFixedWidth(bw);
m_navBtnFirst->setFocusPolicy(TQ_NoFocus); m_navBtnFirst->setFocusPolicy(TQWidget::NoFocus);
m_navBtnFirst->setIconSet( SmallIconSet("navigator_first") ); m_navBtnFirst->setIconSet( SmallIconSet("navigator_first") );
TQToolTip::add(m_navBtnFirst, i18n("First row")); TQToolTip::add(m_navBtnFirst, i18n("First row"));
d->lyr->addWidget( m_navBtnPrev = new TQToolButton(this) ); d->lyr->addWidget( m_navBtnPrev = new TQToolButton(this) );
m_navBtnPrev->setFixedWidth(bw); m_navBtnPrev->setFixedWidth(bw);
m_navBtnPrev->setFocusPolicy(TQ_NoFocus); m_navBtnPrev->setFocusPolicy(TQWidget::NoFocus);
m_navBtnPrev->setIconSet( SmallIconSet("navigator_prev") ); m_navBtnPrev->setIconSet( SmallIconSet("navigator_prev") );
m_navBtnPrev->setAutoRepeat(true); m_navBtnPrev->setAutoRepeat(true);
TQToolTip::add(m_navBtnPrev, i18n("Previous row")); TQToolTip::add(m_navBtnPrev, i18n("Previous row"));
@ -103,7 +103,7 @@ KexiRecordNavigator::KexiRecordNavigator(TQWidget *parent, int leftMargin, const
d->lyr->addWidget( m_navRecordNumber = new KLineEdit(this) ); d->lyr->addWidget( m_navRecordNumber = new KLineEdit(this) );
m_navRecordNumber->setAlignment(AlignRight | AlignVCenter); m_navRecordNumber->setAlignment(AlignRight | AlignVCenter);
m_navRecordNumber->setFocusPolicy(TQ_ClickFocus); m_navRecordNumber->setFocusPolicy(TQWidget::ClickFocus);
m_navRecordNumber->installEventFilter(this); m_navRecordNumber->installEventFilter(this);
// m_navRowNumber->setFixedWidth(fw); // m_navRowNumber->setFixedWidth(fw);
m_navRecordNumberValidator = new TQIntValidator(1, INT_MAX, TQT_TQOBJECT(this)); m_navRecordNumberValidator = new TQIntValidator(1, INT_MAX, TQT_TQOBJECT(this));
@ -116,7 +116,7 @@ KexiRecordNavigator::KexiRecordNavigator(TQWidget *parent, int leftMargin, const
lbl_of->setMaximumWidth(fm.width(lbl_of->text())+8); lbl_of->setMaximumWidth(fm.width(lbl_of->text())+8);
lbl_of->setReadOnly(true); lbl_of->setReadOnly(true);
lbl_of->setLineWidth(0); lbl_of->setLineWidth(0);
lbl_of->setFocusPolicy(TQ_NoFocus); lbl_of->setFocusPolicy(TQWidget::NoFocus);
lbl_of->setAlignment(AlignCenter); lbl_of->setAlignment(AlignCenter);
d->lyr->addWidget( lbl_of ); d->lyr->addWidget( lbl_of );
@ -124,7 +124,7 @@ KexiRecordNavigator::KexiRecordNavigator(TQWidget *parent, int leftMargin, const
m_navRecordCount->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Preferred); m_navRecordCount->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Preferred);
m_navRecordCount->setReadOnly(true); m_navRecordCount->setReadOnly(true);
m_navRecordCount->setLineWidth(0); m_navRecordCount->setLineWidth(0);
m_navRecordCount->setFocusPolicy(TQ_NoFocus); m_navRecordCount->setFocusPolicy(TQWidget::NoFocus);
m_navRecordCount->setAlignment(AlignLeft | AlignVCenter); m_navRecordCount->setAlignment(AlignLeft | AlignVCenter);
TQToolTip::add(m_navRecordCount, i18n("Number of rows")); TQToolTip::add(m_navRecordCount, i18n("Number of rows"));
@ -135,21 +135,21 @@ KexiRecordNavigator::KexiRecordNavigator(TQWidget *parent, int leftMargin, const
d->lyr->addWidget( m_navBtnNext = new TQToolButton(this) ); d->lyr->addWidget( m_navBtnNext = new TQToolButton(this) );
m_navBtnNext->setFixedWidth(bw); m_navBtnNext->setFixedWidth(bw);
m_navBtnNext->setFocusPolicy(TQ_NoFocus); m_navBtnNext->setFocusPolicy(TQWidget::NoFocus);
m_navBtnNext->setIconSet( SmallIconSet("navigator_next") ); m_navBtnNext->setIconSet( SmallIconSet("navigator_next") );
m_navBtnNext->setAutoRepeat(true); m_navBtnNext->setAutoRepeat(true);
TQToolTip::add(m_navBtnNext, i18n("Next row")); TQToolTip::add(m_navBtnNext, i18n("Next row"));
d->lyr->addWidget( m_navBtnLast = new TQToolButton(this) ); d->lyr->addWidget( m_navBtnLast = new TQToolButton(this) );
m_navBtnLast->setFixedWidth(bw); m_navBtnLast->setFixedWidth(bw);
m_navBtnLast->setFocusPolicy(TQ_NoFocus); m_navBtnLast->setFocusPolicy(TQWidget::NoFocus);
m_navBtnLast->setIconSet( SmallIconSet("navigator_last") ); m_navBtnLast->setIconSet( SmallIconSet("navigator_last") );
TQToolTip::add(m_navBtnLast, i18n("Last row")); TQToolTip::add(m_navBtnLast, i18n("Last row"));
d->lyr->addSpacing( 6 ); d->lyr->addSpacing( 6 );
d->lyr->addWidget( m_navBtnNew = new TQToolButton(this) ); d->lyr->addWidget( m_navBtnNew = new TQToolButton(this) );
m_navBtnNew->setFixedWidth(bw); m_navBtnNew->setFixedWidth(bw);
m_navBtnNew->setFocusPolicy(TQ_NoFocus); m_navBtnNew->setFocusPolicy(TQWidget::NoFocus);
m_navBtnNew->setIconSet( SmallIconSet("navigator_new") ); m_navBtnNew->setIconSet( SmallIconSet("navigator_new") );
TQToolTip::add(m_navBtnNew, i18n("New row")); TQToolTip::add(m_navBtnNew, i18n("New row"));
m_navBtnNext->setEnabled(isInsertingEnabled()); m_navBtnNext->setEnabled(isInsertingEnabled());

@ -35,7 +35,7 @@ KexiToolTip::KexiToolTip(const TQVariant& value, TQWidget* parent)
, m_value(value) , m_value(value)
{ {
setPalette( TQToolTip::palette() ); setPalette( TQToolTip::palette() );
setFocusPolicy(TQ_NoFocus); setFocusPolicy(TQWidget::NoFocus);
} }
KexiToolTip::~KexiToolTip() KexiToolTip::~KexiToolTip()

@ -65,8 +65,8 @@ KFormulaPartView::KFormulaPartView(KFormulaDoc* _doc, TQWidget* _parent, const c
scrollview->addChild(formulaWidget); scrollview->addChild(formulaWidget);
scrollview->viewport()->setFocusProxy( scrollview ); scrollview->viewport()->setFocusProxy( scrollview );
scrollview->viewport()->setFocusPolicy( TQ_WheelFocus ); scrollview->viewport()->setFocusPolicy( TQWidget::WheelFocus );
scrollview->setFocusPolicy( TQ_NoFocus ); scrollview->setFocusPolicy( TQWidget::NoFocus );
formulaWidget->setFocus(); formulaWidget->setFocus();
// Nice parts start in read only mode. // Nice parts start in read only mode.

@ -43,7 +43,7 @@ KFormulaWidget::KFormulaWidget(KFormula::Container* doc,
connect(&formulaView, TQT_SIGNAL(cursorChanged(bool, bool)), connect(&formulaView, TQT_SIGNAL(cursorChanged(bool, bool)),
this, TQT_SLOT(slotCursorChanged(bool, bool))); this, TQT_SLOT(slotCursorChanged(bool, bool)));
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
setBackgroundMode(NoBackground/*TQWidget::PaletteBase*/); setBackgroundMode(NoBackground/*TQWidget::PaletteBase*/);
TQRect rect = doc->boundingRect(); TQRect rect = doc->boundingRect();

@ -66,7 +66,7 @@ KivioCanvas::KivioCanvas( TQWidget *par, KivioView* view, KivioDoc* doc, TQScrol
setBackgroundMode(NoBackground); setBackgroundMode(NoBackground);
setAcceptDrops(true); setAcceptDrops(true);
setMouseTracking(true); setMouseTracking(true);
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
setFocus(); setFocus();
m_showConnectorTargets = false; m_showConnectorTargets = false;

@ -50,7 +50,7 @@ void KivioStackBar::insertPage( TQWidget* w, const TQString& title )
} }
w->hide(); w->hide();
w->setFocusPolicy(TQ_NoFocus); w->setFocusPolicy(TQWidget::NoFocus);
setMinimumWidth( TQMAX(minimumSize().width(),w->minimumSize().width() ) ); setMinimumWidth( TQMAX(minimumSize().width(),w->minimumSize().width() ) );
setMaximumWidth( TQMAX(maximumSize().width(),w->maximumSize().width() ) ); setMaximumWidth( TQMAX(maximumSize().width(),w->maximumSize().width() ) );

@ -215,7 +215,7 @@ KivioView::KivioView( TQWidget *_parent, const char *_name, KivioDoc* doc )
m_pCanvas = new KivioCanvas(canvasBase,this,doc,m_vertScrollBar,m_horzScrollBar); m_pCanvas = new KivioCanvas(canvasBase,this,doc,m_vertScrollBar,m_horzScrollBar);
canvasBase->addWidget(m_pCanvas,0); canvasBase->addWidget(m_pCanvas,0);
canvasBase->raiseWidget(m_pCanvas); canvasBase->raiseWidget(m_pCanvas);
m_pCanvas->setFocusPolicy(TQ_StrongFocus); m_pCanvas->setFocusPolicy(TQWidget::StrongFocus);
// Rulers // Rulers
vRuler = new KoRuler(pRightSide, m_pCanvas, Qt::Vertical, Kivio::Config::defaultPageLayout(), vRuler = new KoRuler(pRightSide, m_pCanvas, Qt::Vertical, Kivio::Config::defaultPageLayout(),
@ -254,7 +254,7 @@ KivioView::KivioView( TQWidget *_parent, const char *_name, KivioDoc* doc )
layout->setRowStretch(1, 10); layout->setRowStretch(1, 10);
layout->setColStretch(1, 10); layout->setColStretch(1, 10);
TQWidget::setFocusPolicy( TQ_StrongFocus ); TQWidget::setFocusPolicy( TQWidget::StrongFocus );
setFocusProxy( m_pCanvas ); setFocusProxy( m_pCanvas );
connect( TQT_TQOBJECT(this), TQT_SIGNAL( invalidated() ), m_pCanvas, TQT_SLOT( update() ) ); connect( TQT_TQOBJECT(this), TQT_SIGNAL( invalidated() ), m_pCanvas, TQT_SLOT( update() ) );

@ -216,7 +216,7 @@ Navigator::Navigator(bool _selectable, TDEPopupMenu * menu, IconSidePane *_icons
executedItem = 0; executedItem = 0;
mMouseOn = 0; mMouseOn = 0;
setFocusPolicy( TQ_NoFocus ); setFocusPolicy( TQWidget::NoFocus );
connect( this, TQT_SIGNAL( clicked( TQListBoxItem* ) ), connect( this, TQT_SIGNAL( clicked( TQListBoxItem* ) ),
TQT_SLOT( slotExecuted( TQListBoxItem* ) ) ); TQT_SLOT( slotExecuted( TQListBoxItem* ) ) );
@ -495,7 +495,7 @@ int IconSidePane::insertGroup(const TQString &_text, bool _selectable, TQObject
m_buttongroup->insert( b, id ); m_buttongroup->insert( b, id );
connect( b, TQT_SIGNAL( clicked() ), this, TQT_SLOT( buttonClicked() ) ); connect( b, TQT_SIGNAL( clicked() ), this, TQT_SLOT( buttonClicked() ) );
b->setToggleButton( true ); b->setToggleButton( true );
b->setFocusPolicy( TQ_NoFocus ); b->setFocusPolicy( TQWidget::NoFocus );
if (m_buttongroup->count()==1) if (m_buttongroup->count()==1)
{ {
mCurrentNavigator->calculateMinWidth(); mCurrentNavigator->calculateMinWidth();

@ -90,7 +90,7 @@ DateTable::DateTable(TQWidget *parent, TQDate date_, const char* name, WFlags f)
kdError() <<k_funcinfo<<"Given date is invalid, using current date." << endl; kdError() <<k_funcinfo<<"Given date is invalid, using current date." << endl;
date_=TQDate::currentDate(); date_=TQDate::currentDate();
} }
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
setNumCols(7+m_dateStartCol); // 7 days a week + maybe 1 for weeknumbers setNumCols(7+m_dateStartCol); // 7 days a week + maybe 1 for weeknumbers
setNumRows(7); // 6 weeks max + headline setNumRows(7); // 6 weeks max + headline

@ -152,7 +152,7 @@ KPrCanvas::KPrCanvas( TQWidget *parent, const char *name, KPrView *_view )
hide(); hide();
} }
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
setFocus(); setFocus();
setKeyCompression( true ); setKeyCompression( true );
setInputMethodEnabled( true ); // ensure using the InputMethod setInputMethodEnabled( true ); // ensure using the InputMethod

@ -44,7 +44,7 @@ void KPrPicturePreview::drawContents( TQPainter *painter )
TQSize ext = contentsRect().size(); TQSize ext = contentsRect().size();
TQPixmap _pix = origPixmap; TQPixmap _pix = origPixmap;
TQImage img( _pix.convertToImage().smoothScale( ext.width(),ext.height(), TQ_ScaleMin ) ); TQImage img( _pix.convertToImage().smoothScale( ext.width(),ext.height(), TQImage::ScaleMin ) );
bool _horizontal = false; bool _horizontal = false;
bool _vertical = false; bool _vertical = false;

@ -545,7 +545,7 @@ TQPixmap KPrThumbBar::getSlideThumb(int slideNr) const
h = 130; h = 130;
} }
const TQImage img(pix.convertToImage().smoothScale( w, h, TQ_ScaleMin )); const TQImage img(pix.convertToImage().smoothScale( w, h, TQImage::ScaleMin ));
pix.convertFromImage(img); pix.convertFromImage(img);
// draw a frame around the thumb to show its size // draw a frame around the thumb to show its size

@ -83,7 +83,7 @@ void KPrEffectPreview::setPixmap( const TQPixmap& pixmap )
setMinimumSize( w, h ); setMinimumSize( w, h );
// create smaller pixmap for preview // create smaller pixmap for preview
const TQImage img( pixmap.convertToImage().smoothScale( w, h, TQ_ScaleFree ) ); const TQImage img( pixmap.convertToImage().smoothScale( w, h, TQImage::ScaleFree ) );
m_pixmap.convertFromImage( img ); m_pixmap.convertFromImage( img );
TQLabel::setPixmap( m_pixmap ); TQLabel::setPixmap( m_pixmap );

@ -1575,7 +1575,7 @@ void KPrView::startScreenPres( int pgNum /*1-based*/ )
m_canvas->reparent( ( TQWidget* )0L, 0, TQPoint( 0, 0 ), FALSE ); m_canvas->reparent( ( TQWidget* )0L, 0, TQPoint( 0, 0 ), FALSE );
m_canvas->setPaletteBackgroundColor( TQt::white ); m_canvas->setPaletteBackgroundColor( TQt::white );
m_canvas->showFullScreen(); m_canvas->showFullScreen();
m_canvas->setFocusPolicy( TQ_StrongFocus ); m_canvas->setFocusPolicy( TQWidget::StrongFocus );
if ( !kPresenterDoc()->spManualSwitch() ) if ( !kPresenterDoc()->spManualSwitch() )
{ {

@ -213,7 +213,7 @@ Canvas::Canvas (View *_view)
d->chooseCell = false; d->chooseCell = false;
d->validationInfo = 0L; d->validationInfo = 0L;
TQWidget::setFocusPolicy( TQ_StrongFocus ); TQWidget::setFocusPolicy( TQWidget::StrongFocus );
d->dragStart = TQPoint( -1, -1 ); d->dragStart = TQPoint( -1, -1 );
d->dragging = false; d->dragging = false;

@ -1960,7 +1960,7 @@ void View::initView()
// The line-editor that appears above the sheet and allows to // The line-editor that appears above the sheet and allows to
// edit the cells content. It knows about the two buttons. // edit the cells content. It knows about the two buttons.
d->editWidget = new EditWidget( d->toolWidget, d->canvas, d->cancelButton, d->okButton ); d->editWidget = new EditWidget( d->toolWidget, d->canvas, d->cancelButton, d->okButton );
d->editWidget->setFocusPolicy( TQ_StrongFocus ); d->editWidget->setFocusPolicy( TQWidget::StrongFocus );
d->formulaBarLayout->addWidget( d->editWidget, 2 ); d->formulaBarLayout->addWidget( d->editWidget, 2 );
d->formulaBarLayout->addSpacing( 2 ); d->formulaBarLayout->addSpacing( 2 );
@ -1971,8 +1971,8 @@ void View::initView()
d->hBorderWidget->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum ); d->hBorderWidget->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum );
d->vBorderWidget->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Expanding ); d->vBorderWidget->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Expanding );
d->canvas->setFocusPolicy( TQ_StrongFocus ); d->canvas->setFocusPolicy( TQWidget::StrongFocus );
TQWidget::setFocusPolicy( TQ_StrongFocus ); TQWidget::setFocusPolicy( TQWidget::StrongFocus );
setFocusProxy( d->canvas ); setFocusProxy( d->canvas );
connect( this, TQT_SIGNAL( invalidated() ), d->canvas, TQT_SLOT( update() ) ); connect( this, TQT_SIGNAL( invalidated() ), d->canvas, TQT_SLOT( update() ) );

@ -82,7 +82,7 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
calc_display->setFrameStyle( TQFrame::WinPanel | TQFrame::Sunken ); calc_display->setFrameStyle( TQFrame::WinPanel | TQFrame::Sunken );
calc_display->setAlignment( AlignRight|AlignVCenter ); calc_display->setAlignment( AlignRight|AlignVCenter );
calc_display->setFocus(); calc_display->setFocus();
calc_display->setFocusPolicy( TQ_StrongFocus ); calc_display->setFocusPolicy( TQWidget::StrongFocus );
connect(calc_display,TQT_SIGNAL(clicked()),this,TQT_SLOT(display_selected())); connect(calc_display,TQT_SIGNAL(clicked()),this,TQT_SLOT(display_selected()));

@ -88,7 +88,7 @@ KudesignerView::KudesignerView( KudesignerDoc* part, TQWidget* parent, const cha
l->addWidget( m_view ); l->addWidget( m_view );
m_view->viewport() ->setFocusProxy( m_view ); m_view->viewport() ->setFocusProxy( m_view );
m_view->viewport() ->setFocusPolicy( TQ_WheelFocus ); m_view->viewport() ->setFocusPolicy( TQWidget::WheelFocus );
m_view->setFocus(); m_view->setFocus();
m_view->itemToInsert = 0; m_view->itemToInsert = 0;

@ -36,7 +36,7 @@ KugarView::KugarView( KugarPart *part, TQWidget *parent, const char *name )
( new TQVBoxLayout( this ) ) ->setAutoAdd( true ); ( new TQVBoxLayout( this ) ) ->setAutoAdd( true );
view = new Kugar::MReportViewer( part->reportEngine(), this ); view = new Kugar::MReportViewer( part->reportEngine(), this );
view -> setFocusPolicy( TQ_ClickFocus ); view -> setFocusPolicy( TQWidget::ClickFocus );
view -> show(); view -> show();
// setWidget(view); // setWidget(view);

@ -115,7 +115,7 @@ KWCanvas::KWCanvas(const TQString& viewMode, TQWidget *parent, KWDocument *d, KW
this, TQT_SLOT( doAutoScroll() ) ); this, TQT_SLOT( doAutoScroll() ) );
viewport()->setFocusProxy( this ); viewport()->setFocusProxy( this );
viewport()->setFocusPolicy( TQ_WheelFocus ); viewport()->setFocusPolicy( TQWidget::WheelFocus );
setInputMethodEnabled( true ); setInputMethodEnabled( true );
setFocus(); setFocus();
viewport()->installEventFilter( this ); viewport()->installEventFilter( this );

@ -7662,7 +7662,7 @@ KWGUI::KWGUI( const TQString& viewMode, TQWidget *parent, KWView *daView )
setKeyCompression( TRUE ); setKeyCompression( TRUE );
setAcceptDrops( TRUE ); setAcceptDrops( TRUE );
setFocusPolicy( TQ_NoFocus ); setFocusPolicy( TQWidget::NoFocus );
} }
void KWGUI::showGUI() void KWGUI::showGUI()

@ -44,7 +44,7 @@ KFormulaWidget::KFormulaWidget(Container* doc, TQWidget* parent, const char* nam
connect(&formulaView, TQT_SIGNAL(cursorChanged(bool, bool)), connect(&formulaView, TQT_SIGNAL(cursorChanged(bool, bool)),
this, TQT_SLOT(slotCursorChanged(bool, bool))); this, TQT_SLOT(slotCursorChanged(bool, bool)));
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
setBackgroundMode(NoBackground/*TQWidget::PaletteBase*/); setBackgroundMode(NoBackground/*TQWidget::PaletteBase*/);
TQRect rect = doc->boundingRect(); TQRect rect = doc->boundingRect();

@ -112,7 +112,7 @@ KoTemplatesPane::KoTemplatesPane(TQWidget* parent, TDEInstance* instance,
for (KoTemplate* t = group->first(); t != 0L; t = group->next()) { for (KoTemplate* t = group->first(); t != 0L; t = group->next()) {
TDEListViewItem* item = new TDEListViewItem(m_documentList, t->name(), t->description(), t->file()); TDEListViewItem* item = new TDEListViewItem(m_documentList, t->name(), t->description(), t->file());
TQImage icon = t->loadPicture(instance).convertToImage(); TQImage icon = t->loadPicture(instance).convertToImage();
icon = icon.smoothScale(64, 64, TQ_ScaleMin); icon = icon.smoothScale(64, 64, TQImage::ScaleMin);
icon.setAlphaBuffer(true); icon.setAlphaBuffer(true);
icon = icon.copy((icon.width() - 64) / 2, (icon.height() - 64) / 2, 64, 64); icon = icon.copy((icon.width() - 64) / 2, (icon.height() - 64) / 2, 64, 64);
item->setPixmap(0, TQPixmap(icon)); item->setPixmap(0, TQPixmap(icon));
@ -418,7 +418,7 @@ void KoRecentDocumentsPane::updatePreview(const KFileItem* fileItem, const TQPix
if(it.current()->text(1) == fileItem->url().url()) { if(it.current()->text(1) == fileItem->url().url()) {
it.current()->setPixmap(2, preview); it.current()->setPixmap(2, preview);
TQImage icon = preview.convertToImage(); TQImage icon = preview.convertToImage();
icon = icon.smoothScale(64, 64, TQ_ScaleMin); icon = icon.smoothScale(64, 64, TQImage::ScaleMin);
icon.setAlphaBuffer(true); icon.setAlphaBuffer(true);
icon = icon.copy((icon.width() - 64) / 2, (icon.height() - 64) / 2, 64, 64); icon = icon.copy((icon.width() - 64) / 2, (icon.height() - 64) / 2, 64, 64);
it.current()->setPixmap(0, TQPixmap(icon)); it.current()->setPixmap(0, TQPixmap(icon));

@ -173,7 +173,7 @@ public:
TDEGlobal::iconLoader()->addAppDir("koffice"); TDEGlobal::iconLoader()->addAppDir("koffice");
m_view = 0L; m_view = 0L;
// Avoid warning from KParts - we'll have the KoView as focus proxy anyway // Avoid warning from KParts - we'll have the KoView as focus proxy anyway
setFocusPolicy( TQ_ClickFocus ); setFocusPolicy( TQWidget::ClickFocus );
} }
virtual ~KoViewWrapperWidget() { virtual ~KoViewWrapperWidget() {

@ -275,7 +275,7 @@ TQListViewItem* KoOpenPane::addPane(const TQString& title, const TQPixmap& icon,
TQImage image = icon.convertToImage(); TQImage image = icon.convertToImage();
if((image.width() > 48) || (image.height() > 48)) { if((image.width() > 48) || (image.height() > 48)) {
image = image.smoothScale(48, 48, TQ_ScaleMin); image = image.smoothScale(48, 48, TQImage::ScaleMin);
} }
image.setAlphaBuffer(true); image.setAlphaBuffer(true);

@ -61,7 +61,7 @@ const TQPixmap &KoTemplate::loadPicture( TDEInstance* instance ) {
} }
const int maxHeightWidth = 128; // ### TODO: some people would surely like to have 128x128 const int maxHeightWidth = 128; // ### TODO: some people would surely like to have 128x128
if (img.width() > maxHeightWidth || img.height() > maxHeightWidth) { if (img.width() > maxHeightWidth || img.height() > maxHeightWidth) {
img = img.smoothScale( maxHeightWidth, maxHeightWidth, TQ_ScaleMax ); img = img.smoothScale( maxHeightWidth, maxHeightWidth, TQImage::ScaleMax );
} }
m_pixmap.convertFromImage(img); m_pixmap.convertFromImage(img);
return m_pixmap; return m_pixmap;

@ -116,7 +116,7 @@ KoView::KoView( KoDocument *document, TQWidget *parent, const char *name )
d->m_doc = document; d->m_doc = document;
KParts::PartBase::setPartObject( TQT_TQOBJECT(this) ); KParts::PartBase::setPartObject( TQT_TQOBJECT(this) );
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
setMouseTracking( true ); setMouseTracking( true );

@ -388,7 +388,7 @@ KoContextHelpPopup::KoContextHelpPopup( TQWidget* parent )
setMinimumSize( 180, 180 ); setMinimumSize( 180, 180 );
m_isSticky = false; m_isSticky = false;
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
connect( m_close, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( wantsToBeClosed() ) ); connect( m_close, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( wantsToBeClosed() ) );
connect( m_sticky, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( setSticky( bool ) ) ); connect( m_sticky, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( setSticky( bool ) ) );

@ -148,7 +148,7 @@ KoPageLayoutDia::KoPageLayoutDia( TQWidget* parent, const char* name,
if ( tabs & FORMAT_AND_BORDERS ) setupTab1( true ); if ( tabs & FORMAT_AND_BORDERS ) setupTab1( true );
if ( tabs & HEADER_AND_FOOTER ) setupTab2( hf ); if ( tabs & HEADER_AND_FOOTER ) setupTab2( hf );
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
setFocus(); setFocus();
} }
@ -176,7 +176,7 @@ KoPageLayoutDia::KoPageLayoutDia( TQWidget* parent, const char* name,
if ( tabs & COLUMNS ) setupTab3(); if ( tabs & COLUMNS ) setupTab3();
if ( tabs & KW_HEADER_AND_FOOTER ) setupTab4(kwhf); if ( tabs & KW_HEADER_AND_FOOTER ) setupTab4(kwhf);
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
setFocus(); setFocus();
} }

@ -458,7 +458,7 @@ void KoColorPanel::finalizeInsertion( const Position& pos )
paint( pos ); paint( pos );
if ( !isFocusEnabled() ) if ( !isFocusEnabled() )
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
// Did we start a new row? // Did we start a new row?
if ( m_nextPosition.x == 1 ) if ( m_nextPosition.x == 1 )
updateGeometry(); updateGeometry();
@ -599,7 +599,7 @@ void KoColorPanel::paint( const Position& position )
void KoColorPanel::init() void KoColorPanel::init()
{ {
setFocusPolicy( TQ_NoFocus ); // it's empty setFocusPolicy( TQWidget::NoFocus ); // it's empty
m_nextPosition.x = 0; m_nextPosition.x = 0;
m_nextPosition.y = 0; m_nextPosition.y = 0;
m_focusPosition.x = -1; m_focusPosition.x = -1;

@ -97,7 +97,7 @@ TTDEToolBarButton::TTDEToolBarButton( const TQString& icon, const TQString& txt,
d->m_text = txt; d->m_text = txt;
d->m_instance = instance; d->m_instance = instance;
setFocusPolicy( TQ_NoFocus ); setFocusPolicy( TQWidget::NoFocus );
connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotClicked()) ); connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotClicked()) );
connect(this, TQT_SIGNAL(pressed()), TQT_SLOT(slotPressed()) ); connect(this, TQT_SIGNAL(pressed()), TQT_SLOT(slotPressed()) );
@ -115,7 +115,7 @@ TTDEToolBarButton::TTDEToolBarButton( const TQPixmap& pixmap, const TQString& tx
d = new TTDEToolBarButtonPrivate; d = new TTDEToolBarButtonPrivate;
d->m_text = txt; d->m_text = txt;
setFocusPolicy( TQ_NoFocus ); setFocusPolicy( TQWidget::NoFocus );
connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotClicked()) ); connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotClicked()) );
connect(this, TQT_SIGNAL(pressed()), TQT_SLOT(slotPressed()) ); connect(this, TQT_SIGNAL(pressed()), TQT_SLOT(slotPressed()) );

@ -48,22 +48,22 @@ KoCMYKWidget::KoCMYKWidget(TQWidget *parent, const char *name) : super(parent, n
mCSlider = new KoColorSlider(this); mCSlider = new KoColorSlider(this);
mCSlider->setMaximumHeight(20); mCSlider->setMaximumHeight(20);
mCSlider->slotSetRange(0, 255); mCSlider->slotSetRange(0, 255);
mCSlider->setFocusPolicy( TQ_ClickFocus ); mCSlider->setFocusPolicy( TQWidget::ClickFocus );
mMSlider = new KoColorSlider(this); mMSlider = new KoColorSlider(this);
mMSlider->setMaximumHeight(20); mMSlider->setMaximumHeight(20);
mMSlider->slotSetRange(0, 255); mMSlider->slotSetRange(0, 255);
mMSlider->setFocusPolicy( TQ_ClickFocus ); mMSlider->setFocusPolicy( TQWidget::ClickFocus );
mYSlider = new KoColorSlider(this); mYSlider = new KoColorSlider(this);
mYSlider->setMaximumHeight(20); mYSlider->setMaximumHeight(20);
mYSlider->slotSetRange(0, 255); mYSlider->slotSetRange(0, 255);
mYSlider->setFocusPolicy( TQ_ClickFocus ); mYSlider->setFocusPolicy( TQWidget::ClickFocus );
mKSlider = new KoColorSlider(this); mKSlider = new KoColorSlider(this);
mKSlider->setMaximumHeight(20); mKSlider->setMaximumHeight(20);
mKSlider->slotSetRange(0, 255); mKSlider->slotSetRange(0, 255);
mKSlider->setFocusPolicy( TQ_ClickFocus ); mKSlider->setFocusPolicy( TQWidget::ClickFocus );
/* setup slider labels */ /* setup slider labels */
mCLabel = new TQLabel("C", this); mCLabel = new TQLabel("C", this);
@ -83,25 +83,25 @@ KoCMYKWidget::KoCMYKWidget(TQWidget *parent, const char *name) : super(parent, n
mCIn = new TQSpinBox(0, 255, 1, this); mCIn = new TQSpinBox(0, 255, 1, this);
mCIn->setFixedWidth(50); mCIn->setFixedWidth(50);
mCIn->setFixedHeight(20); mCIn->setFixedHeight(20);
mCIn->setFocusPolicy( TQ_ClickFocus ); mCIn->setFocusPolicy( TQWidget::ClickFocus );
TQToolTip::add( mCIn, i18n( "Cyan" ) ); TQToolTip::add( mCIn, i18n( "Cyan" ) );
mMIn = new TQSpinBox(0, 255, 1, this); mMIn = new TQSpinBox(0, 255, 1, this);
mMIn->setFixedWidth(50); mMIn->setFixedWidth(50);
mMIn->setFixedHeight(20); mMIn->setFixedHeight(20);
mMIn->setFocusPolicy( TQ_ClickFocus ); mMIn->setFocusPolicy( TQWidget::ClickFocus );
TQToolTip::add( mMIn, i18n( "Magenta" ) ); TQToolTip::add( mMIn, i18n( "Magenta" ) );
mYIn = new TQSpinBox(0, 255, 1, this); mYIn = new TQSpinBox(0, 255, 1, this);
mYIn->setFixedWidth(50); mYIn->setFixedWidth(50);
mYIn->setFixedHeight(20); mYIn->setFixedHeight(20);
mYIn->setFocusPolicy( TQ_ClickFocus ); mYIn->setFocusPolicy( TQWidget::ClickFocus );
TQToolTip::add( mYIn, i18n( "Yellow" ) ); TQToolTip::add( mYIn, i18n( "Yellow" ) );
mKIn = new TQSpinBox(0, 255, 1, this); mKIn = new TQSpinBox(0, 255, 1, this);
mKIn->setFixedWidth(50); mKIn->setFixedWidth(50);
mKIn->setFixedHeight(20); mKIn->setFixedHeight(20);
mKIn->setFocusPolicy( TQ_ClickFocus ); mKIn->setFocusPolicy( TQWidget::ClickFocus );
TQToolTip::add( mKIn, i18n( "Black" ) ); TQToolTip::add( mKIn, i18n( "Black" ) );
mGrid->addMultiCellWidget(m_ColorButton, 0, 4, 0, 0, TQt::AlignTop); mGrid->addMultiCellWidget(m_ColorButton, 0, 4, 0, 0, TQt::AlignTop);

@ -41,7 +41,7 @@ KoGrayWidget::KoGrayWidget(TQWidget *parent, const char *name) : super(parent, n
/* setup color sliders */ /* setup color sliders */
mSlider = new KoColorSlider(this); mSlider = new KoColorSlider(this);
mSlider->setFocusPolicy( TQ_ClickFocus ); mSlider->setFocusPolicy( TQWidget::ClickFocus );
mSlider->setMaximumHeight(20); mSlider->setMaximumHeight(20);
mSlider->slotSetRange(0, 255); mSlider->slotSetRange(0, 255);
mSlider->slotSetColor1(TQColor(255, 255, 255)); mSlider->slotSetColor1(TQColor(255, 255, 255));
@ -56,7 +56,7 @@ KoGrayWidget::KoGrayWidget(TQWidget *parent, const char *name) : super(parent, n
mIn = new TQSpinBox(0, 255, 1, this); mIn = new TQSpinBox(0, 255, 1, this);
mIn->setFixedWidth(50); mIn->setFixedWidth(50);
mIn->setFixedHeight(20); mIn->setFixedHeight(20);
mIn->setFocusPolicy( TQ_ClickFocus ); mIn->setFocusPolicy( TQWidget::ClickFocus );
mGrid->addMultiCellWidget(m_ColorButton, 0, 3, 0, 0, TQt::AlignTop); mGrid->addMultiCellWidget(m_ColorButton, 0, 3, 0, 0, TQt::AlignTop);
mGrid->addWidget(mLabel, 0, 1); mGrid->addWidget(mLabel, 0, 1);

@ -56,17 +56,17 @@ KoHSVWidget::KoHSVWidget(TQWidget *parent, const char *name) : super(parent, nam
/* setup spin box */ /* setup spin box */
mHIn = new TQSpinBox(0, 359, 1, this); mHIn = new TQSpinBox(0, 359, 1, this);
mHIn->setFixedSize(50, 20); mHIn->setFixedSize(50, 20);
mHIn->setFocusPolicy( TQ_ClickFocus ); mHIn->setFocusPolicy( TQWidget::ClickFocus );
TQToolTip::add( mHIn, i18n( "Hue" ) ); TQToolTip::add( mHIn, i18n( "Hue" ) );
mSIn = new TQSpinBox(0, 255, 1, this); mSIn = new TQSpinBox(0, 255, 1, this);
mSIn->setFixedSize(50, 20); mSIn->setFixedSize(50, 20);
mSIn->setFocusPolicy( TQ_ClickFocus ); mSIn->setFocusPolicy( TQWidget::ClickFocus );
TQToolTip::add( mSIn, i18n( "Saturation" ) ); TQToolTip::add( mSIn, i18n( "Saturation" ) );
mVIn = new TQSpinBox(0, 255, 1, this); mVIn = new TQSpinBox(0, 255, 1, this);
mVIn->setFixedSize(50, 20); mVIn->setFixedSize(50, 20);
mVIn->setFocusPolicy( TQ_ClickFocus ); mVIn->setFocusPolicy( TQWidget::ClickFocus );
TQToolTip::add( mVIn, i18n( "Value (brightness)" ) ); TQToolTip::add( mVIn, i18n( "Value (brightness)" ) );
mGrid->addMultiCellWidget(m_ColorButton, 0, 0, 0, 1, TQt::AlignTop); mGrid->addMultiCellWidget(m_ColorButton, 0, 0, 0, 1, TQt::AlignTop);

@ -45,17 +45,17 @@ KoRGBWidget::KoRGBWidget(TQWidget *parent, const char *name) : super(parent, nam
mRSlider = new KoColorSlider(this); mRSlider = new KoColorSlider(this);
mRSlider->setMaximumHeight(20); mRSlider->setMaximumHeight(20);
mRSlider->slotSetRange(0, 255); mRSlider->slotSetRange(0, 255);
mRSlider->setFocusPolicy( TQ_ClickFocus ); mRSlider->setFocusPolicy( TQWidget::ClickFocus );
mGSlider = new KoColorSlider(this); mGSlider = new KoColorSlider(this);
mGSlider->setMaximumHeight(20); mGSlider->setMaximumHeight(20);
mGSlider->slotSetRange(0, 255); mGSlider->slotSetRange(0, 255);
mGSlider->setFocusPolicy( TQ_ClickFocus ); mGSlider->setFocusPolicy( TQWidget::ClickFocus );
mBSlider = new KoColorSlider(this); mBSlider = new KoColorSlider(this);
mBSlider->setMaximumHeight(20); mBSlider->setMaximumHeight(20);
mBSlider->slotSetRange(0, 255); mBSlider->slotSetRange(0, 255);
mBSlider->setFocusPolicy( TQ_ClickFocus ); mBSlider->setFocusPolicy( TQWidget::ClickFocus );
/* setup slider labels */ /* setup slider labels */
mRLabel = new TQLabel("R:", this); mRLabel = new TQLabel("R:", this);
@ -72,19 +72,19 @@ KoRGBWidget::KoRGBWidget(TQWidget *parent, const char *name) : super(parent, nam
mRIn = new TQSpinBox(0, 255, 1, this); mRIn = new TQSpinBox(0, 255, 1, this);
mRIn->setFixedWidth(50); mRIn->setFixedWidth(50);
mRIn->setFixedHeight(20); mRIn->setFixedHeight(20);
mRIn->setFocusPolicy( TQ_ClickFocus ); mRIn->setFocusPolicy( TQWidget::ClickFocus );
TQToolTip::add( mRIn, i18n( "Red" ) ); TQToolTip::add( mRIn, i18n( "Red" ) );
mGIn = new TQSpinBox(0, 255, 1, this); mGIn = new TQSpinBox(0, 255, 1, this);
mGIn->setFixedWidth(50); mGIn->setFixedWidth(50);
mGIn->setFixedHeight(20); mGIn->setFixedHeight(20);
mGIn->setFocusPolicy( TQ_ClickFocus ); mGIn->setFocusPolicy( TQWidget::ClickFocus );
TQToolTip::add( mGIn, i18n( "Green" ) ); TQToolTip::add( mGIn, i18n( "Green" ) );
mBIn = new TQSpinBox(0, 255, 1, this); mBIn = new TQSpinBox(0, 255, 1, this);
mBIn->setFixedWidth(50); mBIn->setFixedWidth(50);
mBIn->setFixedHeight(20); mBIn->setFixedHeight(20);
mBIn->setFocusPolicy( TQ_ClickFocus ); mBIn->setFocusPolicy( TQWidget::ClickFocus );
TQToolTip::add( mBIn, i18n( "Blue" ) ); TQToolTip::add( mBIn, i18n( "Blue" ) );
mGrid->addMultiCellWidget(m_ColorButton, 0, 3, 0, 0, TQt::AlignTop); mGrid->addMultiCellWidget(m_ColorButton, 0, 3, 0, 0, TQt::AlignTop);

@ -49,7 +49,7 @@ KoPalette::KoPalette(TQWidget * parent, const char * name)
setCloseMode( TQDockWindow::Never); setCloseMode( TQDockWindow::Never);
setResizeEnabled(true); setResizeEnabled(true);
setOpaqueMoving(true); setOpaqueMoving(true);
setFocusPolicy(TQ_NoFocus); setFocusPolicy(TQWidget::NoFocus);
setVerticallyStretchable(false); setVerticallyStretchable(false);
setHorizontallyStretchable(false); setHorizontallyStretchable(false);

@ -32,7 +32,7 @@ KoTabPalette::KoTabPalette(TQWidget * parent, const char * name)
{ {
m_page = new KTabWidget(this); m_page = new KTabWidget(this);
m_page->setTabShape(TQTabWidget::Triangular); m_page->setTabShape(TQTabWidget::Triangular);
m_page->setFocusPolicy(TQ_TabFocus); m_page->setFocusPolicy(TQWidget::TabFocus);
//m_page->setFont(m_font); //m_page->setFont(m_font);
m_page->setMargin(1); m_page->setMargin(1);
//m_page->setTabReorderingEnabled(true); //m_page->setTabReorderingEnabled(true);

@ -135,8 +135,8 @@ Editor::Editor(TQWidget *parent, bool autoSync, const char *name)
d->setListLater_list = 0; d->setListLater_list = 0;
d->undoButton = new TQPushButton(viewport()); d->undoButton = new TQPushButton(viewport());
d->undoButton->setFocusPolicy(TQ_NoFocus); d->undoButton->setFocusPolicy(TQWidget::NoFocus);
setFocusPolicy(TQ_ClickFocus); setFocusPolicy(TQWidget::ClickFocus);
d->undoButton->setMinimumSize(TQSize(5,5)); // allow to resize undoButton even below pixmap size d->undoButton->setMinimumSize(TQSize(5,5)); // allow to resize undoButton even below pixmap size
d->undoButton->setPixmap(SmallIcon("edit-undo")); d->undoButton->setPixmap(SmallIcon("edit-undo"));
TQToolTip::add(d->undoButton, i18n("Undo changes")); TQToolTip::add(d->undoButton, i18n("Undo changes"));

@ -42,7 +42,7 @@ BoolEdit::BoolEdit(Property *property, TQWidget *parent, const char *name)
{ {
m_toggle = new TQToolButton(this); m_toggle = new TQToolButton(this);
m_toggle->setToggleButton( true ); m_toggle->setToggleButton( true );
m_toggle->setFocusPolicy(TQ_WheelFocus); m_toggle->setFocusPolicy(TQWidget::WheelFocus);
m_toggle->setUsesTextLabel(true); m_toggle->setUsesTextLabel(true);
m_toggle->setTextPosition(TQToolButton::Right); m_toggle->setTextPosition(TQToolButton::Right);
m_toggle->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); m_toggle->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);

@ -34,7 +34,7 @@ ColorButton::ColorButton(Property *property, TQWidget *parent, const char *name)
{ {
TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0); TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0);
m_edit = new KColorCombo(this); m_edit = new KColorCombo(this);
m_edit->setFocusPolicy(TQ_NoFocus); m_edit->setFocusPolicy(TQWidget::NoFocus);
connect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotValueChanged(int))); connect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotValueChanged(int)));
m_edit->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); m_edit->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
m_edit->setMinimumHeight(5); m_edit->setMinimumHeight(5);

@ -52,7 +52,7 @@ class FontEditRequester : public TDEFontRequester
label()->setFrameShape(TQFrame::Box); label()->setFrameShape(TQFrame::Box);
label()->setIndent(-1); label()->setIndent(-1);
#if TDE_VERSION >= TDE_MAKE_VERSION(3,4,0) #if TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
label()->setFocusPolicy(TQ_ClickFocus); label()->setFocusPolicy(TQWidget::ClickFocus);
TDEAcceleratorManager::setNoAccel(label()); TDEAcceleratorManager::setNoAccel(label());
#endif #endif
layout()->remove(label()); layout()->remove(label());
@ -60,7 +60,7 @@ class FontEditRequester : public TDEFontRequester
delete layout(); delete layout();
button()->setText(i18n("...")); button()->setText(i18n("..."));
TQToolTip::add(button(), i18n("Change font")); TQToolTip::add(button(), i18n("Change font"));
button()->setFocusPolicy(TQ_NoFocus); button()->setFocusPolicy(TQWidget::NoFocus);
button()->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); button()->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
TQFontMetrics fm(button()->font()); TQFontMetrics fm(button()->font());
button()->setFixedWidth(fm.width(button()->text()+' ')); button()->setFixedWidth(fm.width(button()->text()+' '));

@ -70,7 +70,7 @@ PixmapEdit::PixmapEdit(Property *property, TQWidget *parent, const char *name)
m_button->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); m_button->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
TQFontMetrics fm(m_button->font()); TQFontMetrics fm(m_button->font());
m_button->setFixedWidth(fm.width(m_button->text()+' ')); m_button->setFixedWidth(fm.width(m_button->text()+' '));
m_button->setFocusPolicy(TQ_NoFocus); m_button->setFocusPolicy(TQWidget::NoFocus);
m_popup = new TQLabel(0, "m_popup", TQt::WStyle_Customize|TQt::WStyle_NoBorder|TQt::WX11BypassWM|WStyle_StaysOnTop); m_popup = new TQLabel(0, "m_popup", TQt::WStyle_Customize|TQt::WStyle_NoBorder|TQt::WX11BypassWM|WStyle_StaysOnTop);
m_popup->setPaletteBackgroundColor(m_popup->palette().active().base()); m_popup->setPaletteBackgroundColor(m_popup->palette().active().base());
@ -105,13 +105,13 @@ PixmapEdit::setValue(const TQVariant &value, bool emitChange)
else { else {
TQImage img(m_pixmap.convertToImage()); TQImage img(m_pixmap.convertToImage());
if (!TQRect(TQPoint(0,0), m_edit->size()*3).contains(m_pixmap.rect())) { if (!TQRect(TQPoint(0,0), m_edit->size()*3).contains(m_pixmap.rect())) {
img = img.smoothScale(m_edit->size()*3, TQ_ScaleMin); img = img.smoothScale(m_edit->size()*3, TQImage::ScaleMin);
m_previewPixmap.convertFromImage(img);//preview pixmap is a bit larger m_previewPixmap.convertFromImage(img);//preview pixmap is a bit larger
} }
else { else {
m_previewPixmap = m_pixmap; m_previewPixmap = m_pixmap;
} }
img = img.smoothScale(m_edit->size(), TQ_ScaleMin); img = img.smoothScale(m_edit->size(), TQImage::ScaleMin);
TQPixmap pm; TQPixmap pm;
pm.convertFromImage(img); pm.convertFromImage(img);
m_edit->setPixmap(pm); m_edit->setPixmap(pm);
@ -135,7 +135,7 @@ PixmapEdit::drawViewer(TQPainter *p, const TQColorGroup &, const TQRect &r, cons
m_scaledPixmap = value.toPixmap(); m_scaledPixmap = value.toPixmap();
if (m_scaledPixmap.height() > r2.height() || m_scaledPixmap.width() > r2.width()) { //scale down if (m_scaledPixmap.height() > r2.height() || m_scaledPixmap.width() > r2.width()) { //scale down
TQImage img(m_scaledPixmap.convertToImage()); TQImage img(m_scaledPixmap.convertToImage());
img = img.smoothScale(r2.size()/*+TQSize(0,2)*/, TQ_ScaleMin); img = img.smoothScale(r2.size()/*+TQSize(0,2)*/, TQImage::ScaleMin);
m_scaledPixmap.convertFromImage(img); m_scaledPixmap.convertFromImage(img);
} }
} }

@ -39,7 +39,7 @@ PointEdit::PointEdit(Property *property, TQWidget *parent, const char *name)
{ {
setHasBorders(false); setHasBorders(false);
m_edit = new KActiveLabel(this); m_edit = new KActiveLabel(this);
m_edit->setFocusPolicy(TQ_NoFocus); m_edit->setFocusPolicy(TQWidget::NoFocus);
// m_edit->setIndent(KPROPEDITOR_ITEM_MARGIN); // m_edit->setIndent(KPROPEDITOR_ITEM_MARGIN);
m_edit->setPaletteBackgroundColor(palette().active().base()); m_edit->setPaletteBackgroundColor(palette().active().base());
m_edit->setWordWrap( TQTextEdit::NoWrap ); m_edit->setWordWrap( TQTextEdit::NoWrap );

@ -38,7 +38,7 @@ RectEdit::RectEdit(Property *property, TQWidget *parent, const char *name)
{ {
setHasBorders(false); setHasBorders(false);
m_edit = new KActiveLabel(this); m_edit = new KActiveLabel(this);
m_edit->setFocusPolicy(TQ_NoFocus); m_edit->setFocusPolicy(TQWidget::NoFocus);
m_edit->setPaletteBackgroundColor(palette().active().base()); m_edit->setPaletteBackgroundColor(palette().active().base());
m_edit->setWordWrap( TQTextEdit::NoWrap ); m_edit->setWordWrap( TQTextEdit::NoWrap );
m_edit->setMinimumHeight(5); m_edit->setMinimumHeight(5);

@ -39,7 +39,7 @@ SizeEdit::SizeEdit(Property *property, TQWidget *parent, const char *name)
{ {
setHasBorders(false); setHasBorders(false);
m_edit = new KActiveLabel(this); m_edit = new KActiveLabel(this);
m_edit->setFocusPolicy(TQ_NoFocus); m_edit->setFocusPolicy(TQWidget::NoFocus);
// m_edit->setIndent(KPROPEDITOR_ITEM_MARGIN); // m_edit->setIndent(KPROPEDITOR_ITEM_MARGIN);
m_edit->setPaletteBackgroundColor(palette().active().base()); m_edit->setPaletteBackgroundColor(palette().active().base());
// m_edit->setBackgroundMode(TQt::PaletteBase); // m_edit->setBackgroundMode(TQt::PaletteBase);

@ -152,7 +152,7 @@ void
Widget::setFocusWidget(TQWidget*focusProxy) Widget::setFocusWidget(TQWidget*focusProxy)
{ {
if (focusProxy) { if (focusProxy) {
if (focusProxy->focusPolicy() != TQ_NoFocus) if (focusProxy->focusPolicy() != TQWidget::NoFocus)
setFocusProxy(focusProxy); setFocusProxy(focusProxy);
focusProxy->installEventFilter(this); focusProxy->installEventFilter(this);
} }

@ -52,7 +52,7 @@ KoCompletionBox::KoCompletionBox( TQWidget * parent, const char * name, WFlags f
: TQLabel(parent,name,f) : TQLabel(parent,name,f)
{ {
setBackgroundColor(TQColor("#FFFFE6")); setBackgroundColor(TQColor("#FFFFE6"));
setFocusPolicy(TQ_NoFocus); setFocusPolicy(TQWidget::NoFocus);
setFrameShape(TQFrame::Box); setFrameShape(TQFrame::Box);
} }

Loading…
Cancel
Save