Drop Qt5: Debugger: Remove code below Qt 6.0.0

Change-Id: I6ccc87465e7bac13268b426070544ca84e0616b2
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-07-25 09:42:09 +02:00
parent 23075ca2f0
commit 8cb867670b
2 changed files with 0 additions and 7 deletions

View File

@@ -107,12 +107,8 @@ void ConsoleView::mousePressEvent(QMouseEvent *event)
bool handled = false;
if (type == ConsoleItem::DefaultType) {
bool showTypeIcon = index.parent() == QModelIndex();
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
const QStyleOptionViewItem option = viewOptions();
#else
QStyleOptionViewItem option;
initViewItemOption(&option);
#endif
ConsoleItemPositions positions(m_model, visualRect(index), option.font, showTypeIcon, true);
if (positions.expandCollapseIcon().contains(pos)) {

View File

@@ -2152,9 +2152,6 @@ DebuggerPlugin::DebuggerPlugin()
m_instance = this;
qRegisterMetaType<PerspectiveState>("Utils::PerspectiveState");
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
qRegisterMetaTypeStreamOperators<PerspectiveState>("Utils::PerspectiveState");
#endif
}
DebuggerPlugin::~DebuggerPlugin()