[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kbibtex] src: Adding 'Q_OBJECT' to class declarations
From:       Thomas Fischer <fischer () unix-ag ! uni-kl ! de>
Date:       2015-11-30 22:01:30
Message-ID: E1a3WVm-0004o8-Ac () scm ! kde ! org
[Download RAW message or body]

Git commit 16db7b2753c235b45e0b6c07a9c0535b1eac5520 by Thomas Fischer.
Committed on 30/11/2015 at 22:01.
Pushed by thomasfischer into branch 'master'.

Adding 'Q_OBJECT' to class declarations

A recent 'clazy' run suggested to add the 'Q_OBJECT' macro
to class declarations. Adding this macro only to declarations
in header files, as there are minor issues when adding this
macro to class definitions in .cpp files (something about missing
.moc includes).

M  +2    -0    src/data/models/filemodel.h
M  +8    -0    src/gui/element/elementwidgets.h
M  +2    -0    src/gui/italictextitemmodel.h
M  +2    -0    src/gui/preferences/settingsidsuggestionseditor.h
M  +2    -0    src/gui/valuelistmodel.h
M  +2    -0    src/gui/widgets/hidingtabwidget.h
M  +4    -0    src/gui/widgets/radiobuttontreeview.h
M  +3    -0    src/gui/widgets/starrating.h
M  +2    -0    src/io/fileexporterbibtex.h
M  +2    -0    src/io/fileexporterbibtex2html.h
M  +2    -0    src/io/fileexporterbibtexoutput.h
M  +2    -0    src/io/fileexporterbibutils.h
M  +2    -0    src/io/fileexporterpdf.h
M  +2    -0    src/io/fileexporterps.h
M  +2    -0    src/io/fileexporterris.h
M  +2    -0    src/io/fileexporterrtf.h
M  +1    -0    src/io/fileexportertoolchain.h
M  +2    -0    src/io/fileexporterxml.h
M  +2    -0    src/io/fileexporterxslt.h
M  +1    -0    src/io/fileimporter.h
M  +2    -0    src/io/fileimporterbibtex.h
M  +2    -0    src/io/fileimporterbibutils.h
M  +2    -0    src/io/fileimporterpdf.h
M  +2    -0    src/io/fileimporterris.h
M  +2    -0    src/program/docklets/documentpreview.h
M  +2    -0    src/program/documentlist.h

http://commits.kde.org/kbibtex/16db7b2753c235b45e0b6c07a9c0535b1eac5520

diff --git a/src/data/models/filemodel.h b/src/data/models/filemodel.h
index e87bbea..27ff659 100644
--- a/src/data/models/filemodel.h
+++ b/src/data/models/filemodel.h
@@ -37,6 +37,8 @@ class FileModel;
  */
 class KBIBTEXDATA_EXPORT FileModel : public QAbstractTableModel, private \
NotificationListener  {
+    Q_OBJECT
+
 public:
     static const int NumberRole;
     static const int SortRole;
diff --git a/src/gui/element/elementwidgets.h b/src/gui/element/elementwidgets.h
index 57503fd..75c98c1 100644
--- a/src/gui/element/elementwidgets.h
+++ b/src/gui/element/elementwidgets.h
@@ -81,6 +81,8 @@ signals:
 
 class EntryConfiguredWidget : public ElementWidget
 {
+    Q_OBJECT
+
 private:
     typedef struct {
         QLabel *label;
@@ -162,6 +164,8 @@ signals:
 
 class FilesWidget : public ElementWidget
 {
+    Q_OBJECT
+
 private:
     FieldInput *fileList;
 
@@ -225,6 +229,8 @@ private slots:
 
 class MacroWidget : public ElementWidget
 {
+    Q_OBJECT
+
 private:
     FieldInput *fieldInputValue;
 
@@ -246,6 +252,8 @@ public:
 
 class PreambleWidget : public ElementWidget
 {
+    Q_OBJECT
+
 private:
     FieldInput *fieldInputValue;
 
diff --git a/src/gui/italictextitemmodel.h b/src/gui/italictextitemmodel.h
index c611414..ae93a60 100644
--- a/src/gui/italictextitemmodel.h
+++ b/src/gui/italictextitemmodel.h
@@ -34,6 +34,8 @@
  */
 class KBIBTEXGUI_EXPORT ItalicTextItemModel : public QAbstractItemModel
 {
+    Q_OBJECT
+
 public:
     enum ItalicTextItemModelRole {
         /// Role to retrieve identifier for a row
diff --git a/src/gui/preferences/settingsidsuggestionseditor.h \
b/src/gui/preferences/settingsidsuggestionseditor.h index e2df22d..5be5253 100644
--- a/src/gui/preferences/settingsidsuggestionseditor.h
+++ b/src/gui/preferences/settingsidsuggestionseditor.h
@@ -46,6 +46,8 @@ class IdSuggestionsEditWidget;
  */
 class TokenWidget : public QGroupBox
 {
+    Q_OBJECT
+
 protected:
     QGridLayout *gridLayout;
     QFormLayout *formLayout;
diff --git a/src/gui/valuelistmodel.h b/src/gui/valuelistmodel.h
index 5fa3354..8e0827c 100644
--- a/src/gui/valuelistmodel.h
+++ b/src/gui/valuelistmodel.h
@@ -56,6 +56,8 @@ private slots:
 
 class KBIBTEXGUI_EXPORT ValueListModel : public QAbstractTableModel, private \
NotificationListener  {
+    Q_OBJECT
+
 public:
     enum ValueListModelRole {
         /// Role to sort values
diff --git a/src/gui/widgets/hidingtabwidget.h b/src/gui/widgets/hidingtabwidget.h
index f7d919a..6233d10 100644
--- a/src/gui/widgets/hidingtabwidget.h
+++ b/src/gui/widgets/hidingtabwidget.h
@@ -31,6 +31,8 @@
  */
 class HidingTabWidget : public QTabWidget
 {
+    Q_OBJECT
+
 public:
     /// Negative value to describe an invalid tab position
     static const int InvalidTabPosition;
diff --git a/src/gui/widgets/radiobuttontreeview.h \
b/src/gui/widgets/radiobuttontreeview.h index d4abebc..f2b98a3 100644
--- a/src/gui/widgets/radiobuttontreeview.h
+++ b/src/gui/widgets/radiobuttontreeview.h
@@ -29,6 +29,8 @@ class QKeyEvent;
  */
 class RadioButtonItemDelegate : public QStyledItemDelegate
 {
+    Q_OBJECT
+
 public:
     explicit RadioButtonItemDelegate(QObject *p);
 
@@ -55,6 +57,8 @@ public:
  */
 class RadioButtonTreeView : public QTreeView
 {
+    Q_OBJECT
+
 public:
     enum RadioButtonTreeViewRole {
         RadioSelectedRole = Qt::UserRole + 102,
diff --git a/src/gui/widgets/starrating.h b/src/gui/widgets/starrating.h
index b438ab6..81d1502 100644
--- a/src/gui/widgets/starrating.h
+++ b/src/gui/widgets/starrating.h
@@ -45,6 +45,7 @@ class QPushButton;
 class KBIBTEXGUI_EXPORT StarRating : public QWidget
 {
     Q_OBJECT
+
 public:
     /**
      * Create a star rating widget with a given number of stars.
@@ -120,6 +121,8 @@ private:
  */
 class KBIBTEXGUI_EXPORT StarRatingFieldInput : public StarRating
 {
+    Q_OBJECT
+
 public:
     explicit StarRatingFieldInput(int maxNumberOfStars, QWidget *parent = NULL)
             : StarRating(maxNumberOfStars, parent) {
diff --git a/src/io/fileexporterbibtex.h b/src/io/fileexporterbibtex.h
index fb8d9f8..0a4763f 100644
--- a/src/io/fileexporterbibtex.h
+++ b/src/io/fileexporterbibtex.h
@@ -37,6 +37,8 @@ class IConvLaTeX;
  */
 class KBIBTEXIO_EXPORT FileExporterBibTeX : public FileExporter
 {
+    Q_OBJECT
+
 public:
     enum UseLaTeXEncoding {leUTF8, leLaTeX, leRaw};
 
diff --git a/src/io/fileexporterbibtex2html.h b/src/io/fileexporterbibtex2html.h
index 39e3784..1a6a177 100644
--- a/src/io/fileexporterbibtex2html.h
+++ b/src/io/fileexporterbibtex2html.h
@@ -24,6 +24,8 @@
  */
 class KBIBTEXIO_EXPORT FileExporterBibTeX2HTML: public FileExporterToolchain
 {
+    Q_OBJECT
+
 public:
     FileExporterBibTeX2HTML();
     ~FileExporterBibTeX2HTML();
diff --git a/src/io/fileexporterbibtexoutput.h b/src/io/fileexporterbibtexoutput.h
index d85ac8e..cfeba53 100644
--- a/src/io/fileexporterbibtexoutput.h
+++ b/src/io/fileexporterbibtexoutput.h
@@ -26,6 +26,8 @@
  */
 class KBIBTEXIO_EXPORT FileExporterBibTeXOutput : public FileExporterToolchain
 {
+    Q_OBJECT
+
 public:
     enum OutputType {BibTeXLogFile, BibTeXBlockList};
     explicit FileExporterBibTeXOutput(OutputType outputType);
diff --git a/src/io/fileexporterbibutils.h b/src/io/fileexporterbibutils.h
index dcf9dd3..19ffbb4 100644
--- a/src/io/fileexporterbibutils.h
+++ b/src/io/fileexporterbibutils.h
@@ -26,6 +26,8 @@
  */
 class KBIBTEXIO_EXPORT FileExporterBibUtils : public FileExporter, public BibUtils
 {
+    Q_OBJECT
+
 public:
     explicit FileExporterBibUtils();
     ~FileExporterBibUtils();
diff --git a/src/io/fileexporterpdf.h b/src/io/fileexporterpdf.h
index 90271b9..0e00284 100644
--- a/src/io/fileexporterpdf.h
+++ b/src/io/fileexporterpdf.h
@@ -26,6 +26,8 @@
  */
 class KBIBTEXIO_EXPORT FileExporterPDF : public FileExporterToolchain
 {
+    Q_OBJECT
+
 public:
     enum FileEmbedding { NoFileEmbedding = 0, EmbedBibTeXFile = 1, EmbedReferences = \
                2, EmbedBibTeXFileAndReferences = EmbedBibTeXFile | EmbedReferences};
     explicit FileExporterPDF(FileEmbedding fileEmbedding = \
                FileExporterPDF::EmbedBibTeXFileAndReferences);
diff --git a/src/io/fileexporterps.h b/src/io/fileexporterps.h
index 250b38f..e4d426d 100644
--- a/src/io/fileexporterps.h
+++ b/src/io/fileexporterps.h
@@ -26,6 +26,8 @@ class QStringList;
  */
 class KBIBTEXIO_EXPORT FileExporterPS : public FileExporterToolchain
 {
+    Q_OBJECT
+
 public:
     FileExporterPS();
     ~FileExporterPS();
diff --git a/src/io/fileexporterris.h b/src/io/fileexporterris.h
index 204a024..c922bed 100644
--- a/src/io/fileexporterris.h
+++ b/src/io/fileexporterris.h
@@ -27,6 +27,8 @@ class Entry;
 
 class KBIBTEXIO_EXPORT FileExporterRIS : public FileExporter
 {
+    Q_OBJECT
+
 public:
     FileExporterRIS();
     ~FileExporterRIS();
diff --git a/src/io/fileexporterrtf.h b/src/io/fileexporterrtf.h
index 27467c7..eb00f56 100644
--- a/src/io/fileexporterrtf.h
+++ b/src/io/fileexporterrtf.h
@@ -26,6 +26,8 @@ class QTextStream;
  */
 class KBIBTEXIO_EXPORT FileExporterRTF : public FileExporterToolchain
 {
+    Q_OBJECT
+
 public:
     FileExporterRTF();
     ~FileExporterRTF();
diff --git a/src/io/fileexportertoolchain.h b/src/io/fileexportertoolchain.h
index 627d2b3..cb55d5c 100644
--- a/src/io/fileexportertoolchain.h
+++ b/src/io/fileexportertoolchain.h
@@ -32,6 +32,7 @@ class QStringList;
 class KBIBTEXIO_EXPORT FileExporterToolchain : public FileExporter
 {
     Q_OBJECT
+
 public:
     static const QString keyBabelLanguage;
     static const QString defaultBabelLanguage;
diff --git a/src/io/fileexporterxml.h b/src/io/fileexporterxml.h
index 18ecafb..bda2bb2 100644
--- a/src/io/fileexporterxml.h
+++ b/src/io/fileexporterxml.h
@@ -32,6 +32,8 @@ class Comment;
  */
 class KBIBTEXIO_EXPORT FileExporterXML : public FileExporter
 {
+    Q_OBJECT
+
 public:
     FileExporterXML();
     ~FileExporterXML();
diff --git a/src/io/fileexporterxslt.h b/src/io/fileexporterxslt.h
index 2a9f772..4c791a2 100644
--- a/src/io/fileexporterxslt.h
+++ b/src/io/fileexporterxslt.h
@@ -32,6 +32,8 @@ class Comment;
  */
 class KBIBTEXIO_EXPORT FileExporterXSLT : public FileExporter
 {
+    Q_OBJECT
+
 public:
     explicit FileExporterXSLT(const QString &xsltFilename = QString());
     ~FileExporterXSLT();
diff --git a/src/io/fileimporter.h b/src/io/fileimporter.h
index eb2331d..059d4ee 100644
--- a/src/io/fileimporter.h
+++ b/src/io/fileimporter.h
@@ -32,6 +32,7 @@ class Person;
 class KBIBTEXIO_EXPORT FileImporter : public QObject
 {
     Q_OBJECT
+
 public:
     FileImporter();
     ~FileImporter();
diff --git a/src/io/fileimporterbibtex.h b/src/io/fileimporterbibtex.h
index 722d315..2ee15e9 100644
--- a/src/io/fileimporterbibtex.h
+++ b/src/io/fileimporterbibtex.h
@@ -43,6 +43,8 @@ class Keyword;
  */
 class KBIBTEXIO_EXPORT FileImporterBibTeX : public FileImporter
 {
+    Q_OBJECT
+
 public:
     static const char *defaultCodecName;
 
diff --git a/src/io/fileimporterbibutils.h b/src/io/fileimporterbibutils.h
index 083abad..75a8ef6 100644
--- a/src/io/fileimporterbibutils.h
+++ b/src/io/fileimporterbibutils.h
@@ -26,6 +26,8 @@
  */
 class KBIBTEXIO_EXPORT FileImporterBibUtils : public FileImporter, public BibUtils
 {
+    Q_OBJECT
+
 public:
     explicit FileImporterBibUtils();
     ~FileImporterBibUtils();
diff --git a/src/io/fileimporterpdf.h b/src/io/fileimporterpdf.h
index 68c5f2c..a7a00ba 100644
--- a/src/io/fileimporterpdf.h
+++ b/src/io/fileimporterpdf.h
@@ -30,6 +30,8 @@ class FileImporterBibTeX;
  */
 class KBIBTEXIO_EXPORT FileImporterPDF : public FileImporter
 {
+    Q_OBJECT
+
 public:
     FileImporterPDF();
     ~FileImporterPDF();
diff --git a/src/io/fileimporterris.h b/src/io/fileimporterris.h
index 820116a..21e15d2 100644
--- a/src/io/fileimporterris.h
+++ b/src/io/fileimporterris.h
@@ -25,6 +25,8 @@
  */
 class KBIBTEXIO_EXPORT FileImporterRIS : public FileImporter
 {
+    Q_OBJECT
+
 public:
     FileImporterRIS();
     ~FileImporterRIS();
diff --git a/src/program/docklets/documentpreview.h \
b/src/program/docklets/documentpreview.h index 7cd81e9..b32905f 100644
--- a/src/program/docklets/documentpreview.h
+++ b/src/program/docklets/documentpreview.h
@@ -38,6 +38,8 @@ class File;
 
 class ImageLabel : public QLabel
 {
+    Q_OBJECT
+
 public:
     explicit ImageLabel(const QString &text, QWidget *parent = NULL, Qt::WindowFlags \
f = 0);  void setPixmap(const QPixmap &pixmap);
diff --git a/src/program/documentlist.h b/src/program/documentlist.h
index f250e63..e1e5f0d 100644
--- a/src/program/documentlist.h
+++ b/src/program/documentlist.h
@@ -33,6 +33,8 @@ class OpenFileInfoManager;
 
 class DocumentListDelegate : public QStyledItemDelegate
 {
+    Q_OBJECT
+
 private:
     OpenFileInfoManager *ofim;
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic