diff options
author | Michele Calgaro <[email protected]> | 2023-09-01 18:02:52 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-09-01 22:25:31 +0900 |
commit | 3b410182b49882faad3ae9bfbf2b76c32fc5b995 (patch) | |
tree | 6eb6248345dea1edc31112b9c21619d6e772e13b /kommander | |
parent | 800dc2caaba11c90a8c4abc35343794145ebcc9d (diff) | |
download | tdewebdev-3b410182b49882faad3ae9bfbf2b76c32fc5b995.tar.gz tdewebdev-3b410182b49882faad3ae9bfbf2b76c32fc5b995.zip |
Replace tqt_mo_* defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 67da3e67a76b9c5a2dc908e9a22e1be055a1957c)
Diffstat (limited to 'kommander')
-rw-r--r-- | kommander/editor/connectioneditorimpl.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kommander/editor/connectioneditorimpl.cpp b/kommander/editor/connectioneditorimpl.cpp index 98286498..23088e69 100644 --- a/kommander/editor/connectioneditorimpl.cpp +++ b/kommander/editor/connectioneditorimpl.cpp @@ -154,19 +154,19 @@ bool ConnectionEditor::isSignalIgnored(const char *signal) const bool ConnectionEditor::isSlotIgnored(const TQMetaData* md) { - if (md->tqt_mo_access != TQMetaData::Public && (md->tqt_mo_access != TQMetaData::Protected || + if (md->access != TQMetaData::Public && (md->access != TQMetaData::Protected || !m_formWindow->isMainContainer(TQT_TQOBJECT(m_receiver)))) return true; for (int i = 0; ignore_slots[i]; i++) - if (!qstrcmp(md->tqt_mo_ci_name, ignore_slots[i])) + if (!qstrcmp(md->name, ignore_slots[i])) return true; - if (!m_formWindow->isMainContainer(TQT_TQOBJECT(m_receiver)) && !qstrcmp(md->tqt_mo_ci_name, "close()")) + if (!m_formWindow->isMainContainer(TQT_TQOBJECT(m_receiver)) && !qstrcmp(md->name, "close()")) return true; - if (!qstrcmp(md->tqt_mo_ci_name, "setFocus()") && m_receiver->isWidgetType() && + if (!qstrcmp(md->name, "setFocus()") && m_receiver->isWidgetType() && ((TQWidget*)m_receiver)->focusPolicy() == TQ_NoFocus) return true; for (int i = 0; i<comboSender->count(); i++) - if (checkConnectArgs(MetaDataBase::normalizeSlot(signalBox->text(i)).latin1(), m_receiver, md->tqt_mo_ci_name)) + if (checkConnectArgs(MetaDataBase::normalizeSlot(signalBox->text(i)).latin1(), m_receiver, md->name)) return false; return true; } @@ -298,8 +298,8 @@ void ConnectionEditor::receiverChanged(const TQString& s) for (int i = 0; i < n; ++i) { const TQMetaData* md = m_receiver->metaObject()->slot(i, true); - if (!isSlotIgnored(md) && !slotBox->findItem(md->tqt_mo_ci_name, TQt::ExactMatch)) - slotBox->insertItem(md->tqt_mo_ci_name); + if (!isSlotIgnored(md) && !slotBox->findItem(md->name, TQt::ExactMatch)) + slotBox->insertItem(md->name); } slotBox->sort(); slotBox->setCurrentItem(slotBox->firstItem()); |