diff options
author | Michele Calgaro <[email protected]> | 2023-12-03 00:48:10 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-05 11:40:38 +0900 |
commit | c75fee7ff7bdf6e1d1380e641c746e3fc7eb04bf (patch) | |
tree | b3315369fc4a83faa3679957c98da185b285baa3 /kmplot | |
parent | c407c4552feb9568ca2aef8c42288e30b7d0f034 (diff) | |
download | tdeedu-c75fee7ff7bdf6e1d1380e641c746e3fc7eb04bf.tar.gz tdeedu-c75fee7ff7bdf6e1d1380e641c746e3fc7eb04bf.zip |
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit f08f58fdc18573fbdf637e872a0a4646be58628c)
Diffstat (limited to 'kmplot')
-rw-r--r-- | kmplot/kmplot/MainDlg.cpp | 6 | ||||
-rw-r--r-- | kmplot/kmplot/View.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/kmplot/kmplot/MainDlg.cpp b/kmplot/kmplot/MainDlg.cpp index 99cc6704..81434774 100644 --- a/kmplot/kmplot/MainDlg.cpp +++ b/kmplot/kmplot/MainDlg.cpp @@ -298,7 +298,7 @@ void MainDlg::slotExport() if( url.fileName().right(4).lower()==".svg") { TQPicture pic; - view->draw(TQT_TQPAINTDEVICE(&pic), 2); + view->draw(&pic, 2); if (url.isLocalFile() ) pic.save( url.prettyURL(0,KURL::StripFileProtocol), "SVG"); else @@ -314,7 +314,7 @@ void MainDlg::slotExport() else if( url.fileName().right(4).lower()==".bmp") { TQPixmap pic(100, 100); - view->draw(TQT_TQPAINTDEVICE(&pic), 3); + view->draw(&pic, 3); if (url.isLocalFile() ) pic.save( url.prettyURL(0,KURL::StripFileProtocol), "BMP"); else @@ -330,7 +330,7 @@ void MainDlg::slotExport() else if( url.fileName().right(4).lower()==".png") { TQPixmap pic(100, 100); - view->draw(TQT_TQPAINTDEVICE(&pic), 3); + view->draw(&pic, 3); if (url.isLocalFile() ) pic.save( url.prettyURL(0,KURL::StripFileProtocol), "PNG"); else diff --git a/kmplot/kmplot/View.cpp b/kmplot/kmplot/View.cpp index 61045a62..ce872219 100644 --- a/kmplot/kmplot/View.cpp +++ b/kmplot/kmplot/View.cpp @@ -594,7 +594,7 @@ void View::drawPlot() if( m_minmax->isShown() ) m_minmax->updateFunctions(); buffer.fill(backgroundcolor); - draw(TQT_TQPAINTDEVICE(&buffer), 0); + draw(&buffer, 0); TQPainter p; p.begin(this); bitBlt( this, 0, 0, &buffer, 0, 0, width(), height() ); @@ -1801,7 +1801,7 @@ void View::areaUnderGraph( Ufkt *ufkt, char const p_mode, double &dmin, double DC->end(); setFocus(); update(); - draw(TQT_TQPAINTDEVICE(&buffer),0); + draw(&buffer,0); } if ( calculated_area>0) |