forked from qt-creator/qt-creator
Drop Qt5: Debugger: Remove code below Qt 6.0.0
Change-Id: I6ccc87465e7bac13268b426070544ca84e0616b2 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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)) {
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user