Commit cac4f6a3 by jackalone

添加了图片的处理。

parent e5ce05bd
......@@ -357,7 +357,7 @@ void InitClass::startInit()
void InitClass::initTheme(const QString& theme)
{
QString rccPath = QString("%1/../rcc/image/%2.rcc").arg(strpath).arg(theme);
QString rccPath = QString("%1/../rcc/%2.rcc").arg(strpath).arg(theme);
qDebug()<<"rccPath is"<<rccPath;
if(!QFile(rccPath).exists())
{
......
......@@ -157,7 +157,7 @@ MainWindow::~MainWindow()
void MainWindow::InitstyleMain()
{
QString strpath= QCoreApplication::applicationDirPath();
rccPath = QString("%1/../rcc/image/%2.rcc").arg(strpath).arg(APP_THEME);
rccPath = QString("%1/../rcc/%2.rcc").arg(strpath).arg(APP_THEME);
qDebug()<<"rccPath is"<<rccPath;
if(!QFile(rccPath).exists())
{
......@@ -188,7 +188,7 @@ void MainWindow::unRegisterInitstyle()
{
QString strpath= QCoreApplication::applicationDirPath();
qDebug()<<"strpath is"<<strpath;
rccPath = QString("%1/../rcc/image/%2.rcc").arg(strpath).arg(APP_THEME);
rccPath = QString("%1/../rcc/%2.rcc").arg(strpath).arg(APP_THEME);
qDebug()<<"rccPath is"<<rccPath;
if(!QFile(rccPath).exists())
{
......@@ -456,7 +456,7 @@ void MainWindow::onChangeOrderStatus(OrderObject *orderObject, int oldStatus)
// 检测是否需要提示
if(ui->mainTableNew->rowCount() > 0)
{
emit sgnMainHome(QString("%1/../rcc/image/float_remind.png").arg(QCoreApplication::applicationDirPath()));
emit sgnMainHome(QString(":/image/float_remind.png"));
// emit sgnSound(0);
}
......@@ -464,12 +464,12 @@ void MainWindow::onChangeOrderStatus(OrderObject *orderObject, int oldStatus)
{
if(!ReadData(orderObject->order_id))
{
emit sgnMainHome(QString("%1/../rcc/image/float_remind.png").arg(QCoreApplication::applicationDirPath()));
emit sgnMainHome(QString(":/image/float_remind.png"));
}
}
else if(ui->mainTableRefund->rowCount() > 0)
{
emit sgnMainHome(QString("%1/../rcc/image/float_remind.png").arg(QCoreApplication::applicationDirPath()));
emit sgnMainHome(QString(":/image/float_remind.png"));
// emit sgnSound(1);
}
else
......
......@@ -132,7 +132,8 @@ CONFIG(debug, debug|release) {
#
RESOURCES += \
res/$${ORIGIN_TARGET}.qrc
res/$${ORIGIN_TARGET}.qrc \
res/image.qrc
win32 {
RC_FILE += res/$${ORIGIN_TARGET}.rc
system($$PWD/../fmprc.bat $$PWD/version.h $$ORIGIN_TARGET)
......
<RCC>
<qresource prefix="/">
<file>image/alert_bg.png</file>
<file>image/btnCommon_normal.png</file>
<file>image/btnCommon_press.png</file>
<file>image/btnDown_normal.png</file>
<file>image/btnDown_press.png</file>
<file>image/btnUp_normal.png</file>
<file>image/btnUp_press.png</file>
<file>image/cbxArrow.png</file>
<file>image/delBtn_normal.png</file>
<file>image/delBtn_press.png</file>
<file>image/detailBtn_close_normal.png</file>
<file>image/detailBtn_close_press.png</file>
<file>image/error.png</file>
<file>image/float_normal.png</file>
<file>image/float_remind.png</file>
<file>image/fm.ico</file>
<file>image/loading.gif</file>
<file>image/logo_0.png</file>
<file>image/magn.png</file>
<file>image/notify_bg.png</file>
<file>image/numBtn_normal.png</file>
<file>image/numBtn_press.png</file>
<file>image/numpad_bg.png</file>
<file>image/numpad_btn_123.png</file>
<file>image/numpad_btn_456.png</file>
<file>image/numpad_btn_7890.png</file>
<file>image/numpad_btn_back_normal.png</file>
<file>image/numpad_btn_back_press.png</file>
<file>image/ok.png</file>
<file>image/pickBtn_select.png</file>
<file>image/tabBtn_checked.png</file>
<file>image/tabBtn_normal.png</file>
</qresource>
</RCC>
<RCC>
<qresource>
<file>deaufult.qss</file>
<file>tabBtn_normal.png</file>
<file>tabBtn_checked.png</file>
<file>magn.png</file>
<file>pickBtn_select.png</file>
<file>error.png</file>
<file>ok.png</file>
<file>loading.gif</file>
<file>alert_bg.png</file>
<file>btnUp_normal.png</file>
<file>btnUp_press.png</file>
<file>btnDown_normal.png</file>
<file>btnDown_press.png</file>
<file>cbxArrow.png</file>
<file>logo_0.png</file>
<file>float_remind.png</file>
<file>detailBtn_close_normal.png</file>
<file>detailBtn_close_press.png</file>
<file>fm.ico</file>
<file>delBtn_normal.png</file>
<file>delBtn_press.png</file>
<file>numBtn_normal.png</file>
<file>numBtn_press.png</file>
</qresource>
</RCC>
\ No newline at end of file
rcc -binary deaufult.qrc -o .\deaufult.rcc
PAUSE
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment