forked from qt-creator/qt-creator
Remove some focus rects on the Mac that don't belong there.
This commit is contained in:
@@ -79,6 +79,7 @@ ObjectPropertiesView::ObjectPropertiesView(QDeclarativeEngineDebug *client, QWid
|
||||
setLayout(layout);
|
||||
|
||||
m_tree = new QTreeWidget(this);
|
||||
m_tree->setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||
m_tree->setFrameStyle(QFrame::NoFrame);
|
||||
m_tree->setAlternatingRowColors(true);
|
||||
m_tree->setExpandsOnDoubleClick(false);
|
||||
|
||||
@@ -47,6 +47,7 @@ ObjectTree::ObjectTree(QDeclarativeEngineDebug *client, QWidget *parent)
|
||||
m_client(client),
|
||||
m_query(0)
|
||||
{
|
||||
setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||
setFrameStyle(QFrame::NoFrame);
|
||||
setHeaderHidden(true);
|
||||
setMinimumWidth(250);
|
||||
|
||||
@@ -296,6 +296,7 @@ WatchTableView::WatchTableView(WatchTableModel *model, QWidget *parent)
|
||||
: QTableView(parent),
|
||||
m_model(model)
|
||||
{
|
||||
setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||
setFrameStyle(QFrame::NoFrame);
|
||||
setAlternatingRowColors(true);
|
||||
setSelectionMode(QAbstractItemView::SingleSelection);
|
||||
|
||||
Reference in New Issue
Block a user