Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/86/head
Michele Calgaro 1 year ago
parent 6e5a971f6b
commit 84129a6fad
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -224,7 +224,7 @@ View::View( Part *part, TQWidget *parent, ActionManagerImpl* actionManager, cons
m_shuttingDown = false; m_shuttingDown = false;
m_displayingAboutPage = false; m_displayingAboutPage = false;
m_currentFrame = 0L; m_currentFrame = 0L;
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
TQVBoxLayout *lt = new TQVBoxLayout( this ); TQVBoxLayout *lt = new TQVBoxLayout( this );

@ -51,7 +51,7 @@ KAddressbookPart::KAddressbookPart( TQWidget *parentWidget, const char *widgetNa
// create a canvas to insert our widget // create a canvas to insert our widget
TQWidget *canvas = new TQWidget( parentWidget, widgetName ); TQWidget *canvas = new TQWidget( parentWidget, widgetName );
canvas->setFocusPolicy( TQ_ClickFocus ); canvas->setFocusPolicy( TQWidget::ClickFocus );
setWidget( canvas ); setWidget( canvas );
TQVBoxLayout *topLayout = new TQVBoxLayout( canvas ); TQVBoxLayout *topLayout = new TQVBoxLayout( canvas );

@ -587,7 +587,7 @@ CardView::CardView( TQWidget *parent, const char *name )
viewport()->setMouseTracking( true ); viewport()->setMouseTracking( true );
viewport()->setFocusProxy( this ); viewport()->setFocusProxy( this );
viewport()->setFocusPolicy(TQ_WheelFocus ); viewport()->setFocusPolicy(TQWidget::WheelFocus );
viewport()->setBackgroundMode( PaletteBase ); viewport()->setBackgroundMode( PaletteBase );
connect( d->mTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( tryShowFullText() ) ); connect( d->mTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( tryShowFullText() ) );

@ -44,7 +44,7 @@ void CheckBox::setReadOnly(bool ro)
if ((int)ro != (int)mReadOnly) if ((int)ro != (int)mReadOnly)
{ {
mReadOnly = ro; mReadOnly = ro;
setFocusPolicy(ro ? TQ_NoFocus : mFocusPolicy); setFocusPolicy(ro ? TQWidget::NoFocus : mFocusPolicy);
if (ro) if (ro)
clearFocus(); clearFocus();
} }

@ -80,7 +80,7 @@ class CheckBox : public TQCheckBox
protected slots: protected slots:
void slotClicked(); void slotClicked();
private: private:
TQ_FocusPolicy mFocusPolicy; // default focus policy for the TQCheckBox TQWidget::FocusPolicy mFocusPolicy; // default focus policy for the TQCheckBox
TQWidget* mFocusWidget; // widget to receive focus when button is clicked on TQWidget* mFocusWidget; // widget to receive focus when button is clicked on
bool mFocusWidgetEnable; // enable focus widget before setting focus bool mFocusWidgetEnable; // enable focus widget before setting focus
bool mReadOnly; // value cannot be changed bool mReadOnly; // value cannot be changed

@ -106,7 +106,7 @@ void Label::activated()
LabelFocusWidget::LabelFocusWidget(TQWidget* parent, const char* name) LabelFocusWidget::LabelFocusWidget(TQWidget* parent, const char* name)
: TQWidget(parent, name) : TQWidget(parent, name)
{ {
setFocusPolicy(TQ_ClickFocus); setFocusPolicy(TQWidget::ClickFocus);
setFixedSize(TQSize(1,1)); setFixedSize(TQSize(1,1));
} }

@ -44,7 +44,7 @@ void PushButton::setReadOnly(bool ro)
if ((int)ro != (int)mReadOnly) if ((int)ro != (int)mReadOnly)
{ {
mReadOnly = ro; mReadOnly = ro;
setFocusPolicy(ro ? TQ_NoFocus : mFocusPolicy); setFocusPolicy(ro ? TQWidget::NoFocus : mFocusPolicy);
if (ro) if (ro)
clearFocus(); clearFocus();
} }

@ -71,7 +71,7 @@ class PushButton : public TQPushButton
virtual void keyPressEvent(TQKeyEvent*); virtual void keyPressEvent(TQKeyEvent*);
virtual void keyReleaseEvent(TQKeyEvent*); virtual void keyReleaseEvent(TQKeyEvent*);
private: private:
TQ_FocusPolicy mFocusPolicy; // default focus policy for the TQPushButton TQWidget::FocusPolicy mFocusPolicy; // default focus policy for the TQPushButton
bool mReadOnly; // value cannot be changed bool mReadOnly; // value cannot be changed
}; };

@ -44,7 +44,7 @@ void RadioButton::setReadOnly(bool ro)
if ((int)ro != (int)mReadOnly) if ((int)ro != (int)mReadOnly)
{ {
mReadOnly = ro; mReadOnly = ro;
setFocusPolicy(ro ? TQ_NoFocus : mFocusPolicy); setFocusPolicy(ro ? TQWidget::NoFocus : mFocusPolicy);
if (ro) if (ro)
clearFocus(); clearFocus();
} }

@ -80,7 +80,7 @@ class RadioButton : public TQRadioButton
protected slots: protected slots:
void slotClicked(); void slotClicked();
private: private:
TQ_FocusPolicy mFocusPolicy; // default focus policy for the TQRadioButton TQWidget::FocusPolicy mFocusPolicy; // default focus policy for the TQRadioButton
TQWidget* mFocusWidget; // widget to receive focus when button is clicked on TQWidget* mFocusWidget; // widget to receive focus when button is clicked on
bool mFocusWidgetEnable; // enable focus widget before setting focus bool mFocusWidgetEnable; // enable focus widget before setting focus
bool mReadOnly; // value cannot be changed bool mReadOnly; // value cannot be changed

@ -85,7 +85,7 @@ void SpinBox2::init()
mSpinbox->setSelectOnStep(false); // default mSpinbox->setSelectOnStep(false); // default
mUpdown2->setSelectOnStep(false); // always false mUpdown2->setSelectOnStep(false); // always false
setFocusProxy(mSpinbox); setFocusProxy(mSpinbox);
mUpdown2->setFocusPolicy(TQ_NoFocus); mUpdown2->setFocusPolicy(TQWidget::NoFocus);
mSpinMirror = new SpinMirror(mUpdown2, mUpdown2Frame, this); mSpinMirror = new SpinMirror(mUpdown2, mUpdown2Frame, this);
if (!mirrorStyle(style())) if (!mirrorStyle(style()))
mSpinMirror->hide(); // hide mirrored spin buttons when they are inappropriate mSpinMirror->hide(); // hide mirrored spin buttons when they are inappropriate

@ -510,7 +510,7 @@ void MessageWin::initView()
mOkButton = new KPushButton(KStdGuiItem::close(), topWidget); mOkButton = new KPushButton(KStdGuiItem::close(), topWidget);
// Prevent accidental acknowledgement of the message if the user is typing when the window appears // Prevent accidental acknowledgement of the message if the user is typing when the window appears
mOkButton->clearFocus(); mOkButton->clearFocus();
mOkButton->setFocusPolicy(TQ_ClickFocus); // don't allow keyboard selection mOkButton->setFocusPolicy(TQWidget::ClickFocus); // don't allow keyboard selection
mOkButton->setFixedSize(mOkButton->sizeHint()); mOkButton->setFixedSize(mOkButton->sizeHint());
connect(mOkButton, TQT_SIGNAL(clicked()), TQT_SLOT(close())); connect(mOkButton, TQT_SIGNAL(clicked()), TQT_SLOT(close()));
grid->addWidget(mOkButton, 0, gridIndex++, AlignHCenter); grid->addWidget(mOkButton, 0, gridIndex++, AlignHCenter);
@ -520,7 +520,7 @@ void MessageWin::initView()
{ {
// Edit button // Edit button
mEditButton = new TQPushButton(i18n("&Edit..."), topWidget); mEditButton = new TQPushButton(i18n("&Edit..."), topWidget);
mEditButton->setFocusPolicy(TQ_ClickFocus); // don't allow keyboard selection mEditButton->setFocusPolicy(TQWidget::ClickFocus); // don't allow keyboard selection
mEditButton->setFixedSize(mEditButton->sizeHint()); mEditButton->setFixedSize(mEditButton->sizeHint());
connect(mEditButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotEdit())); connect(mEditButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotEdit()));
grid->addWidget(mEditButton, 0, gridIndex++, AlignHCenter); grid->addWidget(mEditButton, 0, gridIndex++, AlignHCenter);
@ -531,7 +531,7 @@ void MessageWin::initView()
{ {
// Defer button // Defer button
mDeferButton = new TQPushButton(i18n("&Defer..."), topWidget); mDeferButton = new TQPushButton(i18n("&Defer..."), topWidget);
mDeferButton->setFocusPolicy(TQ_ClickFocus); // don't allow keyboard selection mDeferButton->setFocusPolicy(TQWidget::ClickFocus); // don't allow keyboard selection
mDeferButton->setFixedSize(mDeferButton->sizeHint()); mDeferButton->setFixedSize(mDeferButton->sizeHint());
connect(mDeferButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotDefer())); connect(mDeferButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotDefer()));
grid->addWidget(mDeferButton, 0, gridIndex++, AlignHCenter); grid->addWidget(mDeferButton, 0, gridIndex++, AlignHCenter);

@ -712,7 +712,7 @@ void RecurrenceEdit::enableExceptionButtons()
mChangeExceptionButton->setEnabled(enable); mChangeExceptionButton->setEnabled(enable);
// Prevent the exceptions list box receiving keyboard focus is it's empty // Prevent the exceptions list box receiving keyboard focus is it's empty
mExceptionDateList->setFocusPolicy(mExceptionDateList->count() ? TQ_WheelFocus : TQ_NoFocus); mExceptionDateList->setFocusPolicy(mExceptionDateList->count() ? TQWidget::WheelFocus : TQWidget::NoFocus);
} }
/****************************************************************************** /******************************************************************************

@ -88,7 +88,7 @@ xQGanttBarViewPort::xQGanttBarViewPort(KGanttItem* toplevelitem,
recalc(); adjustSize(); recalc(); adjustSize();
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
_mode = Init; _mode = Init;
} }

@ -57,7 +57,7 @@ FolderRequester::FolderRequester( TQWidget *parent, KMFolderTree *tree )
setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding, setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding,
TQSizePolicy::Fixed ) ); TQSizePolicy::Fixed ) );
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

@ -99,7 +99,7 @@ KMailPart::KMailPart(TQWidget *parentWidget, const char *widgetName,
// create a canvas to insert our widget // create a canvas to insert our widget
TQWidget *canvas = new TQWidget(parentWidget, widgetName); TQWidget *canvas = new TQWidget(parentWidget, widgetName);
canvas->setFocusPolicy(TQ_ClickFocus); canvas->setFocusPolicy(TQWidget::ClickFocus);
setWidget(canvas); setWidget(canvas);
TDEGlobal::iconLoader()->addAppDir("kmail"); TDEGlobal::iconLoader()->addAppDir("kmail");
#if 0 #if 0
@ -124,7 +124,7 @@ KMailPart::KMailPart(TQWidget *parentWidget, const char *widgetName,
kapp->config()); kapp->config());
TQVBoxLayout *topLayout = new TQVBoxLayout(canvas); TQVBoxLayout *topLayout = new TQVBoxLayout(canvas);
topLayout->addWidget(mainWidget); topLayout->addWidget(mainWidget);
mainWidget->setFocusPolicy(TQ_ClickFocus); mainWidget->setFocusPolicy(TQWidget::ClickFocus);
mStatusBar = new KMailStatusBarExtension(this); mStatusBar = new KMailStatusBarExtension(this);
mStatusBar->addStatusBarItem( mainWidget->vacationScriptIndicator(), 2, false ); mStatusBar->addStatusBarItem( mainWidget->vacationScriptIndicator(), 2, false );

@ -249,10 +249,10 @@ KMComposeWin::KMComposeWin( KMMessage *aMsg, uint id )
TQToolTip::add( mBtnCc, tip ); TQToolTip::add( mBtnCc, tip );
TQToolTip::add( mBtnBcc, tip ); TQToolTip::add( mBtnBcc, tip );
mBtnTo->setFocusPolicy(TQ_NoFocus); mBtnTo->setFocusPolicy(TQWidget::NoFocus);
mBtnCc->setFocusPolicy(TQ_NoFocus); mBtnCc->setFocusPolicy(TQWidget::NoFocus);
mBtnBcc->setFocusPolicy(TQ_NoFocus); mBtnBcc->setFocusPolicy(TQWidget::NoFocus);
//mBtnFrom->setFocusPolicy(TQ_NoFocus); //mBtnFrom->setFocusPolicy(TQWidget::NoFocus);
connect(mBtnTo,TQT_SIGNAL(clicked()),TQT_SLOT(slotAddrBookTo())); connect(mBtnTo,TQT_SIGNAL(clicked()),TQT_SLOT(slotAddrBookTo()));
connect(mBtnCc,TQT_SIGNAL(clicked()),TQT_SLOT(slotAddrBookTo())); connect(mBtnCc,TQT_SIGNAL(clicked()),TQT_SLOT(slotAddrBookTo()));
@ -385,10 +385,10 @@ KMComposeWin::KMComposeWin( KMMessage *aMsg, uint id )
setCaption( i18n("Composer") ); setCaption( i18n("Composer") );
setMinimumSize(200,200); setMinimumSize(200,200);
mBtnIdentity->setFocusPolicy(TQ_NoFocus); mBtnIdentity->setFocusPolicy(TQWidget::NoFocus);
mBtnFcc->setFocusPolicy(TQ_NoFocus); mBtnFcc->setFocusPolicy(TQWidget::NoFocus);
mBtnTransport->setFocusPolicy(TQ_NoFocus); mBtnTransport->setFocusPolicy(TQWidget::NoFocus);
mBtnDictionary->setFocusPolicy( TQ_NoFocus ); mBtnDictionary->setFocusPolicy( TQWidget::NoFocus );
mAtmListView = new AttachmentListView( this, mSplitter, mAtmListView = new AttachmentListView( this, mSplitter,
"attachment list view" ); "attachment list view" );

@ -143,7 +143,7 @@ KMHeaders::KMHeaders(KMMainWidget *aOwner, TQWidget *parent,
connect(mPopup, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotToggleColumn(int))); connect(mPopup, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotToggleColumn(int)));
setShowSortIndicator(true); setShowSortIndicator(true);
setFocusPolicy( TQ_WheelFocus ); setFocusPolicy( TQWidget::WheelFocus );
if (!pixmapsLoaded) if (!pixmapsLoaded)
{ {

@ -1000,7 +1000,7 @@ void KMReaderWin::writeConfig( bool sync ) const {
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void KMReaderWin::initHtmlWidget(void) void KMReaderWin::initHtmlWidget(void)
{ {
mViewer->widget()->setFocusPolicy(TQ_WheelFocus); mViewer->widget()->setFocusPolicy(TQWidget::WheelFocus);
// Let's better be paranoid and disable plugins (it defaults to enabled): // Let's better be paranoid and disable plugins (it defaults to enabled):
mViewer->setPluginsEnabled(false); mViewer->setPluginsEnabled(false);
mViewer->setJScriptEnabled(false); // just make this explicit mViewer->setJScriptEnabled(false); // just make this explicit

@ -103,7 +103,7 @@ void RecipientItem::setAddressee( const TDEABC::Addressee &a,
TQImage img = a.photo().data(); TQImage img = a.photo().data();
if ( !img.isNull() ) if ( !img.isNull() )
mIcon = img.smoothScale( 20, 20, TQ_ScaleMin ); mIcon = img.smoothScale( 20, 20, TQImage::ScaleMin );
else else
mIcon = TDEGlobal::iconLoader()->loadIcon( "preferences-desktop-personal", TDEIcon::Small ); mIcon = TDEGlobal::iconLoader()->loadIcon( "preferences-desktop-personal", TDEIcon::Small );

@ -98,13 +98,13 @@ ArticleWidget::ArticleWidget( TQWidget *parent,
TQHBoxLayout *box = new TQHBoxLayout( this ); TQHBoxLayout *box = new TQHBoxLayout( this );
mViewer = new TDEHTMLPart( this, "mViewer" ); mViewer = new TDEHTMLPart( this, "mViewer" );
box->addWidget( mViewer->widget() ); box->addWidget( mViewer->widget() );
mViewer->widget()->setFocusPolicy( TQ_WheelFocus ); mViewer->widget()->setFocusPolicy( TQWidget::WheelFocus );
mViewer->setPluginsEnabled( false ); mViewer->setPluginsEnabled( false );
mViewer->setJScriptEnabled( false ); mViewer->setJScriptEnabled( false );
mViewer->setJavaEnabled( false ); mViewer->setJavaEnabled( false );
mViewer->setMetaRefreshEnabled( false ); mViewer->setMetaRefreshEnabled( false );
mViewer->setOnlyLocalReferences( true ); mViewer->setOnlyLocalReferences( true );
mViewer->view()->setFocusPolicy( TQ_WheelFocus ); mViewer->view()->setFocusPolicy( TQWidget::WheelFocus );
connect( mViewer->browserExtension(), TQT_SIGNAL(openURLRequestDelayed(const KURL&, const KParts::URLArgs&)), connect( mViewer->browserExtension(), TQT_SIGNAL(openURLRequestDelayed(const KURL&, const KParts::URLArgs&)),
TQT_SLOT(slotURLClicked(const KURL&)) ); TQT_SLOT(slotURLClicked(const KURL&)) );
connect( mViewer, TQT_SIGNAL(popupMenu(const TQString&, const TQPoint&)), connect( mViewer, TQT_SIGNAL(popupMenu(const TQString&, const TQPoint&)),

@ -68,13 +68,13 @@ KNodePart::KNodePart(TQWidget *parentWidget, const char *widgetName,
// create a canvas to insert our widget // create a canvas to insert our widget
TQWidget *canvas = new TQWidget(parentWidget, widgetName); TQWidget *canvas = new TQWidget(parentWidget, widgetName);
canvas->setFocusPolicy(TQ_ClickFocus); canvas->setFocusPolicy(TQWidget::ClickFocus);
setWidget(canvas); setWidget(canvas);
mainWidget = new KNMainWidget( this, false, canvas, "knode_widget" ); mainWidget = new KNMainWidget( this, false, canvas, "knode_widget" );
TQVBoxLayout *topLayout = new TQVBoxLayout(canvas); TQVBoxLayout *topLayout = new TQVBoxLayout(canvas);
topLayout->addWidget(mainWidget); topLayout->addWidget(mainWidget);
mainWidget->setFocusPolicy(TQ_ClickFocus); mainWidget->setFocusPolicy(TQWidget::ClickFocus);
kapp->dcopClient()->resume(); // Ok. We are ready for DCOP requests. kapp->dcopClient()->resume(); // Ok. We are ready for DCOP requests.

@ -33,7 +33,7 @@
KNoteButton::KNoteButton( const TQString& icon, TQWidget *parent, const char *name ) KNoteButton::KNoteButton( const TQString& icon, TQWidget *parent, const char *name )
: TQPushButton( parent, name ) : TQPushButton( parent, name )
{ {
setFocusPolicy( TQ_NoFocus ); setFocusPolicy( TQWidget::NoFocus );
setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
m_flat = true; m_flat = true;

@ -89,7 +89,7 @@ void Summary::mouseMoveEvent( TQMouseEvent *event )
TQPixmap pm = TQPixmap::grabWidget( this ); TQPixmap pm = TQPixmap::grabWidget( this );
if ( pm.width() > 300 ) if ( pm.width() > 300 )
pm = pm.convertToImage().smoothScale( 300, 300, TQ_ScaleMin ); pm = pm.convertToImage().smoothScale( 300, 300, TQImage::ScaleMin );
TQPainter painter; TQPainter painter;
painter.begin( &pm ); painter.begin( &pm );

@ -364,7 +364,7 @@ void SummaryViewPart::initGUI( Kontact::Core *core )
mMainWidget = new TQFrame( sv->viewport() ); mMainWidget = new TQFrame( sv->viewport() );
sv->addChild( mMainWidget ); sv->addChild( mMainWidget );
mMainWidget->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); mMainWidget->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
sv->setFocusPolicy( TQ_StrongFocus ); sv->setFocusPolicy( TQWidget::StrongFocus );
setWidget( sv ); setWidget( sv );
mMainLayout = new TQVBoxLayout( mMainWidget,KDialog::marginHint(), mMainLayout = new TQVBoxLayout( mMainWidget,KDialog::marginHint(),

@ -265,7 +265,7 @@ Navigator::Navigator( IconSidePane *parent, const char *name )
setHScrollBarMode( TQScrollView::AlwaysOff ); setHScrollBarMode( TQScrollView::AlwaysOff );
setAcceptDrops( true ); setAcceptDrops( true );
setFocusPolicy( TQ_NoFocus ); setFocusPolicy( TQWidget::NoFocus );
connect( this, TQT_SIGNAL( selectionChanged( TQListBoxItem* ) ), connect( this, TQT_SIGNAL( selectionChanged( TQListBoxItem* ) ),
TQT_SLOT( slotExecuted( TQListBoxItem* ) ) ); TQT_SLOT( slotExecuted( TQListBoxItem* ) ) );

@ -313,7 +313,7 @@ void MainWindow::initAboutScreen()
mPartsStack->addWidget( introbox ); mPartsStack->addWidget( introbox );
mPartsStack->raiseWidget( introbox ); mPartsStack->raiseWidget( introbox );
mIntroPart = new TDEHTMLPart( introbox ); mIntroPart = new TDEHTMLPart( introbox );
mIntroPart->widget()->setFocusPolicy( TQ_WheelFocus ); mIntroPart->widget()->setFocusPolicy( TQWidget::WheelFocus );
// Let's better be paranoid and disable plugins (it defaults to enabled): // Let's better be paranoid and disable plugins (it defaults to enabled):
mIntroPart->setPluginsEnabled( false ); mIntroPart->setPluginsEnabled( false );
mIntroPart->setJScriptEnabled( false ); // just make this explicit mIntroPart->setJScriptEnabled( false ); // just make this explicit

@ -255,7 +255,7 @@ void KOAgenda::init()
// Grab key strokes for keyboard navigation of agenda. Seems to have no // Grab key strokes for keyboard navigation of agenda. Seems to have no
// effect. Has to be fixed. // effect. Has to be fixed.
setFocusPolicy( TQ_WheelFocus ); setFocusPolicy( TQWidget::WheelFocus );
connect( &mScrollUpTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( scrollUp() ) ); connect( &mScrollUpTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( scrollUp() ) );
connect( &mScrollDownTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( scrollDown() ) ); connect( &mScrollDownTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( scrollDown() ) );
@ -291,7 +291,7 @@ void KOAgenda::init()
viewport()->update(); viewport()->update();
viewport()->setBackgroundMode( NoBackground ); viewport()->setBackgroundMode( NoBackground );
viewport()->setFocusPolicy( TQ_WheelFocus ); viewport()->setFocusPolicy( TQWidget::WheelFocus );
setMinimumSize( 30, int( mGridSpacingY + 1 ) ); setMinimumSize( 30, int( mGridSpacingY + 1 ) );
// setMaximumHeight(mGridSpacingY * mRows + 5); // setMaximumHeight(mGridSpacingY * mRows + 5);

@ -81,7 +81,7 @@ KOrganizerPart::KOrganizerPart( TQWidget *parentWidget, const char *widgetName,
// create a canvas to insert our widget // create a canvas to insert our widget
TQWidget *canvas = new TQWidget( parentWidget, widgetName ); TQWidget *canvas = new TQWidget( parentWidget, widgetName );
canvas->setFocusPolicy( TQ_ClickFocus ); canvas->setFocusPolicy( TQWidget::ClickFocus );
setWidget( canvas ); setWidget( canvas );
mView = new CalendarView( canvas ); mView = new CalendarView( canvas );

@ -225,12 +225,12 @@ CompletionOrderEditor::CompletionOrderEditor( KPIM::LdapSearch* ldapSearch,
mUpButton = new KPushButton( upDownBox, "mUpButton" ); mUpButton = new KPushButton( upDownBox, "mUpButton" );
mUpButton->setIconSet( BarIconSet( "go-up", TDEIcon::SizeSmall ) ); mUpButton->setIconSet( BarIconSet( "go-up", TDEIcon::SizeSmall ) );
mUpButton->setEnabled( false ); // b/c no item is selected yet mUpButton->setEnabled( false ); // b/c no item is selected yet
mUpButton->setFocusPolicy( TQ_StrongFocus ); mUpButton->setFocusPolicy( TQWidget::StrongFocus );
mDownButton = new KPushButton( upDownBox, "mDownButton" ); mDownButton = new KPushButton( upDownBox, "mDownButton" );
mDownButton->setIconSet( BarIconSet( "go-down", TDEIcon::SizeSmall ) ); mDownButton->setIconSet( BarIconSet( "go-down", TDEIcon::SizeSmall ) );
mDownButton->setEnabled( false ); // b/c no item is selected yet mDownButton->setEnabled( false ); // b/c no item is selected yet
mDownButton->setFocusPolicy( TQ_StrongFocus ); mDownButton->setFocusPolicy( TQWidget::StrongFocus );
TQWidget* spacer = new TQWidget( upDownBox ); TQWidget* spacer = new TQWidget( upDownBox );
upDownBox->setStretchFactor( spacer, 100 ); upDownBox->setStretchFactor( spacer, 100 );

@ -67,7 +67,7 @@ class PageItem : public TQCheckListItem
setText( 0, wdg->caption() ); setText( 0, wdg->caption() );
TQPixmap pm = TQPixmap::grabWidget( wdg ); TQPixmap pm = TQPixmap::grabWidget( wdg );
TQImage img = pm.convertToImage().smoothScale( 300, 300, TQ_ScaleMin ); TQImage img = pm.convertToImage().smoothScale( 300, 300, TQImage::ScaleMin );
mPreview = img; mPreview = img;
TQObjectList *list = wdg->queryList( "TQWidget" ); TQObjectList *list = wdg->queryList( "TQWidget" );

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

@ -126,7 +126,7 @@ KTimeEdit::KTimeEdit( TQWidget *parent, TQTime qt, const char *name )
insertItem( TDEGlobal::locale()->formatTime( TQTime( 23, 59, 59 ) ) ); insertItem( TDEGlobal::locale()->formatTime( TQTime( 23, 59, 59 ) ) );
updateText(); updateText();
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
connect(this, TQT_SIGNAL(activated(int)), this, TQT_SLOT(active(int))); connect(this, TQT_SIGNAL(activated(int)), this, TQT_SLOT(active(int)));
connect(this, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(hilit(int))); connect(this, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(hilit(int)));

@ -217,7 +217,7 @@ void tqt_leave_modal( TQWidget *widget );
void ResourceGroupwareBase::enter_loop() void ResourceGroupwareBase::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);

Loading…
Cancel
Save