mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-24 04:07:55 +01:00
see #2475 more debugging, will test on Mac with latest Qt
This commit is contained in:
parent
cbf51a1920
commit
9561f4b2c5
@ -151,6 +151,8 @@ ObjectTreeView::ObjectTreeView(ProjectPanel* project,
|
||||
setDragDropMode( QAbstractItemView::DragDrop );
|
||||
setRootIsDecorated( TRUE );
|
||||
|
||||
setFocusPolicy(Qt::StrongFocus);
|
||||
|
||||
connect(this, SIGNAL(itemChanged(QTreeWidgetItem*,int)), this,
|
||||
SLOT(updateFilter()));
|
||||
|
||||
@ -286,6 +288,16 @@ void ObjectTreeView::focusInEvent(QFocusEvent* ev)
|
||||
void ObjectTreeView::focusOutEvent(QFocusEvent* ev)
|
||||
{
|
||||
QTreeWidget::focusOutEvent(ev);
|
||||
|
||||
if (fwbdebug)
|
||||
{
|
||||
QStyleOptionViewItem option = viewOptions();
|
||||
qDebug() << "ObjectTreeView::focusOutEvent"
|
||||
<< "QStyleOptionViewItem.state=" << int(option.state)
|
||||
<< "hasFocus()=" << hasFocus()
|
||||
<< "isActiveWindow()=" << isActiveWindow();
|
||||
}
|
||||
|
||||
QTreeWidgetItem *ci = currentItem();
|
||||
if (ci) repaint();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user