QObject: Add Q_OBJECT macro where necessary

This commit is contained in:
Christian Hohnstaedt 2021-05-22 09:01:19 +02:00 committed by Christian Hohnstädt
parent e78a254b48
commit a233ec89f9
4 changed files with 7 additions and 1 deletions

View File

@ -71,7 +71,7 @@ QSqlError database_model::initSqlDB()
}
if (i != MAX_SCHEMAS)
throw errorEx(tr("Failed to update the database schema to the current version"));
throw errorEx(QObject::tr("Failed to update the database schema to the current version"));
TransCommit();
return QSqlError();

View File

@ -18,6 +18,8 @@
class pkcs11_lib : public QLibrary
{
Q_OBJECT
private:
CK_FUNCTION_LIST *p11;
QString file, load_error;

View File

@ -30,6 +30,8 @@ typedef int mode_t;
class XFile : public QFile
{
Q_OBJECT
private:
FILE *filp;
BIO *b;

View File

@ -22,6 +22,8 @@ class xcaWarning: public QMessageBox
class xcaWarningGui : public QObject, public xcaWarning_i
{
Q_OBJECT
public:
int showBox(const QString &txt, QMessageBox::Icon icn,
QMessageBox::StandardButtons b);