diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-02 15:53:29 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-02 15:53:29 +0900 |
commit | 1e5d5c92c374c8c950f01fa5aa916b3f722f98c1 (patch) | |
tree | f8538d6a34bf4683fdb8e2ed33923406b1659c09 /tdeparts | |
parent | 34632650f1a323bdb5a0bbb0f504e3db70d87330 (diff) | |
download | tdelibs-1e5d5c92c374c8c950f01fa5aa916b3f722f98c1.tar.gz tdelibs-1e5d5c92c374c8c950f01fa5aa916b3f722f98c1.zip |
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeparts')
-rw-r--r-- | tdeparts/part.cpp | 2 | ||||
-rw-r--r-- | tdeparts/partmanager.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
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; } |