From 5e58c04b1456ff687d05184e031ee0b6aa66cefb Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 2 Sep 2023 15:54:50 +0900 Subject: Replace TQ_*Focus* and TQ_Scale* defines Signed-off-by: Michele Calgaro --- kommander/editor/connectioneditorimpl.cpp | 2 +- kommander/editor/formwindow.cpp | 4 ++-- kommander/editor/previewwidgetimpl.cpp | 2 +- kommander/widget/myprocess.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'kommander') diff --git a/kommander/editor/connectioneditorimpl.cpp b/kommander/editor/connectioneditorimpl.cpp index 23088e69..05a3c2ad 100644 --- a/kommander/editor/connectioneditorimpl.cpp +++ b/kommander/editor/connectioneditorimpl.cpp @@ -163,7 +163,7 @@ bool ConnectionEditor::isSlotIgnored(const TQMetaData* md) if (!m_formWindow->isMainContainer(TQT_TQOBJECT(m_receiver)) && !qstrcmp(md->name, "close()")) return true; if (!qstrcmp(md->name, "setFocus()") && m_receiver->isWidgetType() && - ((TQWidget*)m_receiver)->focusPolicy() == TQ_NoFocus) + ((TQWidget*)m_receiver)->focusPolicy() == TQWidget::NoFocus) return true; for (int i = 0; icount(); i++) if (checkConnectArgs(MetaDataBase::normalizeSlot(signalBox->text(i)).latin1(), m_receiver, md->name)) diff --git a/kommander/editor/formwindow.cpp b/kommander/editor/formwindow.cpp index b8daf492..717bc9c9 100644 --- a/kommander/editor/formwindow.cpp +++ b/kommander/editor/formwindow.cpp @@ -140,7 +140,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()), @@ -1695,7 +1695,7 @@ void FormWindow::showOrderIndicators() { TQWidget *w = (TQWidget *) o; if (w->isVisibleTo(w->parentWidget()) && - insertedWidgets[(void *) w] && w->focusPolicy() != TQ_NoFocus) + insertedWidgets[(void *) w] && w->focusPolicy() != TQWidget::NoFocus) { OrderIndicator *ind = new OrderIndicator(order++, w, this); orderIndicators.append(ind); diff --git a/kommander/editor/previewwidgetimpl.cpp b/kommander/editor/previewwidgetimpl.cpp index 6ac39c22..2b08ee3a 100644 --- a/kommander/editor/previewwidgetimpl.cpp +++ b/kommander/editor/previewwidgetimpl.cpp @@ -31,7 +31,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); } } diff --git a/kommander/widget/myprocess.cpp b/kommander/widget/myprocess.cpp index 45e64790..5b56ec8d 100644 --- a/kommander/widget/myprocess.cpp +++ b/kommander/widget/myprocess.cpp @@ -102,7 +102,7 @@ TQString MyProcess::run(const TQString& a_command, const TQString& a_shell) else { TQWidget dummy(0, 0, WType_Dialog | WShowModal); - dummy.setFocusPolicy(TQ_NoFocus); + dummy.setFocusPolicy(TQWidget::NoFocus); m_loopStarted = true; tqt_enter_modal(&dummy); tqApp->enter_loop(); -- cgit v1.2.1