invalidmenuexception.cc
来自「c++的guiQt做的开发」· CC 代码 · 共 43 行
CC
43 行
/** @file InvalidMenuException - class for exception raised when found some error in menu definitions @author Martin Petricek*/#include <qstring.h>#include "invalidmenuexception.h"namespace gui {/** Default constructor of exception @param message Exception message to pass*/InvalidMenuException::InvalidMenuException(const QString &message){ msg=message;}/** Return exception message passed in constructor of this exception The message usually explain what item is invaild and why @return exception message*/QString InvalidMenuException::message() const { return msg;}/** default destructor */InvalidMenuException::~InvalidMenuException() throw() {}/** Overloaded what() from std::exception<br> For getting usable error message if the exception is not handled */const char* InvalidMenuException::what() const throw(){ return msg.toAscii();}} // namespace gui
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?