summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/styles
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-07-17 19:19:26 -0500
committerTimothy Pearson <[email protected]>2011-07-17 19:19:26 -0500
commit33d3ec06354d07cbb6164eb1c8adbd89c9ecefdd (patch)
tree4939d6567b50d0dd669257422a6868aa1259e62b /tqtinterface/qt4/src/styles
parentf01eee0362e54f47d0266295c5263790c04b6510 (diff)
downloadexperimental-33d3ec06354d07cbb6164eb1c8adbd89c9ecefdd.tar.gz
experimental-33d3ec06354d07cbb6164eb1c8adbd89c9ecefdd.zip
Revert "Rename tqsize* to size*"
This reverts commit e33879600503bacc0b4ef090f7f79ab80bb6b0da.
Diffstat (limited to 'tqtinterface/qt4/src/styles')
-rw-r--r--tqtinterface/qt4/src/styles/tqcommonstyle.cpp12
-rw-r--r--tqtinterface/qt4/src/styles/tqcommonstyle.h2
-rw-r--r--tqtinterface/qt4/src/styles/tqcompactstyle.cpp2
-rw-r--r--tqtinterface/qt4/src/styles/tqmotifstyle.cpp10
-rw-r--r--tqtinterface/qt4/src/styles/tqmotifstyle.h2
-rw-r--r--tqtinterface/qt4/src/styles/tqsgistyle.cpp6
-rw-r--r--tqtinterface/qt4/src/styles/tqsgistyle.h2
-rw-r--r--tqtinterface/qt4/src/styles/tqwindowsstyle.cpp10
-rw-r--r--tqtinterface/qt4/src/styles/tqwindowsstyle.h2
9 files changed, 24 insertions, 24 deletions
diff --git a/tqtinterface/qt4/src/styles/tqcommonstyle.cpp b/tqtinterface/qt4/src/styles/tqcommonstyle.cpp
index 252a1ff..c69fea7 100644
--- a/tqtinterface/qt4/src/styles/tqcommonstyle.cpp
+++ b/tqtinterface/qt4/src/styles/tqcommonstyle.cpp
@@ -1187,7 +1187,7 @@ TQRect TQCommonStyle::subRect(SubRect r, const TQWidget *widget) const
TQDialogButtons::Help };
for(unsigned int i = 0, cnt = 0; i < (sizeof(btns)/sizeof(btns[0])); i++) {
if(dbtns->isButtonVisible(btns[i])) {
- TQSize szH = dbtns->sizeHint(btns[i]);
+ TQSize szH = dbtns->tqsizeHint(btns[i]);
int mwidth = TQMAX(bwidth, szH.width()), mheight = TQMAX(bheight, szH.height());
if(dbtns->orientation() == Qt::Horizontal) {
start -= mwidth;
@@ -2458,7 +2458,7 @@ int TQCommonStyle::tqpixelMetric(PixelMetric m, const TQWidget *widget) const
/*! \reimp */
-TQSize TQCommonStyle::sizeFromContents(ContentsType contents,
+TQSize TQCommonStyle::tqsizeFromContents(ContentsType contents,
const TQWidget *widget,
const TQSize &contentsSize,
const TQStyleOption& opt ) const
@@ -2467,7 +2467,7 @@ TQSize TQCommonStyle::sizeFromContents(ContentsType contents,
#if defined(TQT_CHECK_STATE)
if (! widget) {
- qWarning("TQCommonStyle::sizeFromContents: widget parameter cannot be zero!");
+ qWarning("TQCommonStyle::tqsizeFromContents: widget parameter cannot be zero!");
return sz;
}
#endif
@@ -2492,7 +2492,7 @@ TQSize TQCommonStyle::sizeFromContents(ContentsType contents,
TQDialogButtons::Help };
for(unsigned int i = 0, cnt = 0; i < (sizeof(btns)/sizeof(btns[0])); i++) {
if(dbtns->isButtonVisible(btns[i])) {
- TQSize szH = dbtns->sizeHint(btns[i]);
+ TQSize szH = dbtns->tqsizeHint(btns[i]);
int mwidth = TQMAX(bwidth, szH.width()), mheight = TQMAX(bheight, szH.height());
if(dbtns->orientation() == Qt::Horizontal)
h = TQMAX(h, mheight);
@@ -2587,8 +2587,8 @@ TQSize TQCommonStyle::sizeFromContents(ContentsType contents,
int w = sz.width(), h = sz.height();
if (mi->custom()) {
- w = mi->custom()->sizeHint().width();
- h = mi->custom()->sizeHint().height();
+ w = mi->custom()->tqsizeHint().width();
+ h = mi->custom()->tqsizeHint().height();
if (! mi->custom()->fullSpan())
h += 8;
} else if ( mi->widget() ) {
diff --git a/tqtinterface/qt4/src/styles/tqcommonstyle.h b/tqtinterface/qt4/src/styles/tqcommonstyle.h
index d9e7244..ef01d89 100644
--- a/tqtinterface/qt4/src/styles/tqcommonstyle.h
+++ b/tqtinterface/qt4/src/styles/tqcommonstyle.h
@@ -127,7 +127,7 @@ public:
int tqpixelMetric( PixelMetric m, const TQWidget *widget = 0 ) const;
- TQSize sizeFromContents( ContentsType s,
+ TQSize tqsizeFromContents( ContentsType s,
const TQWidget *widget,
const TQSize &contentsSize,
const TQStyleOption& = TQStyleOption::Default ) const;
diff --git a/tqtinterface/qt4/src/styles/tqcompactstyle.cpp b/tqtinterface/qt4/src/styles/tqcompactstyle.cpp
index 9d50011..44cd711 100644
--- a/tqtinterface/qt4/src/styles/tqcompactstyle.cpp
+++ b/tqtinterface/qt4/src/styles/tqcompactstyle.cpp
@@ -129,7 +129,7 @@ static int popupMenuItemHeight( bool /*checkable*/, TQMenuItem* mi, const TQFont
h = TQMAX( h, mi->iconSet()->pixmap( TQIconSet::Small, TQIconSet::Normal ).height() + 2*motifItemFrame );
}
if ( mi->custom() )
- h = TQMAX( h, mi->custom()->sizeHint().height() + 2*motifItemVMargin + 2*motifItemFrame ) - 1;
+ h = TQMAX( h, mi->custom()->tqsizeHint().height() + 2*motifItemVMargin + 2*motifItemFrame ) - 1;
return h;
}
diff --git a/tqtinterface/qt4/src/styles/tqmotifstyle.cpp b/tqtinterface/qt4/src/styles/tqmotifstyle.cpp
index 62edca7..257c0ad 100644
--- a/tqtinterface/qt4/src/styles/tqmotifstyle.cpp
+++ b/tqtinterface/qt4/src/styles/tqmotifstyle.cpp
@@ -1730,7 +1730,7 @@ TQRect TQMotifStyle::querySubControlMetrics( TQ_ComplexControl control,
/*!\reimp
*/
-TQSize TQMotifStyle::sizeFromContents( ContentsType contents,
+TQSize TQMotifStyle::tqsizeFromContents( ContentsType contents,
const TQWidget *widget,
const TQSize &contentsSize,
const TQStyleOption& opt ) const
@@ -1742,7 +1742,7 @@ TQSize TQMotifStyle::sizeFromContents( ContentsType contents,
{
#ifndef TQT_NO_PUSHBUTTON
const TQPushButton *button = (const TQPushButton *) widget;
- sz = TQCommonStyle::sizeFromContents(contents, widget, contentsSize, opt);
+ sz = TQCommonStyle::tqsizeFromContents(contents, widget, contentsSize, opt);
if ((button->isDefault() || button->autoDefault()) &&
sz.width() < 80 && ! button->pixmap())
sz.setWidth(80);
@@ -1763,8 +1763,8 @@ TQSize TQMotifStyle::sizeFromContents( ContentsType contents,
int w = sz.width(), h = sz.height();
if (mi->custom()) {
- w = mi->custom()->sizeHint().width();
- h = mi->custom()->sizeHint().height();
+ w = mi->custom()->tqsizeHint().width();
+ h = mi->custom()->tqsizeHint().height();
if (! mi->custom()->fullSpan())
h += 2*motifItemVMargin + 2*motifItemFrame;
} else if ( mi->widget() ) {
@@ -1802,7 +1802,7 @@ TQSize TQMotifStyle::sizeFromContents( ContentsType contents,
}
default:
- sz = TQCommonStyle::sizeFromContents( contents, widget, contentsSize, opt );
+ sz = TQCommonStyle::tqsizeFromContents( contents, widget, contentsSize, opt );
break;
}
diff --git a/tqtinterface/qt4/src/styles/tqmotifstyle.h b/tqtinterface/qt4/src/styles/tqmotifstyle.h
index be7abf9..f5d6a52 100644
--- a/tqtinterface/qt4/src/styles/tqmotifstyle.h
+++ b/tqtinterface/qt4/src/styles/tqmotifstyle.h
@@ -109,7 +109,7 @@ public:
int tqpixelMetric( PixelMetric metric, const TQWidget *widget = 0 ) const;
- TQSize sizeFromContents( ContentsType contents,
+ TQSize tqsizeFromContents( ContentsType contents,
const TQWidget *widget,
const TQSize &contentsSize,
const TQStyleOption& = TQStyleOption::Default ) const;
diff --git a/tqtinterface/qt4/src/styles/tqsgistyle.cpp b/tqtinterface/qt4/src/styles/tqsgistyle.cpp
index 24c7787..6b8a17b 100644
--- a/tqtinterface/qt4/src/styles/tqsgistyle.cpp
+++ b/tqtinterface/qt4/src/styles/tqsgistyle.cpp
@@ -1365,7 +1365,7 @@ void TQSGIStyle::tqdrawComplexControl( TQ_ComplexControl control,
/*!\reimp
*/
-TQSize TQSGIStyle::sizeFromContents( ContentsType contents,
+TQSize TQSGIStyle::tqsizeFromContents( ContentsType contents,
const TQWidget *widget,
const TQSize &contentsSize,
const TQStyleOption& opt ) const
@@ -1380,7 +1380,7 @@ TQSize TQSGIStyle::sizeFromContents( ContentsType contents,
break;
TQMenuItem *mi = opt.menuItem();
- sz = TQMotifStyle::sizeFromContents( contents, widget, contentsSize,
+ sz = TQMotifStyle::tqsizeFromContents( contents, widget, contentsSize,
opt );
// SGI checkmark items needs a bit more room
const TQPopupMenu *popup = (TQPopupMenu *) widget;
@@ -1397,7 +1397,7 @@ TQSize TQSGIStyle::sizeFromContents( ContentsType contents,
break;
default:
- sz = TQMotifStyle::sizeFromContents( contents, widget, contentsSize, opt );
+ sz = TQMotifStyle::tqsizeFromContents( contents, widget, contentsSize, opt );
break;
}
diff --git a/tqtinterface/qt4/src/styles/tqsgistyle.h b/tqtinterface/qt4/src/styles/tqsgistyle.h
index 38e203a..5ae9889 100644
--- a/tqtinterface/qt4/src/styles/tqsgistyle.h
+++ b/tqtinterface/qt4/src/styles/tqsgistyle.h
@@ -103,7 +103,7 @@ public:
int tqpixelMetric( PixelMetric metric, const TQWidget *widget = 0 ) const;
- TQSize sizeFromContents( ContentsType contents,
+ TQSize tqsizeFromContents( ContentsType contents,
const TQWidget *widget,
const TQSize &contentsSize,
const TQStyleOption& = TQStyleOption::Default ) const;
diff --git a/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp b/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp
index c766c2d..aa65a5b 100644
--- a/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp
+++ b/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp
@@ -1169,7 +1169,7 @@ int TQWindowsStyle::tqpixelMetric(PixelMetric metric, const TQWidget *widget) co
/*!
\reimp
*/
-TQSize TQWindowsStyle::sizeFromContents( ContentsType contents,
+TQSize TQWindowsStyle::tqsizeFromContents( ContentsType contents,
const TQWidget *widget,
const TQSize &contentsSize,
const TQStyleOption& opt ) const
@@ -1181,7 +1181,7 @@ TQSize TQWindowsStyle::sizeFromContents( ContentsType contents,
{
#ifndef TQT_NO_PUSHBUTTON
const TQPushButton *button = (const TQPushButton *) widget;
- sz = TQCommonStyle::sizeFromContents(contents, widget, contentsSize, opt);
+ sz = TQCommonStyle::tqsizeFromContents(contents, widget, contentsSize, opt);
int w = sz.width(), h = sz.height();
int defwidth = 0;
@@ -1211,8 +1211,8 @@ TQSize TQWindowsStyle::sizeFromContents( ContentsType contents,
int w = sz.width(), h = sz.height();
if (mi->custom()) {
- w = mi->custom()->sizeHint().width();
- h = mi->custom()->sizeHint().height();
+ w = mi->custom()->tqsizeHint().width();
+ h = mi->custom()->tqsizeHint().height();
if (! mi->custom()->fullSpan())
h += 2*windowsItemVMargin + 2*windowsItemFrame;
} else if ( mi->widget() ) {
@@ -1261,7 +1261,7 @@ TQSize TQWindowsStyle::sizeFromContents( ContentsType contents,
}
default:
- sz = TQCommonStyle::sizeFromContents(contents, widget, sz, opt);
+ sz = TQCommonStyle::tqsizeFromContents(contents, widget, sz, opt);
break;
}
diff --git a/tqtinterface/qt4/src/styles/tqwindowsstyle.h b/tqtinterface/qt4/src/styles/tqwindowsstyle.h
index e1aed6c..a5a6fe9 100644
--- a/tqtinterface/qt4/src/styles/tqwindowsstyle.h
+++ b/tqtinterface/qt4/src/styles/tqwindowsstyle.h
@@ -104,7 +104,7 @@ public:
int tqpixelMetric( PixelMetric metric,
const TQWidget *widget = 0 ) const;
- TQSize sizeFromContents( ContentsType contents,
+ TQSize tqsizeFromContents( ContentsType contents,
const TQWidget *widget,
const TQSize &contentsSize,
const TQStyleOption& = TQStyleOption::Default ) const;