summaryrefslogtreecommitdiffstats
path: root/src/kernel/qobject.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-12-22 03:18:11 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-12-22 03:18:11 -0600
commit523c1fd99e9ba466064edfc235104ec5190e5ca3 (patch)
tree7cc06d8420c780ebd59197897f7ec096b361d9dc /src/kernel/qobject.cpp
parentd55c0cef4d3956a0c9d476bb06b4544ec702cd49 (diff)
downloadtqt3-523c1fd99e9ba466064edfc235104ec5190e5ca3.tar.gz
tqt3-523c1fd99e9ba466064edfc235104ec5190e5ca3.zip
Automated update from Qt3
Diffstat (limited to 'src/kernel/qobject.cpp')
-rw-r--r--src/kernel/qobject.cpp52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/kernel/qobject.cpp b/src/kernel/qobject.cpp
index d40bf0415..e90e2bd9b 100644
--- a/src/kernel/qobject.cpp
+++ b/src/kernel/qobject.cpp
@@ -49,6 +49,9 @@
#include "qucomextra_p.h"
#include "ntqptrvector.h"
+// TQStyleControlElementData
+#include "ntqstyle.h"
+
#ifdef QT_THREAD_SUPPORT
#include "ntqmutex.h"
#include <private/qmutexpool_p.h>
@@ -58,6 +61,33 @@
#include <ctype.h>
#include <stdlib.h>
+// Keep in sync with duplicate definition in qcommonstyle.cpp
+class TQStyleControlElementDataPrivate {
+ public:
+ bool isTQPushButton;
+ bool isTQToolButton;
+ bool isTQButton;
+ bool isTQTabBar;
+ bool isTQTitleBar;
+ bool isTQToolBox;
+ bool isTQToolBar;
+ bool isTQProgressBar;
+ bool isTQPopupMenu;
+ bool isTQComboBox;
+ bool isTQCheckBox;
+ bool isTQRadioButton;
+ bool isTQHeader;
+ bool isTQScrollBar;
+ bool isTQSlider;
+ bool isTQDialogButtons;
+ bool isTQSpinWidget;
+ bool isTQListView;
+ bool isTQDockWindow;
+ bool isTQTabWidget;
+ bool isTQFrame;
+ bool isTQWidget;
+};
+
#ifndef QT_NO_USERDATA
class TQObjectPrivate : public TQPtrVector<TQObjectUserData>
#else
@@ -70,14 +100,36 @@ public:
ownThread = NULL;
disableThreadPostedEvents = false;
setAutoDelete( TRUE );
+ controlElementData = NULL;
+ controlElementDataPrivate = NULL;
+ }
+ ~TQObjectPrivate() {
+ delete controlElementData;
+ delete controlElementDataPrivate;
}
#endif
TQThread* ownThread;
TQMutex* senderObjectListMutex;
TQMutex* childObjectListMutex;
bool disableThreadPostedEvents;
+ TQStyleControlElementData* controlElementData;
+ TQStyleControlElementDataPrivate* controlElementDataPrivate;
};
+TQStyleControlElementData* TQObject::controlElementDataObject() {
+ if (!d->controlElementData) {
+ d->controlElementData = new TQStyleControlElementData();
+ }
+ return d->controlElementData;
+}
+
+TQStyleControlElementDataPrivate* TQObject::controlElementDataPrivateObject() {
+ if (!d->controlElementDataPrivate) {
+ d->controlElementDataPrivate = new TQStyleControlElementDataPrivate();
+ }
+ return d->controlElementDataPrivate;
+}
+
#if defined(QT_THREAD_SUPPORT)
void TQObject::moveToThread_helper(TQThread *targetThread)