summaryrefslogtreecommitdiffstats
path: root/kexi/widget/tableview/kexitableviewheader.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:05:41 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:05:41 -0600
commit2d6954f69caf63ed5057bd8e1405a65d7d970292 (patch)
tree88e6436b2e81d4e68313f02a9021054252e14cc4 /kexi/widget/tableview/kexitableviewheader.cpp
parentf0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (diff)
downloadkoffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.tar.gz
koffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'kexi/widget/tableview/kexitableviewheader.cpp')
-rw-r--r--kexi/widget/tableview/kexitableviewheader.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kexi/widget/tableview/kexitableviewheader.cpp b/kexi/widget/tableview/kexitableviewheader.cpp
index d217337b..cab7f791 100644
--- a/kexi/widget/tableview/kexitableviewheader.cpp
+++ b/kexi/widget/tableview/kexitableviewheader.cpp
@@ -34,7 +34,7 @@ class KexiTableViewHeaderStyle : public KexiUtils::StyleProxy
KexiTableViewHeaderStyle(TQStyle *parentStyle, TQWidget *widget)
: KexiUtils::StyleProxy(parentStyle)
{
- setBackgroundColor( widget->tqpalette().active().background() );
+ setBackgroundColor( widget->palette().active().background() );
}
~KexiTableViewHeaderStyle() {}
@@ -65,7 +65,7 @@ KexiTableViewHeader::KexiTableViewHeader(TQWidget * parent, const char * name)
, m_selectedSection(-1)
, m_styleChangeEnabled(true)
{
- styleChange( tqstyle() );
+ styleChange( style() );
installEventFilter(this);
connect(this, TQT_SIGNAL(sizeChange(int,int,int)),
this, TQT_SLOT(slotSizeChange(int,int,int)));
@@ -81,7 +81,7 @@ void KexiTableViewHeader::styleChange( TQStyle& oldStyle )
if (!m_styleChangeEnabled)
return;
m_styleChangeEnabled = false;
- setStyle( new KexiTableViewHeaderStyle(&tqApp->tqstyle(), this) );
+ setStyle( new KexiTableViewHeaderStyle(&tqApp->style(), this) );
m_styleChangeEnabled = true;
}
@@ -126,7 +126,7 @@ bool KexiTableViewHeader::eventFilter(TQObject * watched, TQEvent * e)
TQString tip = m_toolTips[ section ];
if (tip.isEmpty()) { //try label
TQFontMetrics fm(font());
- int minWidth = fm.width( label( section ) ) + tqstyle().pixelMetric( TQStyle::PM_HeaderMargin );
+ int minWidth = fm.width( label( section ) ) + style().pixelMetric( TQStyle::PM_HeaderMargin );
TQIconSet *iset = iconSet( section );
if (iset)
minWidth += (2+iset->pixmap( TQIconSet::Small, TQIconSet::Normal ).width()); //taken from TQHeader::sectionSizeHint()
@@ -186,16 +186,16 @@ void KexiTableViewHeader::paintSection( TQPainter * p, int index, const TQRect &
{
const bool paintSelection = index==m_selectedSection && index != -1;
if (paintSelection) {
- static_cast<KexiTableViewHeaderStyle&>(tqstyle()).setBackgroundColor(
+ static_cast<KexiTableViewHeaderStyle&>(style()).setBackgroundColor(
KexiUtils::blendedColors(
- tqpalette().active().background(), m_selectionBackgroundColor, 2, 1) );
+ palette().active().background(), m_selectionBackgroundColor, 2, 1) );
}
TQHeader::paintSection( p, index, fr );
if (paintSelection) { //revert the color for subsequent paints
- static_cast<KexiTableViewHeaderStyle&>(tqstyle()).setBackgroundColor(
- tqpalette().active().background());
+ static_cast<KexiTableViewHeaderStyle&>(style()).setBackgroundColor(
+ palette().active().background());
}
}