更新代码
This commit is contained in:
@@ -181,14 +181,14 @@ void frmNavButton::initBtn4()
|
||||
NavButton *btn = btns4.at(i);
|
||||
btn->setLineSpace(10);
|
||||
btn->setLineWidth(10);
|
||||
btn->setPaddingRight(25);
|
||||
btn->setPaddingRight(35);
|
||||
btn->setShowTriangle(true);
|
||||
btn->setTextAlign(NavButton::TextAlign_Right);
|
||||
btn->setTrianglePosition(NavButton::TrianglePosition_Left);
|
||||
btn->setLinePosition(NavButton::LinePosition_Right);
|
||||
|
||||
btn->setShowIcon(true);
|
||||
btn->setIconSpace(10);
|
||||
btn->setIconSpace(20);
|
||||
btn->setIconSize(QSize(15, 15));
|
||||
btn->setIconNormal(iconNormal);
|
||||
btn->setIconHover(iconHover);
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<rect>
|
||||
<x>11</x>
|
||||
<y>245</y>
|
||||
<width>611</width>
|
||||
<width>511</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
||||
@@ -11,13 +11,13 @@ void IconHelper::initFont()
|
||||
if (!isInit) {
|
||||
isInit = true;
|
||||
if (iconFontAliBaBa == 0) {
|
||||
iconFontAliBaBa = new IconHelper(":/image/iconfont.ttf", "iconfont");
|
||||
iconFontAliBaBa = new IconHelper(":/font/iconfont.ttf", "iconfont");
|
||||
}
|
||||
if (iconFontAwesome == 0) {
|
||||
iconFontAwesome = new IconHelper(":/image/fontawesome-webfont.ttf", "FontAwesome");
|
||||
iconFontAwesome = new IconHelper(":/font/fontawesome-webfont.ttf", "FontAwesome");
|
||||
}
|
||||
if (iconFontWeather == 0) {
|
||||
iconFontWeather = new IconHelper(":/image/pe-icon-set-weather.ttf", "pe-icon-set-weather");
|
||||
iconFontWeather = new IconHelper(":/font/pe-icon-set-weather.ttf", "pe-icon-set-weather");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>image/fontawesome-webfont.ttf</file>
|
||||
<file>font/fontawesome-webfont.ttf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
Reference in New Issue
Block a user