From 33a6e3c5c0233f6d8b1ad60d287f10c5c78d5308 Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Mon, 10 Nov 2014 08:49:24 +0100 Subject: [PATCH] Removed hard coded CSS Hard coded CSS might have a slight chance of not rendering the same across all platforms. More research needs to be performed. Until then I have removed the hard coded search bar customization. --- cockatrice/src/tab_deck_editor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cockatrice/src/tab_deck_editor.cpp b/cockatrice/src/tab_deck_editor.cpp index 8c4e9e8e..c413d134 100644 --- a/cockatrice/src/tab_deck_editor.cpp +++ b/cockatrice/src/tab_deck_editor.cpp @@ -50,11 +50,10 @@ TabDeckEditor::TabDeckEditor(TabSupervisor *_tabSupervisor, QWidget *parent) aClearSearch = new QAction(QString(), this); aClearSearch->setIcon(QIcon(":/resources/icon_clearsearch.svg")); connect(aClearSearch, SIGNAL(triggered()), this, SLOT(actClearSearch())); - searchEdit = new SearchLineEdit; searchEdit->addAction(QIcon(":/resources/icon_search_black.svg"), QLineEdit::LeadingPosition); searchEdit->setObjectName("searchEdit"); - searchEdit->setStyleSheet("#searchEdit{background:#DFE0E5;border-radius:13px;padding:5px 0px;}#searchEdit:focus{background:#EBEBEB;}"); + setFocusProxy(searchEdit); setFocusPolicy(Qt::ClickFocus);