Update icon size of result view.
This commit is contained in:
parent
ebe6d09964
commit
ca6850f5fc
|
@ -3,12 +3,14 @@
|
|||
#define MAIN_SPACING 0
|
||||
#define TITLE_HEIGHT 30
|
||||
#define UNFOLD_LABEL_HEIGHT 30
|
||||
#define VIEW_ICON_SIZE 24
|
||||
|
||||
using namespace Zeeker;
|
||||
BestListView::BestListView(QWidget *parent) : QTreeView(parent)
|
||||
{
|
||||
this->setFrameShape(QFrame::NoFrame);
|
||||
this->viewport()->setAutoFillBackground(false);
|
||||
this->setIconSize(QSize(VIEW_ICON_SIZE, VIEW_ICON_SIZE));
|
||||
this->setRootIsDecorated(false);
|
||||
this->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
this->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#define MAIN_SPACING 0
|
||||
#define TITLE_HEIGHT 30
|
||||
#define UNFOLD_LABEL_HEIGHT 30
|
||||
#define VIEW_ICON_SIZE 24
|
||||
|
||||
using namespace Zeeker;
|
||||
ResultWidget::ResultWidget(const QString &plugin_id, QWidget *parent) : QWidget(parent)
|
||||
|
@ -161,6 +162,7 @@ ResultView::ResultView(const QString &plugin_id, QWidget *parent) : QTreeView(pa
|
|||
{
|
||||
this->setFrameShape(QFrame::NoFrame);
|
||||
this->viewport()->setAutoFillBackground(false);
|
||||
this->setIconSize(QSize(VIEW_ICON_SIZE, VIEW_ICON_SIZE));
|
||||
this->setRootIsDecorated(false);
|
||||
this->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
this->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#define MAIN_MARGINS 0,0,0,0
|
||||
#define MAIN_SPACING 0
|
||||
#define TITLE_HEIGHT 30
|
||||
#define VIEW_ICON_SIZE 24
|
||||
|
||||
using namespace Zeeker;
|
||||
WebSearchView::WebSearchView(QWidget *parent) : QTreeView(parent)
|
||||
|
@ -29,6 +30,7 @@ WebSearchView::WebSearchView(QWidget *parent) : QTreeView(parent)
|
|||
this->setFrameShape(QFrame::NoFrame);
|
||||
this->viewport()->setAutoFillBackground(false);
|
||||
this->setRootIsDecorated(false);
|
||||
this->setIconSize(QSize(VIEW_ICON_SIZE, VIEW_ICON_SIZE));
|
||||
this->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
this->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
this->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||
|
|
Loading…
Reference in New Issue