summaryrefslogtreecommitdiffstats
path: root/experimental/tqtinterface/qt4/src/styles
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-17 19:19:26 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-07-17 19:19:26 -0500
commit07b6965cbac26077a27faf4071487d9a25fb3aa0 (patch)
tree8c5910ccfcab2269f7948dbd74a83048cd99d2ac /experimental/tqtinterface/qt4/src/styles
parent1c210202b89d0161f34432bc74157a278670f4dc (diff)
downloadtde-07b6965cbac26077a27faf4071487d9a25fb3aa0.tar.gz
tde-07b6965cbac26077a27faf4071487d9a25fb3aa0.zip
Revert "Rename tqsize* to size*"
This reverts commit e33879600503bacc0b4ef090f7f79ab80bb6b0da.
Diffstat (limited to 'experimental/tqtinterface/qt4/src/styles')
-rw-r--r--experimental/tqtinterface/qt4/src/styles/tqcommonstyle.cpp12
-rw-r--r--experimental/tqtinterface/qt4/src/styles/tqcommonstyle.h2
-rw-r--r--experimental/tqtinterface/qt4/src/styles/tqcompactstyle.cpp2
-rw-r--r--experimental/tqtinterface/qt4/src/styles/tqmotifstyle.cpp10
-rw-r--r--experimental/tqtinterface/qt4/src/styles/tqmotifstyle.h2
-rw-r--r--experimental/tqtinterface/qt4/src/styles/tqsgistyle.cpp6
-rw-r--r--experimental/tqtinterface/qt4/src/styles/tqsgistyle.h2
-rw-r--r--experimental/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp10
-rw-r--r--experimental/tqtinterface/qt4/src/styles/tqwindowsstyle.h2
9 files changed, 24 insertions, 24 deletions
diff --git a/experimental/tqtinterface/qt4/src/styles/tqcommonstyle.cpp b/experimental/tqtinterface/qt4/src/styles/tqcommonstyle.cpp
index 252a1ff79..c69fea7f2 100644
--- a/experimental/tqtinterface/qt4/src/styles/tqcommonstyle.cpp
+++ b/experimental/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/experimental/tqtinterface/qt4/src/styles/tqcommonstyle.h b/experimental/tqtinterface/qt4/src/styles/tqcommonstyle.h
index d9e7244d4..ef01d8958 100644
--- a/experimental/tqtinterface/qt4/src/styles/tqcommonstyle.h
+++ b/experimental/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/experimental/tqtinterface/qt4/src/styles/tqcompactstyle.cpp b/experimental/tqtinterface/qt4/src/styles/tqcompactstyle.cpp
index 9d5001152..44cd711b4 100644
--- a/experimental/tqtinterface/qt4/src/styles/tqcompactstyle.cpp
+++ b/experimental/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/experimental/tqtinterface/qt4/src/styles/tqmotifstyle.cpp b/experimental/tqtinterface/qt4/src/styles/tqmotifstyle.cpp
index 62edca778..257c0ad81 100644
--- a/experimental/tqtinterface/qt4/src/styles/tqmotifstyle.cpp
+++ b/experimental/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/experimental/tqtinterface/qt4/src/styles/tqmotifstyle.h b/experimental/tqtinterface/qt4/src/styles/tqmotifstyle.h
index be7abf96e..f5d6a52b4 100644
--- a/experimental/tqtinterface/qt4/src/styles/tqmotifstyle.h
+++ b/experimental/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/experimental/tqtinterface/qt4/src/styles/tqsgistyle.cpp b/experimental/tqtinterface/qt4/src/styles/tqsgistyle.cpp
index 24c778730..6b8a17bf3 100644
--- a/experimental/tqtinterface/qt4/src/styles/tqsgistyle.cpp
+++ b/experimental/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/experimental/tqtinterface/qt4/src/styles/tqsgistyle.h b/experimental/tqtinterface/qt4/src/styles/tqsgistyle.h
index 38e203a2e..5ae9889d0 100644
--- a/experimental/tqtinterface/qt4/src/styles/tqsgistyle.h
+++ b/experimental/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/experimental/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp b/experimental/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp
index c766c2d53..aa65a5b94 100644
--- a/experimental/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp
+++ b/experimental/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/experimental/tqtinterface/qt4/src/styles/tqwindowsstyle.h b/experimental/tqtinterface/qt4/src/styles/tqwindowsstyle.h
index e1aed6c18..a5a6fe9a3 100644
--- a/experimental/tqtinterface/qt4/src/styles/tqwindowsstyle.h
+++ b/experimental/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;