summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-12-22 23:49:26 -0600
committerTimothy Pearson <[email protected]>2013-12-22 23:49:26 -0600
commit9ec64b2c9b7c0d8a2eefcb9dea6964c62792aff7 (patch)
tree5e409d433ad9fb164323c7cfbc9b0b24bc349417
parentd1b6b7be7d5bc7754a143b424295a267bbdafdbd (diff)
downloadqt3-9ec64b2c9b7c0d8a2eefcb9dea6964c62792aff7.tar.gz
qt3-9ec64b2c9b7c0d8a2eefcb9dea6964c62792aff7.zip
Add slow QStyleControlElementData copy constructor for use with python
-rw-r--r--src/kernel/qstyle.cpp63
-rw-r--r--src/kernel/qstyle.h5
2 files changed, 68 insertions, 0 deletions
diff --git a/src/kernel/qstyle.cpp b/src/kernel/qstyle.cpp
index eb12c1b..3e8350a 100644
--- a/src/kernel/qstyle.cpp
+++ b/src/kernel/qstyle.cpp
@@ -2836,4 +2836,67 @@ QStyleControlElementData::~QStyleControlElementData() {
//
}
+QStyleControlElementData::QStyleControlElementData(const QStyleControlElementData& orig) {
+ isNull = orig.isNull;
+ widgetObjectTypes = orig.widgetObjectTypes;
+ allDataPopulated = orig.allDataPopulated;
+ wflags = orig.wflags;
+ windowState = orig.windowState;
+ bgPixmap = orig.bgPixmap;
+ bgBrush = orig.bgBrush;
+ bgColor = orig.bgColor;
+ bgOffset = orig.bgOffset;
+ backgroundMode = orig.backgroundMode;
+ fgPixmap = orig.fgPixmap;
+ fgColor = orig.fgColor;
+ colorGroup = orig.colorGroup;
+ geometry = orig.geometry;
+ rect = orig.rect;
+ pos = orig.pos;
+ icon = orig.icon;
+ iconSet = orig.iconSet;
+ text = orig.text;
+ orientation = orig.orientation;
+ activeItemPaletteBgColor = orig.activeItemPaletteBgColor;
+ palette = orig.palette;
+ totalSteps = orig.totalSteps;
+ currentStep = orig.currentStep;
+ tickMarkSetting = orig.tickMarkSetting;
+ tickInterval = orig.tickInterval;
+ minSteps = orig.minSteps;
+ maxSteps = orig.maxSteps;
+ startStep = orig.startStep;
+ pageStep = orig.pageStep;
+ lineStep = orig.lineStep;
+ dlgVisibleButtons = orig.dlgVisibleButtons;
+ dlgVisibleSizeHints = orig.dlgVisibleSizeHints;
+ progressText = orig.progressText;
+ textLabel = orig.textLabel;
+ font = orig.font;
+ percentageVisible = orig.percentageVisible;
+ dwData = orig.dwData;
+ toolButtonTextPosition = orig.toolButtonTextPosition;
+ popupDelay = orig.popupDelay;
+ titleBarData = orig.titleBarData;
+ spinWidgetData = orig.spinWidgetData;
+ parentWidgetData = orig.parentWidgetData;
+ viewportData = orig.viewportData;
+ listViewData = orig.listViewData;
+ tabBarData = orig.tabBarData;
+ checkListItemData = orig.checkListItemData;
+ comboBoxLineEditFlags = orig.comboBoxLineEditFlags;
+ frameStyle = orig.frameStyle;
+ sliderRect = orig.sliderRect;
+ activePainter = orig.activePainter;
+ toolBarData = orig.toolBarData;
+ comboBoxListBoxFlags = orig.comboBoxListBoxFlags;
+ paletteBgColor = orig.paletteBgColor;
+ parentWidgetFlags = orig.parentWidgetFlags;
+ name = orig.name;
+ caption = orig.caption;
+ topLevelWidgetData = orig.topLevelWidgetData;
+ topLevelWidgetFlags = orig.topLevelWidgetFlags;
+ paletteBgPixmap = orig.paletteBgPixmap;
+}
+
#endif // QT_NO_STYLE
diff --git a/src/kernel/qstyle.h b/src/kernel/qstyle.h
index 3f4ae79..7b1edb3 100644
--- a/src/kernel/qstyle.h
+++ b/src/kernel/qstyle.h
@@ -287,9 +287,14 @@ class Q_EXPORT QStyleControlElementData {
Q_UINT32 topLevelWidgetFlags;
QPixmap paletteBgPixmap;
+#ifdef ENABLE_QSTYLECONTROLELEMENTDATA_SLOW_COPY
+ public:
+ QStyleControlElementData(const QStyleControlElementData&);
+#else // ENABLE_QSTYLECONTROLELEMENTDATA_SLOW_COPY
private:
// Disable copy constructor
QStyleControlElementData(const QStyleControlElementData&);
+#endif // ENABLE_QSTYLECONTROLELEMENTDATA_SLOW_COPY
};