Commit 7975626f by 刘帅

加载所有业务插件(4个)

parent a2cb0e9f
......@@ -46,7 +46,7 @@ NavWindow::NavWindow(QWidget *parent) :
this->setWindowFlags(windowFlags() | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::Tool);
connect(_btn_group, SIGNAL(buttonClicked(QAbstractButton*)), this, SLOT(onMenuBtnClicked(QAbstractButton*)));
// initMenu();
initMenu();
initSystemTrayIcon();
......@@ -152,10 +152,10 @@ void NavWindow::initMenu()
_centerPoint = QPoint(centerX, centerY);
_centerGeometry = QRect(centerX-MenuUiProp.btnWidth/2,centerY-MenuUiProp.btnWidth/2,MenuUiProp.btnWidth,MenuUiProp.btnWidth);
// for(int i=0; i<btns.size(); i++) {
// std::pair<QString, QString> btnP = btns.at(i);
// createMenuBtn(btnP.first, btnP.second);
// }
for(int i=0; i<btns.size(); i++) {
std::pair<QString, QString> btnP = btns.at(i);
createMenuBtn(btnP.first, btnP.second);
}
}
void NavWindow::createMenuBtn(const QString &btnName, const QString &showName)
......
......@@ -12,6 +12,7 @@
#include "fmp_login.h"
#include "fmp_he_handlers.h"
#include "fmp_home_settings.h"
#include "fmp_redeem_i.h"
FMPHomePrivate::FMPHomePrivate(FMPHome *q)
: q_ptr(q),
......@@ -159,6 +160,7 @@ void FMPHomePrivate::onMenuBtnClicked(QString btnName)
} else if(btnName == "coupons") {
// FMPVipInterface *e = q->GetService<FMPVipInterface>(q->_ctx);
// e->StartService();
svc = q->GetService<FMPRedeemInterface>(q->_ctx);
} else if(btnName == "tool") {
svc = q->GetService<FMPSettingsInterface>(q->_ctx);
}
......
Plugin-SymbolicName: fmp.home
Plugin-Version: 0.1.0
Plugin-Name: fmp.home
Plugin-Copyright: Freemud Ltd. Copyright (C) 2014-2017
Plugin-Copyright: Freemud Ltd. Copyright (C) 2014-2019
Plugin-Vendor: Freemud
......@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_BUILD 17
#define VER_BUILD 21
//! Convert version numbers to string
#define _STR(S) #S
......@@ -20,7 +20,7 @@
#define RES_STR_FILE_VER MAK_VER(VER_MAJOR, VER_MINOR, VER_REVISION, VER_BUILD)
#define RES_STR_PRODUCT_VER MAK_VER(VER_MAJOR, VER_MINOR, VER_REVISION, VER_BUILD)
#define RES_COMPANY_NAME "上海非码网络科技有限公司\0"
#define RES_COPYRIGHT "Freemud Ltd. Copyright (C) 2014-2017\0"
#define RES_COPYRIGHT "Freemud Ltd. Copyright (C) 2014-2019\0"
#define RES_FILE_DESC "fmp.home\0"
#define RES_INTER_NAME "fmp.home\0"
#define RES_FILE_NAME "fmp.home\0"
......
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