Replace Q_OBJECT with TQ_OBJECT

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit f5f3eb33f5)
pull/34/head
Michele Calgaro 1 year ago
parent a03a99184d
commit d6c24d70ff
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -80,7 +80,7 @@ Include files
Group include files in the Qt, KDE or local groups and sort them Group include files in the Qt, KDE or local groups and sort them
alphabetically. When writing the implementation file of a class which is a alphabetically. When writing the implementation file of a class which is a
Q_OBJECT, make sure you include the .moc file, not the .h. TQ_OBJECT, make sure you include the .moc file, not the .h.
// Qt // Qt
#include <qobject.h> #include <qobject.h>

@ -27,7 +27,7 @@ namespace Gwenview {
class BookmarkDialogPrivate; class BookmarkDialogPrivate;
class BookmarkDialog : public KDialogBase { class BookmarkDialog : public KDialogBase {
Q_OBJECT TQ_OBJECT
public: public:
enum Mode { BOOKMARK_GROUP, BOOKMARK }; enum Mode { BOOKMARK_GROUP, BOOKMARK };

@ -28,7 +28,7 @@ namespace Gwenview {
class BookmarkOwner : public TQObject, public KBookmarkOwner { class BookmarkOwner : public TQObject, public KBookmarkOwner {
Q_OBJECT TQ_OBJECT
public: public:
BookmarkOwner(TQWidget* parent); BookmarkOwner(TQWidget* parent);

@ -41,7 +41,7 @@ namespace Gwenview {
* A listview on which the user can drop urls * A listview on which the user can drop urls
*/ */
class URLDropListView : public TDEListView { class URLDropListView : public TDEListView {
Q_OBJECT TQ_OBJECT
public: public:
URLDropListView(TQWidget* parent); URLDropListView(TQWidget* parent);
@ -56,7 +56,7 @@ protected:
class BookmarkViewController : public TQObject { class BookmarkViewController : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
BookmarkViewController(TQWidget*); BookmarkViewController(TQWidget*);

@ -34,7 +34,7 @@ namespace Gwenview {
class ConfigDialogPrivate; class ConfigDialogPrivate;
class ConfigDialog : public KDialogBase { class ConfigDialog : public KDialogBase {
Q_OBJECT TQ_OBJECT
public: public:
ConfigDialog(TQWidget*, KIPI::PluginLoader*); ConfigDialog(TQWidget*, KIPI::PluginLoader*);

@ -36,7 +36,7 @@ class Job;
namespace Gwenview { namespace Gwenview {
class DirViewController : public TQObject { class DirViewController : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
DirViewController(TQWidget* parent); DirViewController(TQWidget* parent);

@ -35,7 +35,7 @@ typedef TQValueList<KURL> HistoryList;
namespace Gwenview { namespace Gwenview {
class History : public TQObject { class History : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:

@ -36,7 +36,7 @@ class KIPIInterfacePrivate;
class FileViewController; class FileViewController;
class KIPIInterface :public KIPI::Interface { class KIPIInterface :public KIPI::Interface {
Q_OBJECT TQ_OBJECT
public: public:

@ -61,7 +61,7 @@ class SlideShow;
class MainWindow : public TDEMainWindow { class MainWindow : public TDEMainWindow {
Q_OBJECT TQ_OBJECT
public: public:
MainWindow(); MainWindow();

@ -31,7 +31,7 @@ namespace Gwenview {
class Document; class Document;
class MetaEdit : public TQVBox { class MetaEdit : public TQVBox {
Q_OBJECT TQ_OBJECT
public: public:
MetaEdit(TQWidget *parent, Document*, const char *name=""); MetaEdit(TQWidget *parent, Document*, const char *name="");

@ -30,7 +30,7 @@ namespace Gwenview {
class TreeView : public KFileTreeView { class TreeView : public KFileTreeView {
Q_OBJECT TQ_OBJECT
public: public:
TreeView(TQWidget* parent); TreeView(TQWidget* parent);

@ -29,7 +29,7 @@ namespace Gwenview {
class VTabWidget : public TQWidget { class VTabWidget : public TQWidget {
Q_OBJECT TQ_OBJECT
public: public:
VTabWidget(TQWidget* parent); VTabWidget(TQWidget* parent);

@ -30,7 +30,7 @@ namespace Gwenview {
class ImageView; class ImageView;
class BCGDialog : public KDialogBase { class BCGDialog : public KDialogBase {
Q_OBJECT TQ_OBJECT
public: public:
BCGDialog(ImageView*); BCGDialog(ImageView*);

@ -42,7 +42,7 @@ enum BusyLevel {
}; };
class LIBGWENVIEW_EXPORT BusyLevelManager : public TQObject { class LIBGWENVIEW_EXPORT BusyLevelManager : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
static BusyLevelManager* instance(); static BusyLevelManager* instance();
@ -82,7 +82,7 @@ private:
destructor resets the busy level to none. destructor resets the busy level to none.
*/ */
class BusyLevelHelper : public TQObject { class BusyLevelHelper : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
BusyLevelHelper( BusyLevel level ); BusyLevelHelper( BusyLevel level );

@ -38,7 +38,7 @@ class TDEConfig;
namespace Gwenview { namespace Gwenview {
class LIBGWENVIEW_EXPORT Cache : public TQObject { class LIBGWENVIEW_EXPORT Cache : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
static Cache* instance(); static Cache* instance();

@ -34,7 +34,7 @@ namespace Gwenview {
*/ */
class ClickLineEdit : public KLineEdit class ClickLineEdit : public KLineEdit
{ {
Q_OBJECT TQ_OBJECT
TQ_PROPERTY( TQString clickMessage READ clickMessage WRITE setClickMessage ) TQ_PROPERTY( TQString clickMessage READ clickMessage WRITE setClickMessage )
public: public:

@ -27,7 +27,7 @@ namespace Gwenview {
class DeleteDialog : public KDialogBase class DeleteDialog : public KDialogBase
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -52,7 +52,7 @@ class DocumentImpl;
* - loaded() is emitted * - loaded() is emitted
*/ */
class LIBGWENVIEW_EXPORT Document : public TQObject { class LIBGWENVIEW_EXPORT Document : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
enum CommentState { NONE=0, READ_ONLY=1, WRITABLE=2 }; enum CommentState { NONE=0, READ_ONLY=1, WRITABLE=2 };

@ -38,7 +38,7 @@ class Document;
class DocumentAnimatedLoadedImplPrivate; class DocumentAnimatedLoadedImplPrivate;
class DocumentAnimatedLoadedImpl : public DocumentLoadedImpl { class DocumentAnimatedLoadedImpl : public DocumentLoadedImpl {
Q_OBJECT TQ_OBJECT
public: public:
DocumentAnimatedLoadedImpl(Document* document, const ImageFrames& frames); DocumentAnimatedLoadedImpl(Document* document, const ImageFrames& frames);

@ -31,7 +31,7 @@ namespace Gwenview {
class DocumentImpl : public TQObject { class DocumentImpl : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
DocumentImpl(Document* document); DocumentImpl(Document* document);

@ -32,7 +32,7 @@ class Document;
class DocumentJPEGLoadedImplPrivate; class DocumentJPEGLoadedImplPrivate;
class DocumentJPEGLoadedImpl : public DocumentLoadedImpl { class DocumentJPEGLoadedImpl : public DocumentLoadedImpl {
Q_OBJECT TQ_OBJECT
public: public:
DocumentJPEGLoadedImpl(Document* document, const TQByteArray& rawData); DocumentJPEGLoadedImpl(Document* document, const TQByteArray& rawData);

@ -32,7 +32,7 @@ namespace Gwenview {
class Document; class Document;
class DocumentLoadedImpl : public DocumentImpl { class DocumentLoadedImpl : public DocumentImpl {
Q_OBJECT TQ_OBJECT
public: public:
DocumentLoadedImpl(Document* document); DocumentLoadedImpl(Document* document);

@ -31,7 +31,7 @@ class Document;
class DocumentLoadingImplPrivate; class DocumentLoadingImplPrivate;
class DocumentLoadingImpl : public DocumentImpl { class DocumentLoadingImpl : public DocumentImpl {
Q_OBJECT TQ_OBJECT
public: public:
DocumentLoadingImpl(Document* document); DocumentLoadingImpl(Document* document);

@ -32,7 +32,7 @@ namespace Gwenview {
* as the urls to call it with. * as the urls to call it with.
*/ */
class ExternalToolAction : public TDEAction { class ExternalToolAction : public TDEAction {
Q_OBJECT TQ_OBJECT
public: public:
ExternalToolAction(TQObject* parent, const KService*, const KURL::List&); ExternalToolAction(TQObject* parent, const KService*, const KURL::List&);

@ -37,7 +37,7 @@ class KService;
namespace Gwenview { namespace Gwenview {
class LIBGWENVIEW_EXPORT ExternalToolContext : public TQObject { class LIBGWENVIEW_EXPORT ExternalToolContext : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
ExternalToolContext(TQObject* parent, ExternalToolContext(TQObject* parent,

@ -31,7 +31,7 @@ namespace Gwenview {
class ExternalToolDialogPrivate; class ExternalToolDialogPrivate;
class LIBGWENVIEW_EXPORT ExternalToolDialog : public KDialogBase { class LIBGWENVIEW_EXPORT ExternalToolDialog : public KDialogBase {
Q_OBJECT TQ_OBJECT
public: public:
ExternalToolDialog(TQWidget* parent); ExternalToolDialog(TQWidget* parent);

@ -42,7 +42,7 @@ class FileDetailViewItem;
class FileDetailView : public TDEListView, public FileViewBase class FileDetailView : public TDEListView, public FileViewBase
{ {
Q_OBJECT TQ_OBJECT
friend class FileDetailViewItem; friend class FileDetailViewItem;

@ -52,7 +52,7 @@ LIBGWENVIEW_EXPORT void rename(const KURL&,TQWidget* parent,TQObject* receiver=0
* @internal * @internal
*/ */
class DropMenuContext : public TQObject { class DropMenuContext : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
DropMenuContext(TQObject* parent, const KURL::List& src, const KURL& dst, bool* wasMoved) DropMenuContext(TQObject* parent, const KURL::List& src, const KURL& dst, bool* wasMoved)

@ -42,7 +42,7 @@ namespace Gwenview {
* All these classes are used by the @FileOperation namespace-like class * All these classes are used by the @FileOperation namespace-like class
*/ */
class FileOpObject : public TQObject { class FileOpObject : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
FileOpObject(const KURL&,TQWidget* parent=0L); FileOpObject(const KURL&,TQWidget* parent=0L);
@ -64,7 +64,7 @@ protected:
class FileOpCopyToObject : public FileOpObject { class FileOpCopyToObject : public FileOpObject {
Q_OBJECT TQ_OBJECT
public: public:
FileOpCopyToObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {} FileOpCopyToObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
@ -73,7 +73,7 @@ public:
}; };
class FileOpLinkToObject : public FileOpObject { class FileOpLinkToObject : public FileOpObject {
Q_OBJECT TQ_OBJECT
public: public:
FileOpLinkToObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {} FileOpLinkToObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
@ -82,7 +82,7 @@ public:
}; };
class FileOpMoveToObject : public FileOpObject { class FileOpMoveToObject : public FileOpObject {
Q_OBJECT TQ_OBJECT
public: public:
FileOpMoveToObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {} FileOpMoveToObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
@ -91,7 +91,7 @@ public:
}; };
class FileOpMakeDirObject : public FileOpObject { class FileOpMakeDirObject : public FileOpObject {
Q_OBJECT TQ_OBJECT
public: public:
FileOpMakeDirObject(const KURL& url, TQWidget* parent=0L) : FileOpObject(url, parent) {} FileOpMakeDirObject(const KURL& url, TQWidget* parent=0L) : FileOpObject(url, parent) {}
@ -99,7 +99,7 @@ public:
}; };
class FileOpDelObject : public FileOpObject { class FileOpDelObject : public FileOpObject {
Q_OBJECT TQ_OBJECT
public: public:
FileOpDelObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {} FileOpDelObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
@ -109,7 +109,7 @@ public:
class FileOpTrashObject : public FileOpObject { class FileOpTrashObject : public FileOpObject {
Q_OBJECT TQ_OBJECT
public: public:
FileOpTrashObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {} FileOpTrashObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
@ -119,7 +119,7 @@ public:
class FileOpRealDeleteObject : public FileOpObject { class FileOpRealDeleteObject : public FileOpObject {
Q_OBJECT TQ_OBJECT
public: public:
FileOpRealDeleteObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {} FileOpRealDeleteObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}
@ -129,7 +129,7 @@ public:
class FileOpRenameObject : public FileOpObject { class FileOpRenameObject : public FileOpObject {
Q_OBJECT TQ_OBJECT
public: public:
FileOpRenameObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {} FileOpRenameObject(const KURL& url,TQWidget* parent=0L) : FileOpObject(url,parent) {}

@ -45,7 +45,7 @@ namespace Gwenview {
class FileThumbnailViewItem; class FileThumbnailViewItem;
class LIBGWENVIEW_EXPORT FileThumbnailView : public TDEIconView, public FileViewBase { class LIBGWENVIEW_EXPORT FileThumbnailView : public TDEIconView, public FileViewBase {
Q_OBJECT TQ_OBJECT
friend class FileThumbnailViewItem; friend class FileThumbnailViewItem;

@ -54,7 +54,7 @@ class ImageLoader;
class DirLister; class DirLister;
class LIBGWENVIEW_EXPORT FileViewController : public TQWidget { class LIBGWENVIEW_EXPORT FileViewController : public TQWidget {
Q_OBJECT TQ_OBJECT
public: public:

@ -30,7 +30,7 @@ class TQString;
namespace Gwenview { namespace Gwenview {
class FullScreenBar : public TDEToolBar { class FullScreenBar : public TDEToolBar {
Q_OBJECT TQ_OBJECT
public: public:
FullScreenBar(TQWidget* parent); FullScreenBar(TQWidget* parent);

@ -37,7 +37,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "libgwenview_export.h" #include "libgwenview_export.h"
namespace Gwenview { namespace Gwenview {
class DecoderThread : public TSThread { class DecoderThread : public TSThread {
Q_OBJECT TQ_OBJECT
public: public:
void setRawData(const TQByteArray&); void setRawData(const TQByteArray&);
@ -59,7 +59,7 @@ private:
class ImageLoaderPrivate; class ImageLoaderPrivate;
class LIBGWENVIEW_EXPORT ImageLoader : public TQObject, public TQImageConsumer { class LIBGWENVIEW_EXPORT ImageLoader : public TQObject, public TQImageConsumer {
Q_OBJECT TQ_OBJECT
public: public:
static ImageLoader* loader( const KURL& url, const TQObject* owner, BusyLevel priority ); // use this instead of ctor static ImageLoader* loader( const KURL& url, const TQObject* owner, BusyLevel priority ); // use this instead of ctor

@ -30,7 +30,7 @@ class KURL;
namespace Gwenview { namespace Gwenview {
class ImageSaveDialog : public KFileDialog { class ImageSaveDialog : public KFileDialog {
Q_OBJECT TQ_OBJECT
public: public:
ImageSaveDialog(KURL& url,const TQCString& imageFormat,TQWidget* parent); ImageSaveDialog(KURL& url,const TQCString& imageFormat,TQWidget* parent);

@ -47,7 +47,7 @@ namespace Gwenview {
class Document; class Document;
class LIBGWENVIEW_EXPORT ImageView : public TQScrollView { class LIBGWENVIEW_EXPORT ImageView : public TQScrollView {
Q_OBJECT TQ_OBJECT
public: public:

@ -42,7 +42,7 @@ class ImageView;
class LIBGWENVIEW_EXPORT ImageViewController : public TQObject { class LIBGWENVIEW_EXPORT ImageViewController : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
ImageViewController(TQWidget* parent, Document*, TDEActionCollection*); ImageViewController(TQWidget* parent, Document*, TDEActionCollection*);

@ -34,7 +34,7 @@ namespace Gwenview {
* An input dialog which give access to its line edit * An input dialog which give access to its line edit
*/ */
class InputDialog : public KDialogBase { class InputDialog : public KDialogBase {
Q_OBJECT TQ_OBJECT
public: public:
InputDialog(TQWidget* parent); InputDialog(TQWidget* parent);

@ -46,7 +46,7 @@ enum ScaleId {
}; };
class LIBGWENVIEW_EXPORT PrintDialogPage : public KPrintDialogPage { class LIBGWENVIEW_EXPORT PrintDialogPage : public KPrintDialogPage {
Q_OBJECT TQ_OBJECT
public: public:

@ -38,7 +38,7 @@ class ImageLoader;
class LIBGWENVIEW_EXPORT SlideShow : public TQObject class LIBGWENVIEW_EXPORT SlideShow : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
SlideShow(Document* document); SlideShow(Document* document);

@ -27,7 +27,7 @@ namespace Gwenview {
class ThreadGate : public TQObject class ThreadGate : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
static ThreadGate* instance(); static ThreadGate* instance();

@ -28,7 +28,7 @@ namespace Gwenview {
class FileThumbnailView; class FileThumbnailView;
class ThumbnailDetailsDialog : public KDialogBase { class ThumbnailDetailsDialog : public KDialogBase {
Q_OBJECT TQ_OBJECT
public: public:
ThumbnailDetailsDialog(FileThumbnailView* view); ThumbnailDetailsDialog(FileThumbnailView* view);

@ -45,7 +45,7 @@ typedef TQPtrList<KFileItem> KFileItemList;
namespace Gwenview { namespace Gwenview {
class ThumbnailThread : public TSThread { class ThumbnailThread : public TSThread {
Q_OBJECT TQ_OBJECT
public: public:
void load( void load(
@ -84,7 +84,7 @@ private:
* A job that determines the thumbnails for the images in the current directory * A job that determines the thumbnails for the images in the current directory
*/ */
class LIBGWENVIEW_EXPORT ThumbnailLoadJob : public TDEIO::Job { class LIBGWENVIEW_EXPORT ThumbnailLoadJob : public TDEIO::Job {
Q_OBJECT TQ_OBJECT
public: public:
/** /**

@ -43,7 +43,7 @@ class GVDirPart;
* some services to Konqueror. All Konqueror KParts have one. * some services to Konqueror. All Konqueror KParts have one.
*/ */
class GVDirPartBrowserExtension: public KParts::BrowserExtension { class GVDirPartBrowserExtension: public KParts::BrowserExtension {
Q_OBJECT TQ_OBJECT
public: public:
@ -70,7 +70,7 @@ private:
* A Read Only KPart to browse directories and their images using Gwenview * A Read Only KPart to browse directories and their images using Gwenview
*/ */
class GVDirPart : public KParts::ReadOnlyPart { class GVDirPart : public KParts::ReadOnlyPart {
Q_OBJECT TQ_OBJECT
public: public:
GVDirPart(TQWidget*, const char*, TQObject*, const char*, const TQStringList &); GVDirPart(TQWidget*, const char*, TQObject*, const char*, const TQStringList &);

@ -44,7 +44,7 @@ class GVImagePart;
* some services to Konqueror. All Konqueror KParts have one. * some services to Konqueror. All Konqueror KParts have one.
*/ */
class GVImagePartBrowserExtension: public KParts::BrowserExtension { class GVImagePartBrowserExtension: public KParts::BrowserExtension {
Q_OBJECT TQ_OBJECT
public: public:
@ -63,7 +63,7 @@ private:
* A Read Only KPart to view images using Gwenview * A Read Only KPart to view images using Gwenview
*/ */
class GVImagePart : public KParts::ReadOnlyPart { class GVImagePart : public KParts::ReadOnlyPart {
Q_OBJECT TQ_OBJECT
public: public:
GVImagePart(TQWidget*, const char*, TQObject*, const char*, const TQStringList &); GVImagePart(TQWidget*, const char*, TQObject*, const char*, const TQStringList &);
@ -167,7 +167,7 @@ private:
* This simple helper class uploads data to a remote URL asynchronously * This simple helper class uploads data to a remote URL asynchronously
*/ */
class DataUploader : public TQObject { class DataUploader : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
DataUploader(TQWidget* dialogParent, const TQByteArray& data, const KURL& destURL); DataUploader(TQWidget* dialogParent, const TQByteArray& data, const KURL& destURL);

@ -58,7 +58,7 @@ class TSCurrentThread;
class TSThread class TSThread
: public TQObject : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TSThread(); TSThread();

Loading…
Cancel
Save