增加下拉按钮icon大小的设置
This commit is contained in:
parent
e8e48e6349
commit
902e57b6c5
|
@ -318,7 +318,7 @@ void MainWindow::initSearchUi()
|
|||
m_selectMenuButton->setAcceptDrops(true);
|
||||
m_selectMenuButton->setFocusPolicy(Qt::StrongFocus);
|
||||
m_selectMenuButton->setIcon(getCurIcon(":/data/img/mainviewwidget/downarrow.svg", true)
|
||||
.pixmap(QSize(Style::m_miniIconSize, Style::m_miniIconSize)));
|
||||
.pixmap(QSize(Style::m_minIconSize, Style::m_minIconSize)));
|
||||
//搜索框展开页
|
||||
m_minSearchPage = new QWidget();
|
||||
m_leftTopSearchHorizontalLayout = new QHBoxLayout(m_minSearchPage);
|
||||
|
@ -947,7 +947,7 @@ bool MainWindow::eventFilter(QObject *target, QEvent *event)
|
|||
|
||||
if (target == m_selectMenuButton) {
|
||||
m_selectMenuButton->setIcon(getCurIcon(":/data/img/mainviewwidget/downarrow.svg", true)
|
||||
.pixmap(QSize(Style::m_miniIconSize, Style::m_miniIconSize)));
|
||||
.pixmap(QSize(Style::m_minIconSize, Style::m_minIconSize)));
|
||||
selectIconAnimation(true);
|
||||
}
|
||||
}
|
||||
|
@ -1151,7 +1151,7 @@ void MainWindow::searchAppSlot(QString arg)
|
|||
}
|
||||
void MainWindow::on_selectMenuButton_triggered(QAction *arg1)
|
||||
{
|
||||
m_selectMenuButton->setIcon(getCurIcon(":/data/img/mainviewwidget/downarrow.svg", true).pixmap(QSize(Style::m_miniIconSize, Style::m_miniIconSize)));
|
||||
m_selectMenuButton->setIcon(getCurIcon(":/data/img/mainviewwidget/downarrow.svg", true).pixmap(QSize(Style::m_minIconSize, Style::m_minIconSize)));
|
||||
selectIconAnimation(false);
|
||||
|
||||
if (arg1 == m_allAction) {
|
||||
|
|
|
@ -95,7 +95,7 @@ int Style::m_timeWidgetTop = 81;
|
|||
int Style::m_timeWidgetLeft = 112;
|
||||
int Style::m_centerWindHeight = 0;
|
||||
|
||||
int Style::m_miniIconSize = 0;
|
||||
int Style::m_minIconSize = 0;
|
||||
int Style::m_rightViewWidth = 0;
|
||||
int Style::m_rightViewHeight = 0;
|
||||
|
||||
|
@ -204,6 +204,7 @@ void Style::initWidStyle()
|
|||
m_rightViewHeight = 470;
|
||||
m_leftSpaceIconText = 14;
|
||||
m_appTextRectHeight = 30;
|
||||
m_minIconSize = 8;
|
||||
|
||||
m_appTopSpace = (m_appListItemSizeWidth - m_appSpaceBetweenIconText - m_appListIconSize - m_appTextRectHeight) / 2;
|
||||
m_boundaryOffset = (m_applistGridSizeWidth - m_appListItemSizeWidth) + m_appTopSpace + 10;
|
||||
|
|
|
@ -158,7 +158,7 @@ public:
|
|||
static int m_timeWidgetTop;
|
||||
static int m_timeWidgetLeft;
|
||||
|
||||
static int m_miniIconSize;
|
||||
static int m_minIconSize;
|
||||
|
||||
static int m_rightViewWidth;
|
||||
static int m_rightViewHeight;
|
||||
|
|
Loading…
Reference in New Issue