Workaround lupdate issue
This commit is contained in:
parent
72d31c568e
commit
ce0c0c9e19
|
@ -12,11 +12,6 @@ using namespace QtUtilities;
|
|||
|
||||
namespace Settings {
|
||||
|
||||
/*
|
||||
TRANSLATOR Settings::KnownFieldModel
|
||||
Necessary for lupdate.
|
||||
*/
|
||||
|
||||
const char *KnownFieldModel::fieldName(KnownField field)
|
||||
{
|
||||
switch (field) {
|
||||
|
|
|
@ -10,9 +10,11 @@
|
|||
#define Q_OBJECT
|
||||
#endif
|
||||
|
||||
#define TAGEDITOR_ENUM_CLASS enum class
|
||||
namespace TagParser {
|
||||
enum class KnownField : unsigned int;
|
||||
TAGEDITOR_ENUM_CLASS KnownField : unsigned int;
|
||||
}
|
||||
#undef TAGEDITOR_ENUM_CLASS
|
||||
|
||||
namespace Settings {
|
||||
|
||||
|
|
|
@ -7,11 +7,6 @@ using namespace TagParser;
|
|||
|
||||
namespace Settings {
|
||||
|
||||
/*
|
||||
TRANSLATOR Settings::TargetLevelModel
|
||||
Necessary for lupdate.
|
||||
*/
|
||||
|
||||
const char *TargetLevelModel::fieldName(TagTargetLevel targetLevel)
|
||||
{
|
||||
switch (targetLevel) {
|
||||
|
|
|
@ -6,9 +6,11 @@
|
|||
#include <QAbstractListModel>
|
||||
#include <QList>
|
||||
|
||||
#define TAGEDITOR_ENUM_CLASS enum class
|
||||
namespace TagParser {
|
||||
enum class TagTargetLevel : unsigned char;
|
||||
TAGEDITOR_ENUM_CLASS TagTargetLevel : unsigned char;
|
||||
}
|
||||
#undef TAGEDITOR_ENUM_CLASS
|
||||
|
||||
namespace Settings {
|
||||
|
||||
|
|
|
@ -12,10 +12,12 @@
|
|||
|
||||
QT_FORWARD_DECLARE_CLASS(QNetworkReply)
|
||||
|
||||
#define TAGEDITOR_ENUM_CLASS enum class
|
||||
namespace TagParser {
|
||||
class TagValue;
|
||||
enum class KnownField : unsigned int;
|
||||
TAGEDITOR_ENUM_CLASS KnownField : unsigned int;
|
||||
} // namespace TagParser
|
||||
#undef TAGEDITOR_ENUM_CLASS
|
||||
|
||||
namespace QtGui {
|
||||
|
||||
|
|
|
@ -13,9 +13,11 @@
|
|||
QT_FORWARD_DECLARE_CLASS(QFileSystemModel)
|
||||
QT_FORWARD_DECLARE_CLASS(QItemSelectionModel)
|
||||
|
||||
#define TAGEDITOR_ENUM_CLASS enum class
|
||||
namespace TagParser {
|
||||
enum class TagType : unsigned int;
|
||||
}
|
||||
TAGEDITOR_ENUM_CLASS TagType : unsigned int;
|
||||
} // namespace TagParser
|
||||
#undef TAGEDITOR_ENUM_CLASS
|
||||
|
||||
namespace QtUtilities {
|
||||
class AboutDialog;
|
||||
|
|
|
@ -16,15 +16,17 @@ QT_FORWARD_DECLARE_CLASS(QGraphicsTextItem)
|
|||
QT_FORWARD_DECLARE_CLASS(QGraphicsPixmapItem)
|
||||
QT_FORWARD_DECLARE_CLASS(QGraphicsRectItem)
|
||||
|
||||
#define TAGEDITOR_ENUM_CLASS enum class
|
||||
namespace TagParser {
|
||||
class Tag;
|
||||
class TagValue;
|
||||
enum class KnownField : unsigned int;
|
||||
TAGEDITOR_ENUM_CLASS KnownField : unsigned int;
|
||||
} // namespace TagParser
|
||||
|
||||
namespace QtGui {
|
||||
|
||||
enum class PreviousValueHandling : int;
|
||||
TAGEDITOR_ENUM_CLASS PreviousValueHandling : int;
|
||||
#undef TAGEDITOR_ENUM_CLASS
|
||||
|
||||
namespace Ui {
|
||||
class PicturePreviewSelection;
|
||||
|
|
|
@ -633,11 +633,6 @@ QWidget *FileLayoutPage::setupWidget()
|
|||
return widget;
|
||||
}
|
||||
|
||||
/*
|
||||
TRANSLATOR QtGui::SettingsDialog
|
||||
Necessary for lupdate.
|
||||
*/
|
||||
|
||||
SettingsDialog::SettingsDialog(QWidget *parent)
|
||||
: QtUtilities::SettingsDialog(parent)
|
||||
{
|
||||
|
|
|
@ -14,11 +14,13 @@
|
|||
QT_FORWARD_DECLARE_CLASS(QFormLayout)
|
||||
QT_FORWARD_DECLARE_CLASS(QVBoxLayout)
|
||||
|
||||
#define TAGEDITOR_ENUM_CLASS enum class
|
||||
namespace TagParser {
|
||||
class Tag;
|
||||
class TagValue;
|
||||
enum class KnownField : unsigned int;
|
||||
TAGEDITOR_ENUM_CLASS KnownField : unsigned int;
|
||||
} // namespace TagParser
|
||||
#undef TAGEDITOR_ENUM_CLASS
|
||||
|
||||
namespace QtGui {
|
||||
|
||||
|
|
|
@ -19,9 +19,11 @@ QT_FORWARD_DECLARE_CLASS(QTreeView)
|
|||
QT_FORWARD_DECLARE_CLASS(QFile)
|
||||
QT_FORWARD_DECLARE_CLASS(QTemporaryFile)
|
||||
|
||||
#define TAGEDITOR_ENUM_CLASS enum class
|
||||
namespace TagParser {
|
||||
enum class TagType : unsigned int;
|
||||
TAGEDITOR_ENUM_CLASS TagType : unsigned int;
|
||||
}
|
||||
#undef TAGEDITOR_ENUM_CLASS
|
||||
|
||||
namespace QtGui {
|
||||
|
||||
|
|
|
@ -11,13 +11,15 @@
|
|||
QT_FORWARD_DECLARE_CLASS(QVBoxLayout)
|
||||
QT_FORWARD_DECLARE_CLASS(QLabel)
|
||||
|
||||
#define TAGEDITOR_ENUM_CLASS enum class
|
||||
namespace TagParser {
|
||||
class TagValue;
|
||||
class Tag;
|
||||
enum class KnownField : unsigned int;
|
||||
enum class TagDataType : unsigned int;
|
||||
enum class TagTextEncoding : unsigned int;
|
||||
TAGEDITOR_ENUM_CLASS KnownField : unsigned int;
|
||||
TAGEDITOR_ENUM_CLASS TagDataType : unsigned int;
|
||||
TAGEDITOR_ENUM_CLASS TagTextEncoding : unsigned int;
|
||||
} // namespace TagParser
|
||||
#undef TAGEDITOR_ENUM_CLASS
|
||||
|
||||
namespace QtUtilities {
|
||||
class ButtonOverlay;
|
||||
|
|
Loading…
Reference in New Issue