Revamp MIME Type Browser Ex: Replace QObject by Q_DECLARE_TR_FUNCTIONS
When declaring MimetypeModel class, use Q_DECLARE_TR_FUNCTIONS Macro instead of Q_OBJECT as we only need to call tr() functions. Task-number: QTBUG-117146 Change-Id: Ic7afd4a806d57ba2a651ebe129f3a91f35764354 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> (cherry picked from commit e6c8c16afb3e0481ac6322506ed0c801b2b3ec71) (cherry picked from commit e8f20fbb52eaf7facc27ff1d0a5f22f154348d97) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1d07ea9182
commit
a1e6788119
@ -4,13 +4,14 @@
|
||||
#ifndef MIMETYPEMODEL_H
|
||||
#define MIMETYPEMODEL_H
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QHash>
|
||||
#include <QMimeType>
|
||||
#include <QStandardItemModel>
|
||||
|
||||
class MimetypeModel : public QStandardItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DECLARE_TR_FUNCTIONS(MimetypeModel)
|
||||
public:
|
||||
enum Columns { NameColumn, ColumnCount };
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user