diff options
Diffstat (limited to 'chalk')
-rw-r--r-- | chalk/core/kis_brush.cpp | 2 | ||||
-rw-r--r-- | chalk/core/kis_imagepipe_brush.cpp | 2 | ||||
-rw-r--r-- | chalk/plugins/filters/levelfilter/kgradientslider.cpp | 2 | ||||
-rw-r--r-- | chalk/ui/kcurve.cpp | 2 | ||||
-rw-r--r-- | chalk/ui/kis_boundary_painter.cpp | 2 | ||||
-rw-r--r-- | chalk/ui/kis_canvas.cpp | 2 | ||||
-rw-r--r-- | chalk/ui/kis_clipboard.cpp | 6 | ||||
-rw-r--r-- | chalk/ui/kis_qpaintdevice_canvas.cpp | 2 | ||||
-rw-r--r-- | chalk/ui/kis_qpaintdevice_canvas_painter.cpp | 2 |
9 files changed, 11 insertions, 11 deletions
diff --git a/chalk/core/kis_brush.cpp b/chalk/core/kis_brush.cpp index 49ee8e58..98453aa5 100644 --- a/chalk/core/kis_brush.cpp +++ b/chalk/core/kis_brush.cpp @@ -287,7 +287,7 @@ bool KisBrush::save() { TQFile file(filename()); file.open(IO_WriteOnly | IO_Truncate); - bool ok = saveToDevice(TQT_TQIODEVICE(&file)); + bool ok = saveToDevice(&file); file.close(); return ok; } diff --git a/chalk/core/kis_imagepipe_brush.cpp b/chalk/core/kis_imagepipe_brush.cpp index 5c60b517..a95d5fa2 100644 --- a/chalk/core/kis_imagepipe_brush.cpp +++ b/chalk/core/kis_imagepipe_brush.cpp @@ -265,7 +265,7 @@ bool KisImagePipeBrush::save() { TQFile file(filename()); file.open(IO_WriteOnly | IO_Truncate); - bool ok = saveToDevice(TQT_TQIODEVICE(&file)); + bool ok = saveToDevice(&file); file.close(); return ok; } diff --git a/chalk/plugins/filters/levelfilter/kgradientslider.cpp b/chalk/plugins/filters/levelfilter/kgradientslider.cpp index de5dd76d..150c7923 100644 --- a/chalk/plugins/filters/levelfilter/kgradientslider.cpp +++ b/chalk/plugins/filters/levelfilter/kgradientslider.cpp @@ -66,7 +66,7 @@ void KGradientSlider::paintEvent(TQPaintEvent *) /*if (!m_dragging) {*/ TQPixmap pm(size()); TQPainter p1; - p1.begin(TQT_TQPAINTDEVICE(&pm), this); + p1.begin(&pm, this); pm.fill(); diff --git a/chalk/ui/kcurve.cpp b/chalk/ui/kcurve.cpp index a69b7846..524a9a76 100644 --- a/chalk/ui/kcurve.cpp +++ b/chalk/ui/kcurve.cpp @@ -133,7 +133,7 @@ void KCurve::paintEvent(TQPaintEvent *) TQPixmap pm(size()); TQPainter p1; - p1.begin(TQT_TQPAINTDEVICE(&pm), this); + p1.begin(&pm, this); // draw background if(m_pix) diff --git a/chalk/ui/kis_boundary_painter.cpp b/chalk/ui/kis_boundary_painter.cpp index 2b842e53..1d782fbb 100644 --- a/chalk/ui/kis_boundary_painter.cpp +++ b/chalk/ui/kis_boundary_painter.cpp @@ -26,7 +26,7 @@ TQPixmap KisBoundaryPainter::createPixmap(const KisBoundary& boundary, int w, int h) { TQPixmap target(w, h); - KisCanvasPainter painter(TQT_TQPAINTDEVICE(&target)); + KisCanvasPainter painter(&target); painter.eraseRect(0, 0, w, h); diff --git a/chalk/ui/kis_canvas.cpp b/chalk/ui/kis_canvas.cpp index 1128d9f2..2ec1a044 100644 --- a/chalk/ui/kis_canvas.cpp +++ b/chalk/ui/kis_canvas.cpp @@ -735,7 +735,7 @@ void KisCanvasWidget::X11TabletDevice::writeSettingsToConfig() void KisCanvasWidget::X11TabletDevice::enableEvents(TQWidget *widget) const { if (!m_eventClassList.isEmpty()) { - int result = XSelectExtensionEvent(TQT_TQPAINTDEVICE(widget)->x11AppDisplay(), widget->handle(), + int result = XSelectExtensionEvent(widget->x11AppDisplay(), widget->handle(), const_cast<XEventClass*>(&m_eventClassList[0]), m_eventClassList.count()); diff --git a/chalk/ui/kis_clipboard.cpp b/chalk/ui/kis_clipboard.cpp index bb80e75e..1e8040ca 100644 --- a/chalk/ui/kis_clipboard.cpp +++ b/chalk/ui/kis_clipboard.cpp @@ -82,7 +82,7 @@ void KisClipboard::setClip(KisPaintDeviceSP selection) // We'll create a store (ZIP format) in memory TQBuffer buffer; TQCString mimeType("application/x-chalk-selection"); - KoStore* store = KoStore::createStore( TQT_TQIODEVICE(&buffer), KoStore::Write, mimeType ); + KoStore* store = KoStore::createStore( &buffer, KoStore::Write, mimeType ); Q_ASSERT( store ); Q_ASSERT( !store->bad() ); @@ -146,7 +146,7 @@ KisPaintDeviceSP KisClipboard::clip() if(cbData && cbData->provides(mimeType)) { TQBuffer buffer(cbData->encodedData(mimeType)); - KoStore* store = KoStore::createStore( TQT_TQIODEVICE(&buffer), KoStore::Read, mimeType ); + KoStore* store = KoStore::createStore( &buffer, KoStore::Read, mimeType ); KisProfile *profile=0; if (store->hasFile("profile.icc")) { @@ -244,7 +244,7 @@ TQSize KisClipboard::clipSize() if(cbData && cbData->provides(mimeType)) { TQBuffer buffer(cbData->encodedData(mimeType)); - KoStore* store = KoStore::createStore( TQT_TQIODEVICE(&buffer), KoStore::Read, mimeType ); + KoStore* store = KoStore::createStore( &buffer, KoStore::Read, mimeType ); KisProfile *profile=0; if (store->hasFile("profile.icc")) { diff --git a/chalk/ui/kis_qpaintdevice_canvas.cpp b/chalk/ui/kis_qpaintdevice_canvas.cpp index e3824f55..cd024c4a 100644 --- a/chalk/ui/kis_qpaintdevice_canvas.cpp +++ b/chalk/ui/kis_qpaintdevice_canvas.cpp @@ -108,7 +108,7 @@ bool KisTQPaintDeviceCanvasWidget::x11Event(XEvent *event) KisCanvasWidgetPainter *KisTQPaintDeviceCanvasWidget::createPainter() { - return new KisTQPaintDeviceCanvasPainter(TQT_TQPAINTDEVICE(this)); + return new KisTQPaintDeviceCanvasPainter(this); } #if defined(EXTENDED_X11_TABLET_SUPPORT) diff --git a/chalk/ui/kis_qpaintdevice_canvas_painter.cpp b/chalk/ui/kis_qpaintdevice_canvas_painter.cpp index cc598ef2..7f3a6723 100644 --- a/chalk/ui/kis_qpaintdevice_canvas_painter.cpp +++ b/chalk/ui/kis_qpaintdevice_canvas_painter.cpp @@ -38,7 +38,7 @@ bool KisTQPaintDeviceCanvasPainter::begin(KisCanvasWidget *canvasWidget, bool un TQWidget *widget = dynamic_cast<TQWidget *>(canvasWidget); if (widget != 0) { - return m_painter.begin(TQT_TQPAINTDEVICE(widget), unclipped); + return m_painter.begin(widget, unclipped); } else { return false; } |