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 Pick-to: 6.6 6.5 Change-Id: Ic7afd4a806d57ba2a651ebe129f3a91f35764354 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
parent
00d8d566c6
commit
e6c8c16afb
@ -4,13 +4,14 @@
|
|||||||
#ifndef MIMETYPEMODEL_H
|
#ifndef MIMETYPEMODEL_H
|
||||||
#define MIMETYPEMODEL_H
|
#define MIMETYPEMODEL_H
|
||||||
|
|
||||||
|
#include <QCoreApplication>
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QMimeType>
|
#include <QMimeType>
|
||||||
#include <QStandardItemModel>
|
#include <QStandardItemModel>
|
||||||
|
|
||||||
class MimetypeModel : public QStandardItemModel
|
class MimetypeModel : public QStandardItemModel
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_DECLARE_TR_FUNCTIONS(MimetypeModel)
|
||||||
public:
|
public:
|
||||||
enum Columns { NameColumn, ColumnCount };
|
enum Columns { NameColumn, ColumnCount };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user