1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #include "JMessageTip.h"
- #include "../RewriteControl/MsgDlg/CustomMessageDlg.h"
- JMessageTip::JMessageTip()
- {
- }
- void JMessageTip::Message_information(const QString& strTip, QWidget* parent /*= nullptr*/)
- {
- }
- QMessageBox::StandardButton JMessageTip::Message_question(const QString& strMsg, QWidget* parent /*= nullptr*/)
- {
- return QMessageBox::information(nullptr, "Title", "Content", QMessageBox::Yes | QMessageBox::No);
- }
- void JMessageTip::Message_warning(const QString& strMsg, QWidget* parent /*= nullptr*/)
- {
- CreateCustomMessageDlg();
- QMessageBox::warning(nullptr, tr("Currently exiting.....","当前正在退出....."),
- tr("The current camera initialization failed and no camera is available.","当前相机初始化失败,没有可用相机"));
- }
- void JMessageTip::Message_warning(const QString& title, const QString& text, QWidget* parent /*= nullptr*/)
- {
- }
- void JMessageTip::Message_critical(const QString& strTip, QWidget* parent /*= nullptr*/)
- {
- }
- void JMessageTip::Message_critical(const QString& title, const QString& text, QWidget* parent /*= nullptr*/)
- {
- }
- void JMessageTip::CreateCustomMessageDlg()
- {
- CustomMessageDlg dlg;
- dlg.exec();
- }
|