Commit cac4f6a3 by jackalone

添加了图片的处理。

parent e5ce05bd
...@@ -357,7 +357,7 @@ void InitClass::startInit() ...@@ -357,7 +357,7 @@ void InitClass::startInit()
void InitClass::initTheme(const QString& theme) 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; qDebug()<<"rccPath is"<<rccPath;
if(!QFile(rccPath).exists()) if(!QFile(rccPath).exists())
{ {
......
...@@ -157,7 +157,7 @@ MainWindow::~MainWindow() ...@@ -157,7 +157,7 @@ MainWindow::~MainWindow()
void MainWindow::InitstyleMain() void MainWindow::InitstyleMain()
{ {
QString strpath= QCoreApplication::applicationDirPath(); 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; qDebug()<<"rccPath is"<<rccPath;
if(!QFile(rccPath).exists()) if(!QFile(rccPath).exists())
{ {
...@@ -188,7 +188,7 @@ void MainWindow::unRegisterInitstyle() ...@@ -188,7 +188,7 @@ void MainWindow::unRegisterInitstyle()
{ {
QString strpath= QCoreApplication::applicationDirPath(); QString strpath= QCoreApplication::applicationDirPath();
qDebug()<<"strpath is"<<strpath; 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; qDebug()<<"rccPath is"<<rccPath;
if(!QFile(rccPath).exists()) if(!QFile(rccPath).exists())
{ {
...@@ -456,7 +456,7 @@ void MainWindow::onChangeOrderStatus(OrderObject *orderObject, int oldStatus) ...@@ -456,7 +456,7 @@ void MainWindow::onChangeOrderStatus(OrderObject *orderObject, int oldStatus)
// 检测是否需要提示 // 检测是否需要提示
if(ui->mainTableNew->rowCount() > 0) 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); // emit sgnSound(0);
} }
...@@ -464,12 +464,12 @@ void MainWindow::onChangeOrderStatus(OrderObject *orderObject, int oldStatus) ...@@ -464,12 +464,12 @@ void MainWindow::onChangeOrderStatus(OrderObject *orderObject, int oldStatus)
{ {
if(!ReadData(orderObject->order_id)) 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) 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); // emit sgnSound(1);
} }
else else
......
...@@ -132,7 +132,8 @@ CONFIG(debug, debug|release) { ...@@ -132,7 +132,8 @@ CONFIG(debug, debug|release) {
# #
RESOURCES += \ RESOURCES += \
res/$${ORIGIN_TARGET}.qrc res/$${ORIGIN_TARGET}.qrc \
res/image.qrc
win32 { win32 {
RC_FILE += res/$${ORIGIN_TARGET}.rc RC_FILE += res/$${ORIGIN_TARGET}.rc
system($$PWD/../fmprc.bat $$PWD/version.h $$ORIGIN_TARGET) 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
QWidget
{
font: 9pt "微软雅黑";
}
/*---------------------------------MainWindow[begin]---------------------------------*/
#MainWindow
{
background-color: #303030;
}
#mainFrmHead
{
background-color: #a02125;
}
#mainSlabLogo0
{
border-image: url(:logo_0.png);
}
#mainBtnNew,#mainBtnMake,#mainBtnSend,#mainBtnFinsh,#mainBtnRefund,#mainBtnOther
{
color: #e4d0cd;
border-image: url(:tabBtn_normal.png);
}
#mainBtnNew:checked,#mainBtnMake:checked,#mainBtnSend:checked,#mainBtnFinsh:checked,#mainBtnRefund:checked,#mainBtnOther:checked
{
color: #262626;
border-image: url(:tabBtn_checked.png);
}
#mainBtnHide,#mainBtnSet
{
color: rgb(255, 255, 255);
background-color: #a02125;
border: 1px solid #ffffff;
border-radius: 5px;
}
#mainBtnHide:pressed,#mainBtnSet:pressed
{
color: #a02125;
background-color: #ffffff;
}
#mainFrmTables
{
background-color: rgb(255, 255, 255);
}
#mainBtnUp
{
border-image: url(:btnUp_normal.png);
}
#mainBtnUp:pressed
{
border-image: url(:btnUp_press.png);
}
#mainBtnDown
{
border-image: url(:btnDown_normal.png);
}
#mainBtnDown:pressed
{
border-image: url(:btnDown_press.png);
}
#mainFrmSearch
{
background-color: #303030;
}
#mainFrmSearchC,#mainEdtSearch
{
color: #cbcbcb;
background-color: #535353;
}
#mainSlabMagn
{
border-image: url(:magn.png);
}
#mainLabPlacard
{
color: #b9b9b9;
background-color: #262626;
}
#mainSlabStoreid,#mainSlabOpeStatus,#mainSlabNetStatus,#mainSlabVersion,#mainSlabCashier,
#mainSlabTime,#mainLabStoreid,#mainLabOpeStatus,#mainLabNetStatus,#mainLabVersion,#mainLabCashier
{
color: #9b9b9b;
}
#mainProcBtn
{
color: #878787;
background-color: #ffffff;
border: 1px solid #878787;
border-radius: 4px;
}
#mainProcBtn:pressed
{
color: #3de17b;
background-color: #ffffff;
border: 1px solid #3de17b;
border-radius: 4px;
}
#mainBtnOpeDetails:pressed,#mainBtnCashier:pressed
{
color: rgb(172, 219, 169);
}
#mainTableNew,#mainTableMake,#mainTableSend,#mainTableFinsh,#mainTableRefund,#mainTableOther
{
font: 11pt "微软雅黑";
color: rgb(98, 98, 98);
selection-background-color: #f4f4f4;
}
#mainTableNew QHeaderView::section,#mainTableMake QHeaderView::section,
#mainTableSend QHeaderView::section,#mainTableFinsh QHeaderView::section,
#mainTableRefund QHeaderView::section,#mainTableOther QHeaderView::section
{
border: 0px;
background: rgb(255, 255, 255);
color: #878787;
}
#mainTableNew QHeaderView::down-arrow,#mainTableMake QHeaderView::down-arrow,
#mainTableSend QHeaderView::down-arrow,#mainTableFinsh QHeaderView::down-arrow,
#mainTableRefund QHeaderView::down-arrow,#mainTableOther QHeaderView::down-arrow
{
border: 0px;
}
#mainTableNew QHeaderView::up-arrow,#mainTableMake QHeaderView::up-arrow,
#mainTableSend QHeaderView::up-arrow,#mainTableFinsh QHeaderView::up-arrow,
#mainTableRefund QHeaderView::up-arrow,#mainTableOther QHeaderView::up-arrow
{
border: 0px;
}
#mainTableNew QScrollBar:vertical,#mainTableMake QScrollBar:vertical,
#mainTableSend QScrollBar:vertical,#mainTableFinsh QScrollBar:vertical,
#mainTableRefund QScrollBar:vertical,#mainTableOther QScrollBar:vertical
{
background: transparent;
width: 8px;
}
#mainTableNew QScrollBar::handle:vertical,#mainTableMake QScrollBar::handle:vertical,
#mainTableSend QScrollBar::handle:vertical,#mainTableFinsh QScrollBar::handle:vertical,
#mainTableRefund QScrollBar::handle:vertical,#mainTableOther QScrollBar::handle:vertical
{
border-radius: 6px;
background: #878787;
min-height: 20px;
}
#mainTableNew QScrollBar::add-line:vertical,#mainTableMake QScrollBar::add-line:vertical,
#mainTableSend QScrollBar::add-line:vertical,#mainTableFinsh QScrollBar::add-line:vertical,
#mainTableRefund QScrollBar::add-line:vertical,#mainTableOther QScrollBar::add-line:vertical
{
height: 0px;
}
#mainTableNew QScrollBar::sub-line:vertical,#mainTableMake QScrollBar::sub-line:vertical,
#mainTableSend QScrollBar::sub-line:vertical,#mainTableFinsh QScrollBar::sub-line:vertical,
#mainTableRefund QScrollBar::sub-line:vertical,#mainTableOther QScrollBar::sub-line:vertical
{
height: 0px;
}
#mainListWdg0
{
spacing: 10px;
color: rgb(90, 90, 90);
font: 12pt "微软雅黑";
}
#mainListWdg0::item
{
height: 30px;
}
#mainListWdg0::item:selected
{
background: #ffbf3f;
}
/*---------------------------------mainForm[ end ]---------------------------------*/
/*---------------------------------pickForm[begin]---------------------------------*/
#ChooseForm
{
background-color: rgba(0, 0, 0, 90);
}
#pickLabMsg
{
color: rgb(255, 255, 255);
}
#pickBtn0,#pickBtn1,#pickBtn2,#pickBtn3,#pickBtn4,#pickBtn5,#pickBtn6,#pickBtn7,#pickBtn8,#pickBtn9
{
color: #3d3d3d;
background-color: rgb(255, 255, 255);
border-radius: 6px;
}
#pickBtn0:checked,#pickBtn1:checked,#pickBtn2:checked,#pickBtn3:checked,#pickBtn4:checked,
#pickBtn5:checked,#pickBtn6:checked,#pickBtn7:checked,#pickBtn8:checked,#pickBtn9:checked
{
color: rgb(24, 206, 0);
background-color: rgb(255, 255, 255);
border-radius: 6px;
border-image: url(:pickBtn_select.png);
}
#pickBtnOk
{
color: rgb(24, 206, 0);
background-color: rgb(255, 255, 255);
border-radius: 6px;
}
#pickBtnCancle
{
color: rgb(235, 0, 0);
background-color: rgb(255, 255, 255);
border-radius: 6px;
}
#pickBtnOk:pressed,#pickBtnCancle:pressed
{
color: rgb(161, 161, 161);
background-color: rgb(255, 255, 255);
border-radius: 6px;
}
#pickBtnOk:disabled
{
color: #3d3d3d;
background-color: rgb(230, 230, 230);
border-radius: 6px;
}
/*---------------------------------pickForm[ end ]---------------------------------*/
/*---------------------------------PrintSetting[begin]---------------------------------*/
#Printwidget
{
border-image: url(:alert_bg.png);
}
#label_Print
{
color: rgb(105, 107, 108);
}
#print_comboBox
{
color: rgb(105, 107, 108);
padding: 1px 18px 1px 3px;
border: 1px solid gray;
border-radius: 5px;
}
#print_comboBox::drop-down
{
width: 30px;
border-left-width: 0px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
#print_comboBox::down-arrow
{
border-image: url(:cbxArrow.png);
}
#print_comboBox QAbstractItemView::item
{
height: 40px;
}
#btn_Print,#btn_Sound,#btn_ok
{
color: #ffffff;
background-color: #ad3237;
border-radius: 4px;
}
#btn_Print:pressed,#btn_Sound:pressed,#btn_ok:pressed
{
background-color: #a02125;
}
/*---------------------------------PrintSetting[ end ]---------------------------------*/
/*---------------------------------KeyBoardForm[begin]---------------------------------*/
#KeyBoardForm
{
background-color: #f1f0f0;
}
#keyBtn_0,#keyBtn_1,#keyBtn_2,#keyBtn_3,#keyBtn_4,
#keyBtn_5,#keyBtn_6,#keyBtn_7,#keyBtn_8,#keyBtn_9
{
font: 13pt "微软雅黑";
color: rgb(98, 98, 98);
border-image: url(:numBtn_normal.png);
}
#keyBtn_0:pressed,#keyBtn_1:pressed,#keyBtn_2:pressed,#keyBtn_3:pressed,#keyBtn_4:pressed,
#keyBtn_5:pressed,#keyBtn_6:pressed,#keyBtn_7:pressed,#keyBtn_8:pressed,#keyBtn_9:pressed
{
color: #ffffff;
border-image: url(:numBtn_press.png);
}
#btn_Close
{
font: 11pt "微软雅黑";
color: rgb(98, 98, 98);
border-image: url(:numBtn_normal.png);
}
#btn_Close:pressed
{
color: #ffffff;
border-image: url(:numBtn_press.png);
}
#btn_Del
{
border-image: url(:numBtn_normal.png);
image: url(:delBtn_normal.png);
}
#btn_Del:pressed
{
border-image: url(:numBtn_press.png);
image: url(:delBtn_press.png);
}
/*---------------------------------KeyBoardForm[ end ]---------------------------------*/
/*---------------------------------alertForm[begin]---------------------------------*/
#alertWdg
{
border-image: url(:alert_bg.png);
}
#alertLabError
{
border-image: url(:error.png);
}
#alertLabOk
{
border-image: url(:ok.png);
}
#alertLabMsg
{
color: rgb(129, 129, 129);
}
#alertBtnOk
{
color: #878787;
background-color: #ffffff;
border: 1px solid #878787;
border-radius: 4px;
}
#alertBtnOk:pressed
{
color: #3de17b;
background-color: #ffffff;
border: 1px solid #3de17b;
border-radius: 4px;
}
/*---------------------------------alertForm[ end ]---------------------------------*/
/*---------------------------------DetailForm[begin]---------------------------------*/
#DetailForm
{
background-color: rgb(255, 255, 255);
}
#detailFrmHead
{
background-color: #ad3237;
}
#detailLeftHead
{
font: 10pt "微软雅黑";
color: #676666;
background-color: #f1f0f0;
}
#detailRightHead
{
font: 10pt "微软雅黑";
color: #666666;
background-color: #dddadb;
}
#detailBtnClose
{
border-image: url(:detailBtn_close_normal.png);
}
#detailBtnClose:pressed
{
border-image: url(:detailBtn_close_press.png);
}
#detailSlab11
{
color: #4b4b4b;
}
#detailSlab9,#detailSlab10
{
font: bold 10pt "微软雅黑";
color: rgb(173, 223, 152);
}
#detailSlab0,#detailSlab1,#detailSlab2,#detailSlab3,#detailSlab4,
#detailSlab5,#detailSlab6,#detailSlab7,#detailSlab8
{
color: #a6a6a6;
background-color: #faf9f9;
border: 1px solid #ececec;
}
#orderdetail,#clientMsg,#goodsAdress,#deliveryMsg,
#deliveryTime,#receivableRMB,#serverId,#invoiceMsg
{
border-top: 1px solid #ececec;
border-bottom: 1px solid #ececec;
color: #4d4d4d;
background-color: #faf9f9;
}
#orderremark
{
color: rgb(190, 63, 0);
background-color: #faf9f9;
}
#againWrite,#againPrint,#detailnull
{
color: #ffffff;
background-color: #3e4d65;
border-radius: 5px;
}
#refuseorder
{
color: #ffffff;
background-color: #ad3237;
border-radius: 5px;
}
#refuseorder:pressed
{
background-color: #be3c41;
}
#againWrite:pressed,#againPrint:pressed,#detailnull:pressed
{
background-color: #4d5f7c;
}
#HandleRecord
{
color: #4b4b4b;
background-color: #f9f9f9;
}
#merchandisedetails
{
background-color: #ffffff;
color: #333333;
}
#merchandisedetails QHeaderView::section
{
border: 0px;
background: #ffffff;
color: #636363;
}
#merchandisedetails QScrollBar:vertical
{
background: rgb(180, 205, 163, 0);
width: 10px;
}
#merchandisedetails QScrollBar::handle:vertical
{
border-radius: 6px;
background: rgb(207, 234, 187);
min-height: 20px;
}
#merchandisedetails QScrollBar::add-line:vertical,
#merchandisedetails QScrollBar::sub-line:vertical
{
height: 0px;
}
/*---------------------------------DetailForm[ end ]---------------------------------*/
/*---------------------------------RejectForm[start]-------------------------------------*/
#RejectForm
{
background-color:rgb(245,245,245);
}
#rejectLabHead
{
font: 14pt "微软雅黑";
background-color:rgb(238, 122, 42);
}
#rejectBtnOk,#rejectBtnCancle
{
font: 14pt "微软雅黑";
color: rgb(255, 255, 255);
background-color: rgb(238,122,42);
border-radius: 3px;
}
#rejectBtnOk:pressed,#rejectBtnCancle:pressed
{
color: rgb(161, 161, 161);
background-color: rgb(222,184,135);
border-radius: 3px;
}
#rejectRbtn0,#rejectRbtn1,#rejectRbtn2,#rejectRbtn3,#rejectRbtn4,#rejectRbtn5
{
font: 14pt "微软雅黑";
}
/*---------------------------------RejectForm[end]-------------------------------------*/
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