Commit 55b92061 authored by Gilles Caulier's avatar Gilles Caulier 🗼

Clazy++ : fix missing Q_OBJECT macro

parent fd749229
Pipeline #38034 failed with stage
in 64 minutes and 37 seconds
......@@ -151,6 +151,7 @@ int DBStatDlg::generateItemsList(DatabaseItem::Category category, const QString&
ti->setFont(1, ft);
// Add space.
new QTreeWidgetItem(listView(), QStringList());
return total;
......
......@@ -35,6 +35,8 @@ namespace Digikam
class DIGIKAM_GUI_EXPORT DBStatDlg : public InfoDlg
{
Q_OBJECT
public:
explicit DBStatDlg(QWidget* const parent);
......
......@@ -33,6 +33,7 @@ namespace Digikam
class DIGIKAM_GUI_EXPORT MysqlInitBinary : public DBinaryIface
{
Q_OBJECT
public:
......
......@@ -33,6 +33,7 @@ namespace Digikam
class DIGIKAM_GUI_EXPORT MysqlServBinary : public DBinaryIface
{
Q_OBJECT
public:
......
......@@ -84,7 +84,10 @@ DPluginAction::ActionCategory DPluginAction::actionCategory() const
bool b = false;
int v = property("DPluginActionCategory").toInt(&b);
if (b) return (ActionCategory)v;
if (b)
{
return (ActionCategory)v;
}
return InvalidCat;
}
......
......@@ -38,6 +38,8 @@ namespace Digikam
class DIGIKAM_EXPORT DPluginAction : public QAction
{
Q_OBJECT
public:
/// Plugin action types to resume where they can be used.
......@@ -83,23 +85,23 @@ public:
/**
* Return the action type depending of category.
*/
ActionType actionType() const;
ActionType actionType() const;
/**
* Return the plugin id string hosting this action.
*/
QString pluginId() const;
QString pluginId() const;
/**
* Return the XML section to merge in KXMLGUIClient host XML definition.
*/
QString xmlSection() const;
QString xmlSection() const;
/**
* Return details as string about action properties.
* For debug purpose only.
*/
QString toString() const;
QString toString() const;
static bool pluginActionLessThan(DPluginAction* const a, DPluginAction* const b);
};
......
......@@ -43,6 +43,7 @@ class IOJobData;
class DIGIKAM_GUI_EXPORT IOJobsManager : public QObject
{
Q_OBJECT
public:
......
......@@ -38,6 +38,8 @@ namespace Digikam
class DIGIKAM_GUI_EXPORT AlbumModel : public AbstractCheckableAlbumModel
{
Q_OBJECT
public:
/// Create a model containing all physical albums
......@@ -57,6 +59,8 @@ protected:
class DIGIKAM_GUI_EXPORT TagModel : public AbstractCheckableAlbumModel
{
Q_OBJECT
public:
/**
......
......@@ -70,46 +70,46 @@ public:
public:
explicit Private()
: caption(nullptr),
pickLabel(nullptr),
colorLabel(nullptr),
rating(nullptr),
tags(nullptr),
labelFile(nullptr),
labelFolder(nullptr),
labelFileModifiedDate(nullptr),
labelFileSize(nullptr),
labelFileOwner(nullptr),
labelFilePermissions(nullptr),
labelImageMime(nullptr),
labelImageDimensions(nullptr),
labelImageRatio(nullptr),
labelImageBitDepth(nullptr),
labelImageColorMode(nullptr),
labelHasSidecar(nullptr),
labelPhotoMake(nullptr),
labelPhotoModel(nullptr),
labelPhotoDateTime(nullptr),
labelPhotoLens(nullptr),
labelPhotoAperture(nullptr),
labelPhotoFocalLength(nullptr),
labelPhotoExposureTime(nullptr),
labelPhotoSensitivity(nullptr),
labelPhotoExposureMode(nullptr),
labelPhotoFlash(nullptr),
labelPhotoWhiteBalance(nullptr),
labelCaption(nullptr),
labelTags(nullptr),
labelPickLabel(nullptr),
labelColorLabel(nullptr),
labelRating(nullptr),
labelVideoAspectRatio(nullptr),
labelVideoDuration(nullptr),
labelVideoFrameRate(nullptr),
labelVideoVideoCodec(nullptr),
labelVideoAudioBitRate(nullptr),
: caption (nullptr),
pickLabel (nullptr),
colorLabel (nullptr),
rating (nullptr),
tags (nullptr),
labelFile (nullptr),
labelFolder (nullptr),
labelFileModifiedDate (nullptr),
labelFileSize (nullptr),
labelFileOwner (nullptr),
labelFilePermissions (nullptr),
labelImageMime (nullptr),
labelImageDimensions (nullptr),
labelImageRatio (nullptr),
labelImageBitDepth (nullptr),
labelImageColorMode (nullptr),
labelHasSidecar (nullptr),
labelPhotoMake (nullptr),
labelPhotoModel (nullptr),
labelPhotoDateTime (nullptr),
labelPhotoLens (nullptr),
labelPhotoAperture (nullptr),
labelPhotoFocalLength (nullptr),
labelPhotoExposureTime (nullptr),
labelPhotoSensitivity (nullptr),
labelPhotoExposureMode (nullptr),
labelPhotoFlash (nullptr),
labelPhotoWhiteBalance (nullptr),
labelCaption (nullptr),
labelTags (nullptr),
labelPickLabel (nullptr),
labelColorLabel (nullptr),
labelRating (nullptr),
labelVideoAspectRatio (nullptr),
labelVideoDuration (nullptr),
labelVideoFrameRate (nullptr),
labelVideoVideoCodec (nullptr),
labelVideoAudioBitRate (nullptr),
labelVideoAudioChannelType(nullptr),
labelVideoAudioCodec(nullptr)
labelVideoAudioCodec (nullptr)
{
}
......
......@@ -41,12 +41,14 @@ namespace Digikam
class DIGIKAM_EXPORT ItemPropertiesTab : public DExpanderBox
{
Q_OBJECT
public:
explicit ItemPropertiesTab(QWidget* const parent);
~ItemPropertiesTab() override;
void setCurrentURL(const QUrl& url=QUrl());
void setCurrentURL(const QUrl& url = QUrl());
void setPhotoInfoDisable(const bool b);
void setVideoInfoDisable(const bool b);
......@@ -119,11 +121,11 @@ public:
/**
* Return human readable string of file size in bytes.
*/
static QString humanReadableBytesCount(qint64 bytes, bool si=false);
static QString humanReadableBytesCount(qint64 bytes, bool si = false);
private:
static double doubleToHumanReadableFraction(double val, long* num, long* den, long maxden=2);
static double doubleToHumanReadableFraction(double val, long* num, long* den, long maxden = 2);
private:
......
......@@ -48,6 +48,8 @@ namespace Digikam
class DIGIKAM_EXPORT DRawDecoder : public QObject
{
Q_OBJECT
public:
/**
......
......@@ -498,7 +498,7 @@ SafeTemporaryFile::SafeTemporaryFile()
SafeTemporaryFile::SafeTemporaryFile(const QString& templ)
: QTemporaryFile(templ),
m_templ(templ)
m_templ (templ)
{
}
......
......@@ -90,6 +90,8 @@ private:
class DIGIKAM_EXPORT SafeTemporaryFile : public QTemporaryFile
{
Q_OBJECT
public:
explicit SafeTemporaryFile(const QString& templ);
......
......@@ -37,6 +37,7 @@ class LoadSaveTask;
class DIGIKAM_EXPORT ManagedLoadSaveThread : public LoadSaveThread
{
Q_OBJECT
public:
......
......@@ -51,7 +51,7 @@ namespace Digikam
DToolTipStyleSheet::DToolTipStyleSheet(const QFont& font)
: maxStringLength(30),
unavailable(i18n("unavailable"))
unavailable (i18n("unavailable"))
{
QString fontSize = (font.pointSize() == -1) ? QString::fromUtf8("font-size: %1px;").arg(font.pixelSize())
: QString::fromUtf8("font-size: %1pt;").arg(font.pointSize());
......
......@@ -73,6 +73,7 @@ public:
class DIGIKAM_EXPORT DItemToolTip : public QLabel
{
Q_OBJECT
public:
......
......@@ -49,6 +49,8 @@ namespace Digikam
*/
class DIGIKAM_EXPORT DLineWidget : public QFrame
{
Q_OBJECT
public:
explicit DLineWidget(Qt::Orientation orientation, QWidget* const parent = nullptr);
......
......@@ -42,6 +42,8 @@ class DXmlGuiWindow;
class DIGIKAM_EXPORT DAboutData : public QObject
{
Q_OBJECT
public:
explicit DAboutData(DXmlGuiWindow* const parent);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment