Remove some focus rects on the Mac that don't belong there.

This commit is contained in:
con
2010-04-16 11:39:36 +02:00
parent 9220929375
commit 6c492dac4d
11 changed files with 11 additions and 1 deletions

View File

@@ -85,6 +85,7 @@ BreakWindow::BreakWindow(Debugger::DebuggerManager *manager)
{
QAction *act = theDebuggerAction(UseAlternatingRowColors);
setFrameStyle(QFrame::NoFrame);
setAttribute(Qt::WA_MacShowFocusRect, false);
setWindowTitle(tr("Breakpoints"));
setWindowIcon(QIcon(":/debugger/images/debugger_breakpoints.png"));
setAlternatingRowColors(act->isChecked());

View File

@@ -64,6 +64,7 @@ ModulesWindow::ModulesWindow(DebuggerManager *debuggerManager,
{
QAction *act = theDebuggerAction(UseAlternatingRowColors);
setWindowTitle(tr("Modules"));
setAttribute(Qt::WA_MacShowFocusRect, false);
setSortingEnabled(true);
setAlternatingRowColors(act->isChecked());
setRootIsDecorated(false);

View File

@@ -149,6 +149,7 @@ RegisterWindow::RegisterWindow(DebuggerManager *manager)
{
QAction *act = theDebuggerAction(UseAlternatingRowColors);
setWindowTitle(tr("Registers"));
setAttribute(Qt::WA_MacShowFocusRect, false);
setAlternatingRowColors(act->isChecked());
setRootIsDecorated(false);
setItemDelegate(new RegisterDelegate(m_manager, this));

View File

@@ -74,7 +74,7 @@ SnapshotWindow::SnapshotWindow(DebuggerManager *manager, QWidget *parent)
QAction *act = theDebuggerAction(UseAlternatingRowColors);
setWindowTitle(tr("Snapshots"));
setAttribute(Qt::WA_MacShowFocusRect, false);
setFrameStyle(QFrame::NoFrame);
setAlternatingRowColors(act->isChecked());
setRootIsDecorated(false);

View File

@@ -171,6 +171,7 @@ SourceFilesWindow::SourceFilesWindow(QWidget *parent)
proxyModel->setSourceModel(m_model);
setModel(proxyModel);
setAttribute(Qt::WA_MacShowFocusRect, false);
setFrameStyle(QFrame::NoFrame);
setWindowTitle(tr("Source Files"));
setSortingEnabled(true);

View File

@@ -56,6 +56,7 @@ namespace Internal {
StackWindow::StackWindow(DebuggerManager *manager, QWidget *parent)
: QTreeView(parent), m_manager(manager), m_alwaysResizeColumnsToContents(false)
{
setAttribute(Qt::WA_MacShowFocusRect, false);
setFrameStyle(QFrame::NoFrame);
m_disassemblerAgent = new DisassemblerViewAgent(manager);

View File

@@ -45,6 +45,7 @@ ThreadsWindow::ThreadsWindow(QWidget *parent)
{
QAction *act = theDebuggerAction(UseAlternatingRowColors);
setAttribute(Qt::WA_MacShowFocusRect, false);
setFrameStyle(QFrame::NoFrame);
setWindowTitle(tr("Thread"));
setAlternatingRowColors(act->isChecked());

View File

@@ -127,6 +127,7 @@ WatchWindow::WatchWindow(Type type, DebuggerManager *manager, QWidget *parent)
QAction *act = theDebuggerAction(UseAlternatingRowColors);
setFrameStyle(QFrame::NoFrame);
setAttribute(Qt::WA_MacShowFocusRect, false);
setWindowTitle(tr("Locals and Watchers"));
setAlternatingRowColors(act->isChecked());
setIndentation(indentation() * 9/10);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);