CCIMXDesktop
Loading...
Searching...
No Matches
SimpleTools.h
1
#ifndef SIMPLETOOLS_H
2
#define SIMPLETOOLS_H
3
#include <QString>
4
#include <stdexcept>
9
namespace
SimpleTools
{
10
15
class
FailedReadFile
:
public
std::runtime_error {
16
public
:
21
explicit
FailedReadFile
(
const
std::string& path)
22
:
error
(
"Can not process file:"
+ path)
23
, std::runtime_error(
"Failed read files"
) { }
28
const
char
*
what
() const noexcept {
29
return
error
.c_str();
30
}
31
32
const
std::string
error
;
33
};
34
41
QString
readQss
(
const
QString& filePath);
42
43
};
44
45
#endif
// SIMPLETOOLS_H
SimpleTools::FailedReadFile
The FailedReadFile class matches the failed load qss errors.
Definition
SimpleTools.h:15
SimpleTools::FailedReadFile::FailedReadFile
FailedReadFile(const std::string &path)
FailedReadFile.
Definition
SimpleTools.h:21
SimpleTools::FailedReadFile::error
const std::string error
error
Definition
SimpleTools.h:32
SimpleTools::FailedReadFile::what
const char * what() const noexcept
what is descriptions of the exceptions
Definition
SimpleTools.h:28
SimpleTools
SimpleTools::readQss
QString readQss(const QString &filePath)
readQss read qss from src file, this may possibly throw FailedReadFile exception
Definition
SimpleTools.cpp:3
extern_app
professionals
library
OpencvQtAdapter
ui_interface
tools
SimpleTools.h
Generated by
1.9.8