Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/27/head
Michele Calgaro 1 year ago
parent 942d671706
commit 88de09b6cc
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -424,7 +424,7 @@ bool SlotItem::ignoreSlot( const char* slot ) const
if ( qstrcmp( slot, "setFocus()" ) == 0 )
if ( lastReceiver->isWidgetType() &&
( (TQWidget*)lastReceiver )->focusPolicy() == TQ_NoFocus )
( (TQWidget*)lastReceiver )->focusPolicy() == TQWidget::NoFocus )
return TRUE;
return FALSE;

@ -169,7 +169,7 @@ void FormWindow::init()
unclippedPainter = 0;
widgetPressed = FALSE;
drawRubber = FALSE;
setFocusPolicy( TQ_ClickFocus );
setFocusPolicy( TQWidget::ClickFocus );
sizePreviewLabel = 0;
checkSelectionsTimer = new TQTimer( this, "checkSelectionsTimer" );
connect( checkSelectionsTimer, TQT_SIGNAL( timeout() ),
@ -1779,7 +1779,7 @@ void FormWindow::showOrderIndicators()
TQWidget* w = (TQWidget*) o;
if ( w->isShown() &&
insertedWidgets[ (void*)w ] &&
w->focusPolicy() != TQ_NoFocus ) {
w->focusPolicy() != TQWidget::NoFocus ) {
OrderIndicator* ind = new OrderIndicator( order++, w, this );
orderIndicators.append( ind );
if ( stackedWidgets.findRef( w ) == -1 )
@ -2758,7 +2758,7 @@ void FormWindow::setFormFile( FormFile *f )
bool FormWindow::canBeBuddy( const TQWidget *w ) const
{
return w->focusPolicy() != TQ_NoFocus;
return w->focusPolicy() != TQWidget::NoFocus;
}
bool FormWindow::event( TQEvent *e )

@ -281,7 +281,7 @@ MainWindow::MainWindow( KDevDesignerPart *part, bool asClient, bool single, cons
if ( autoSaveEnabled )
autoSaveTimer->start( autoSaveInterval * 1000 );
setFocusPolicy( TQ_StrongFocus );
setFocusPolicy( TQWidget::StrongFocus );
}
MainWindow::~MainWindow()

@ -152,7 +152,7 @@ MenuBarEditor::MenuBarEditor( FormWindow * fw, TQWidget * parent, const char * n
hasSeparator( FALSE )
{
setAcceptDrops( TRUE );
setFocusPolicy( TQ_StrongFocus );
setFocusPolicy( TQWidget::StrongFocus );
addItem.setMenuText( i18n("new menu") );
addSeparator.setMenuText( i18n("new separator") );

@ -304,7 +304,7 @@ void PopupMenuEditor::init()
addSeparator.action()->setMenuText( i18n("new separator") );
setAcceptDrops( TRUE );
setFocusPolicy( TQ_StrongFocus );
setFocusPolicy( TQWidget::StrongFocus );
lineEdit = new TQLineEdit( this );
lineEdit->hide();

@ -37,7 +37,7 @@ PreviewWidget::PreviewWidget( TQWidget *parent, const char *name )
while ((obj = it.current()) != 0) {
++it;
obj->installEventFilter(this);
((TQWidget*)obj)->setFocusPolicy(TQ_NoFocus);
((TQWidget*)obj)->setFocusPolicy(TQWidget::NoFocus);
}
}

@ -285,7 +285,7 @@ DbgToolBar::DbgToolBar(DebuggerPart* part,
// KWin::setType(winId(), NET::Override); // So it has no decoration
KWin::setType(winId(), NET::Dock);
setFocusPolicy(TQ_NoFocus);
setFocusPolicy(TQWidget::NoFocus);
setFrameStyle( TQFrame::Box | TQFrame::Plain );
setLineWidth(4);
setMidLineWidth(0);

@ -284,7 +284,7 @@ DbgToolBar::DbgToolBar(RubyDebuggerPart* part,
// KWin::setType(winId(), NET::Override); // So it has no decoration
KWin::setType(winId(), NET::Dock);
setFocusPolicy(TQ_NoFocus);
setFocusPolicy(TQWidget::NoFocus);
setFrameStyle( TQFrame::Box | TQFrame::Plain );
setLineWidth(4);
setMidLineWidth(0);

@ -95,7 +95,7 @@ void tqt_leave_modal( TQWidget *widget );
void BlockingTDEProcess::enter_loop()
{
TQWidget dummy(0,0,WType_Dialog | WShowModal);
dummy.setFocusPolicy( TQ_NoFocus );
dummy.setFocusPolicy( TQWidget::NoFocus );
tqt_enter_modal(&dummy);
tqApp->enter_loop();
tqt_leave_modal(&dummy);

@ -48,7 +48,7 @@ void KDevShellWidget::activate( )
connect( m_konsolePart, TQT_SIGNAL( receivedData( const TQString& ) ), this, TQT_SIGNAL( receivedData( const TQString& ) ) );
connect( m_konsolePart, TQT_SIGNAL(destroyed()), this, TQT_SLOT(partDestroyed()) );
m_konsolePart->widget()->setFocusPolicy( TQ_WheelFocus );
m_konsolePart->widget()->setFocusPolicy( TQWidget::WheelFocus );
setFocusProxy( m_konsolePart->widget() );
m_konsolePart->widget()->setFocus();

@ -106,7 +106,7 @@ void ProcessListBoxItem::paint(TQPainter *p)
ProcessWidget::ProcessWidget(TQWidget *parent, const char *name)
: TDEListBox(parent, name)
{
setFocusPolicy(TQ_NoFocus);
setFocusPolicy(TQWidget::NoFocus);
// Don't override the palette, as that can mess up styles. Instead, draw
// the background ourselves (see ProcessListBoxItem::paint).

@ -158,7 +158,7 @@ QComboView::QComboView( bool rw, TQWidget *parent, const char *name )
d->completeNow = FALSE;
d->completionTimer = new TQTimer( this );
setFocusPolicy( TQ_StrongFocus );
setFocusPolicy( TQWidget::StrongFocus );
d->ed = 0;
if ( rw )
@ -1359,7 +1359,7 @@ void QComboView::setEditable( bool y )
d->ed = 0;
}
setFocusPolicy( TQ_StrongFocus );
setFocusPolicy( TQWidget::StrongFocus );
updateGeometry();
update();
}
@ -1443,7 +1443,7 @@ void QComboView::setLineEdit( TQLineEdit *edit )
d->updateLinedGeometry();
edit->installEventFilter( this );
setFocusProxy( edit );
setFocusPolicy( TQ_StrongFocus );
setFocusPolicy( TQWidget::StrongFocus );
setUpListView();

@ -89,7 +89,7 @@ void MyPushButton::mouseMoveEvent( TQMouseEvent * e )
MyPushButton::MyPushButton( ResizableCombo * parent, const char * name )
:TQPushButton(parent, name), m_resizing(false), m_combo(parent)
{
setFocusPolicy(TQ_NoFocus);
setFocusPolicy(TQWidget::NoFocus);
setFlat(true);
m_width = m_combo->m_combo->width();
}

@ -162,7 +162,7 @@ FileGroupsWidget::FileGroupsWidget(FileGroupsPart *part)
*/
LocationID=-1;
setFocusPolicy(TQ_ClickFocus);
setFocusPolicy(TQWidget::ClickFocus);
setRootIsDecorated(true);
setResizeMode(TQListView::LastColumn);
setSorting(-1);

@ -58,7 +58,7 @@ void KonsoleViewWidget::activate()
if (!part)
return;
part->widget()->setFocusPolicy(TQ_WheelFocus);
part->widget()->setFocusPolicy(TQWidget::WheelFocus);
setFocusProxy(part->widget());
part->widget()->setFocus();

@ -47,7 +47,7 @@ Button::Button(ButtonBar *parent, const TQString text, const TQIconSet &icon,
hide();
setFlat(true);
setToggleButton(true);
setFocusPolicy(TQ_NoFocus);
setFocusPolicy(TQWidget::NoFocus);
setDescription(m_description);
setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum);
resize(sizeHint());

@ -29,7 +29,7 @@
DTabWidget::DTabWidget(TQWidget *parent, const char *name)
:KTabWidget(parent, name), m_closeButton(0)
{
setFocusPolicy(TQ_NoFocus);
setFocusPolicy(TQWidget::NoFocus);
setMargin(0);
loadSettings();

@ -64,7 +64,7 @@ SvnLogViewWidget::SvnLogViewWidget(subversionPart *part, TQWidget *parent)
TQFont textEdit1_font( textEdit1->font() );
textEdit1_font.setPointSize( 9 );
textEdit1->setFont( textEdit1_font );
textEdit1->setFocusPolicy( TQ_WheelFocus );
textEdit1->setFocusPolicy( TQWidget::WheelFocus );
textEdit1->setReadOnly( TRUE );
m_layout->addWidget( splitter1, 0, 0 );

Loading…
Cancel
Save