summaryrefslogtreecommitdiffstats
path: root/kexi/widget/kexiscrollview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
commitc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch)
tree1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /kexi/widget/kexiscrollview.cpp
parent94844816550ad672ccfcdc25659c625546239998 (diff)
downloadkoffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz
koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'kexi/widget/kexiscrollview.cpp')
-rw-r--r--kexi/widget/kexiscrollview.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/widget/kexiscrollview.cpp b/kexi/widget/kexiscrollview.cpp
index ba4c8f9e..db9dbb14 100644
--- a/kexi/widget/kexiscrollview.cpp
+++ b/kexi/widget/kexiscrollview.cpp
@@ -52,8 +52,8 @@ KexiScrollView::KexiScrollView(TQWidget *parent, bool preview)
, m_scrollViewNavPanel(0)
{
setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken);
- viewport()->setPaletteBackgroundColor(colorGroup().mid());
- TQColor fc = palette().active().foreground(),
+ viewport()->setPaletteBackgroundColor(tqcolorGroup().mid());
+ TQColor fc = tqpalette().active().foreground(),
bc = viewport()->paletteBackgroundColor();
m_helpColor = KexiUtils::blendedColors(fc, bc, 1, 2);
// m_helpColor = TQColor((fc.red()+bc.red()*2)/3, (fc.green()+bc.green()*2)/3,
@@ -80,7 +80,7 @@ KexiScrollView::KexiScrollView(TQWidget *parent, bool preview)
//! @todo allow to hide navigator
updateScrollBars();
m_scrollViewNavPanel = new KexiRecordNavigator(this, leftMargin(), "nav");
- m_scrollViewNavPanel->setSizePolicy(TQSizePolicy::Minimum,TQSizePolicy::Preferred);
+ m_scrollViewNavPanel->tqsetSizePolicy(TQSizePolicy::Minimum,TQSizePolicy::Preferred);
}
}
@@ -173,11 +173,11 @@ KexiScrollView::refreshContentsSize()
change = true;
}
if (change) {
- repaint();
- viewport()->repaint();
+ tqrepaint();
+ viewport()->tqrepaint();
repaintContents();
updateContents(0, 0, 2000,2000);
- clipper()->repaint();
+ clipper()->tqrepaint();
resizeContents(w, h);
}
@@ -257,8 +257,8 @@ KexiScrollView::contentsMouseMoveEvent(TQMouseEvent *ev)
for(TQObject *o = list->first(); o; o = list->next())
{
TQWidget *w = (TQWidget*)o;
- tmpx = TQMAX(tmpx, (w->geometry().right() + 10));
- tmpy = TQMAX(tmpy, (w->geometry().bottom() + 10));
+ tmpx = TQMAX(tmpx, (w->tqgeometry().right() + 10));
+ tmpy = TQMAX(tmpy, (w->tqgeometry().bottom() + 10));
}
delete list;
@@ -345,7 +345,7 @@ KexiScrollView::drawContents( TQPainter * p, int clipx, int clipy, int clipw, in
//draw right and bottom borders
const int wx = childX(m_widget);
const int wy = childY(m_widget);
- p->setPen(palette().active().foreground());
+ p->setPen(tqpalette().active().foreground());
p->drawLine(wx+m_widget->width(), wy, wx+m_widget->width(), wy+m_widget->height());
p->drawLine(wx, wy+m_widget->height(), wx+m_widget->width(), wy+m_widget->height());
//kdDebug() << "KexiScrollView::drawContents() " << wy+m_widget->height() << endl;