From 1e5d5c92c374c8c950f01fa5aa916b3f722f98c1 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 2 Sep 2023 15:53:29 +0900 Subject: Replace TQ_*Focus* and TQ_Scale* defines Signed-off-by: Michele Calgaro --- tdeparts/part.cpp | 2 +- tdeparts/partmanager.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tdeparts') diff --git a/tdeparts/part.cpp b/tdeparts/part.cpp index 075b13d77..286a5f93b 100644 --- a/tdeparts/part.cpp +++ b/tdeparts/part.cpp @@ -690,7 +690,7 @@ bool ReadWritePart::waitSaveComplete() d->m_waitForSave = true; TQWidget dummy(0,0,(WFlags)(WType_Dialog | WShowModal)); - dummy.setFocusPolicy( TQ_NoFocus ); + dummy.setFocusPolicy( TQWidget::NoFocus ); tqt_enter_modal(&dummy); tqApp->enter_loop(); tqt_leave_modal(&dummy); diff --git a/tdeparts/partmanager.cpp b/tdeparts/partmanager.cpp index 5ba9c8b41..f63fdc3b3 100644 --- a/tdeparts/partmanager.cpp +++ b/tdeparts/partmanager.cpp @@ -351,11 +351,11 @@ void PartManager::addPart( Part *part, bool setActive ) } // Prevent focus problems - if ( part->widget() && part->widget()->focusPolicy() == TQ_NoFocus ) + if ( part->widget() && part->widget()->focusPolicy() == TQWidget::NoFocus ) { kdWarning(1000) << "Part '" << part->name() << "' has a widget " << part->widget()->name() << " with a focus policy of NoFocus. It should have at least a ClickFocus policy, for part activation to work well." << endl; } - if ( part->widget() && part->widget()->focusPolicy() == TQ_TabFocus ) + if ( part->widget() && part->widget()->focusPolicy() == TQWidget::TabFocus ) { kdWarning(1000) << "Part '" << part->name() << "' has a widget " << part->widget()->name() << " with a focus policy of TabFocus. It should have at least a ClickFocus policy, for part activation to work well." << endl; } -- cgit v1.2.1