Automated update from Qt3

pull/1/head
Timothy Pearson 11 years ago
parent 5339ac3f51
commit 04a4f34bdc

@ -1189,25 +1189,9 @@ public:
// Old 2.x TQStyle API
#ifndef QT_NO_COMPAT
int defaultFrameWidth() const
{
TQStyleControlElementData ceData;
return pixelMetric( PM_DefaultFrameWidth, ceData, CEF_None );
}
void tabbarMetrics( const TQWidget* t,
int& hf, int& vf, int& ov ) const
{
TQStyleControlElementData ceData;
hf = pixelMetric( PM_TabBarTabHSpace, ceData, CEF_None, t );
vf = pixelMetric( PM_TabBarTabVSpace, ceData, CEF_None, t );
ov = pixelMetric( PM_TabBarBaseOverlap, ceData, CEF_None, t );
}
TQSize scrollBarExtent() const
{
TQStyleControlElementData ceData;
return TQSize(pixelMetric(PM_ScrollBarExtent, ceData, CEF_None),
pixelMetric(PM_ScrollBarExtent, ceData, CEF_None));
}
int defaultFrameWidth() const;
void tabbarMetrics( const TQWidget* t, int& hf, int& vf, int& ov ) const;
TQSize scrollBarExtent() const;
#endif
public:

@ -2795,6 +2795,30 @@ TQPixmap TQStyle::stylePixmap(StylePixmap sp, const TQWidget *w, const TQStyleOp
\obsolete
*/
#ifndef QT_NO_COMPAT
int TQStyle::defaultFrameWidth() const
{
TQStyleControlElementData ceData;
return pixelMetric( PM_DefaultFrameWidth, ceData, CEF_None );
}
void TQStyle::tabbarMetrics( const TQWidget* t, int& hf, int& vf, int& ov ) const
{
TQStyleControlElementData ceData;
hf = pixelMetric( PM_TabBarTabHSpace, ceData, CEF_None, t );
vf = pixelMetric( PM_TabBarTabVSpace, ceData, CEF_None, t );
ov = pixelMetric( PM_TabBarBaseOverlap, ceData, CEF_None, t );
}
TQSize TQStyle::scrollBarExtent() const
{
TQStyleControlElementData ceData;
ceData.orientation = TQt::Horizontal;
return TQSize(pixelMetric(PM_ScrollBarExtent, ceData, CEF_None),
pixelMetric(PM_ScrollBarExtent, ceData, CEF_None));
}
#endif
TQStyleControlElementData::TQStyleControlElementData() {
isNull = true;
activePainter = 0;

Loading…
Cancel
Save