Disable focus rect on Mac for more widgets.
This commit is contained in:
parent
a8295002cf
commit
774ae905e6
|
@ -144,6 +144,7 @@ DeviceView::DeviceView(QWidget* parent)
|
|||
|
||||
setItemDelegate(new DeviceItemDelegate(this));
|
||||
SetExpandOnReset(false);
|
||||
setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||
}
|
||||
|
||||
DeviceView::~DeviceView() {
|
||||
|
|
|
@ -26,6 +26,7 @@ RadioView::RadioView(QWidget *parent)
|
|||
{
|
||||
setItemDelegate(new LibraryItemDelegate(this));
|
||||
SetExpandOnReset(false);
|
||||
setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||
}
|
||||
|
||||
void RadioView::contextMenuEvent(QContextMenuEvent* e) {
|
||||
|
|
|
@ -37,6 +37,7 @@ FileViewList::FileViewList(QWidget* parent)
|
|||
this, SLOT(MoveToLibrarySlot()));
|
||||
menu_->addAction(IconLoader::Load("edit-delete"), tr("Delete from disk..."),
|
||||
this, SLOT(DeleteSlot()));
|
||||
setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||
}
|
||||
|
||||
void FileViewList::contextMenuEvent(QContextMenuEvent* e) {
|
||||
|
|
Loading…
Reference in New Issue