summaryrefslogtreecommitdiffstats
path: root/chalk/ui/kis_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/ui/kis_view.cc')
-rw-r--r--chalk/ui/kis_view.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chalk/ui/kis_view.cc b/chalk/ui/kis_view.cc
index 4455f17d..eecfa659 100644
--- a/chalk/ui/kis_view.cc
+++ b/chalk/ui/kis_view.cc
@@ -313,8 +313,8 @@ KisView::KisView(KisDoc *doc, KisUndoAdapter *adapter, TQWidget *parent, const c
m_brushesAndStuffToolBar = new KisControlFrame(mainWindow(), this);
// Load all plugins
- KTrader::OfferList offers = KTrader::self()->query(TQString::tqfromLatin1("Chalk/ViewPlugin"),
- TQString::tqfromLatin1("(Type == 'Service') and "
+ KTrader::OfferList offers = KTrader::self()->query(TQString::fromLatin1("Chalk/ViewPlugin"),
+ TQString::fromLatin1("(Type == 'Service') and "
"([X-Chalk-Version] == 2)"));
KTrader::OfferList::ConstIterator iter;
for(iter = offers.begin(); iter != offers.end(); ++iter)
@@ -694,7 +694,7 @@ void KisView::resizeEvent(TQResizeEvent *)
}
KisImageSP img = currentImg();
- TQ_INT32 scrollBarExtent = tqstyle().tqpixelMetric(TQStyle::PM_ScrollBarExtent);
+ TQ_INT32 scrollBarExtent = tqstyle().pixelMetric(TQStyle::PM_ScrollBarExtent);
TQ_INT32 drawH;
TQ_INT32 drawW;
TQ_INT32 docW;
@@ -962,7 +962,7 @@ void KisView::updateTQPaintDeviceCanvas(const TQRect& imageRect)
for (unsigned int i = 0; i < rects.count(); i++) {
TQRect er = rects[i];
- gc.fillRect(er, tqcolorGroup().mid());
+ gc.fillRect(er, colorGroup().mid());
}
wr &= TQRect(0, 0, img->width(), img->height());
}
@@ -1014,7 +1014,7 @@ void KisView::updateTQPaintDeviceCanvas(const TQRect& imageRect)
}
// paintGuides();
} else {
- gc.fillRect(vr, tqcolorGroup().mid());
+ gc.fillRect(vr, colorGroup().mid());
}
}
}
@@ -1066,7 +1066,7 @@ void KisView::paintOpenGLView(const TQRect& canvasRect)
glDrawBuffer(GL_BACK);
- TQColor widgetBackgroundColor = tqcolorGroup().mid();
+ TQColor widgetBackgroundColor = colorGroup().mid();
glClearColor(widgetBackgroundColor.red() / 255.0, widgetBackgroundColor.green() / 255.0, widgetBackgroundColor.blue() / 255.0, 1.0);
glClear(GL_COLOR_BUFFER_BIT);