diff options
-rw-r--r-- | src/kernel/qstyle.cpp | 63 | ||||
-rw-r--r-- | src/kernel/qstyle.h | 5 |
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 }; |