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 ( qstrcmp( slot, "setFocus()" ) == 0 )
if ( lastReceiver->isWidgetType() && if ( lastReceiver->isWidgetType() &&
( (TQWidget*)lastReceiver )->focusPolicy() == TQ_NoFocus ) ( (TQWidget*)lastReceiver )->focusPolicy() == TQWidget::NoFocus )
return TRUE; return TRUE;
return FALSE; return FALSE;

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

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

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

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

@ -37,7 +37,7 @@ PreviewWidget::PreviewWidget( TQWidget *parent, const char *name )
while ((obj = it.current()) != 0) { while ((obj = it.current()) != 0) {
++it; ++it;
obj->installEventFilter(this); 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::Override); // So it has no decoration
KWin::setType(winId(), NET::Dock); KWin::setType(winId(), NET::Dock);
setFocusPolicy(TQ_NoFocus); setFocusPolicy(TQWidget::NoFocus);
setFrameStyle( TQFrame::Box | TQFrame::Plain ); setFrameStyle( TQFrame::Box | TQFrame::Plain );
setLineWidth(4); setLineWidth(4);
setMidLineWidth(0); setMidLineWidth(0);

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

@ -95,7 +95,7 @@ void tqt_leave_modal( TQWidget *widget );
void BlockingTDEProcess::enter_loop() void BlockingTDEProcess::enter_loop()
{ {
TQWidget dummy(0,0,WType_Dialog | WShowModal); TQWidget dummy(0,0,WType_Dialog | WShowModal);
dummy.setFocusPolicy( TQ_NoFocus ); dummy.setFocusPolicy( TQWidget::NoFocus );
tqt_enter_modal(&dummy); tqt_enter_modal(&dummy);
tqApp->enter_loop(); tqApp->enter_loop();
tqt_leave_modal(&dummy); 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( receivedData( const TQString& ) ), this, TQT_SIGNAL( receivedData( const TQString& ) ) );
connect( m_konsolePart, TQT_SIGNAL(destroyed()), this, TQT_SLOT(partDestroyed()) ); 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() ); setFocusProxy( m_konsolePart->widget() );
m_konsolePart->widget()->setFocus(); m_konsolePart->widget()->setFocus();

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

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

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

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

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

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

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

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

Loading…
Cancel
Save