From e4447979cd6fa7f45cfbf10ce5319317b5d80f73 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 26 May 2006 06:37:04 +0000 Subject: [PATCH] bug 12468 (additional fix to avoid compilation problems in VISU) --- src/SUIT/SUIT_ViewWindow.cxx | 13 ++++++++++++- src/SUIT/SUIT_ViewWindow.h | 3 ++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/SUIT/SUIT_ViewWindow.cxx b/src/SUIT/SUIT_ViewWindow.cxx index 149748729..a9b56c882 100755 --- a/src/SUIT/SUIT_ViewWindow.cxx +++ b/src/SUIT/SUIT_ViewWindow.cxx @@ -79,7 +79,8 @@ QImage SUIT_ViewWindow::dumpView() } /*! - Saves scene rendering in window to file + Saves image to file according to the format + \param image - image \param fileName - name of file \param format - string contains name of format (for example, "BMP"(default) or "JPEG", "JPG") */ @@ -100,6 +101,16 @@ bool SUIT_ViewWindow::dumpViewToFormat( const QImage& img, const QString& fileNa return res; } +/*! + Saves scene rendering in window to file + \param fileName - name of file + \param format - string contains name of format (for example, "BMP"(default) or "JPEG", "JPG") +*/ +bool SUIT_ViewWindow::dumpViewToFormat( const QString& fileName, const QString& format ) +{ + return dumpViewToFormat( dumpView(), fileName, format ); +} + /*! Close event \a theEvent. */ void SUIT_ViewWindow::closeEvent(QCloseEvent* theEvent) diff --git a/src/SUIT/SUIT_ViewWindow.h b/src/SUIT/SUIT_ViewWindow.h index 493379eba..7c83cf42b 100755 --- a/src/SUIT/SUIT_ViewWindow.h +++ b/src/SUIT/SUIT_ViewWindow.h @@ -47,7 +47,7 @@ public: bool event(QEvent*); virtual QImage dumpView(); - virtual bool dumpViewToFormat( const QImage&, const QString& fileName, const QString& format ); + bool dumpViewToFormat( const QString& fileName, const QString& format ); bool onAccelAction( int ); @@ -73,6 +73,7 @@ protected: virtual void contextMenuEvent( QContextMenuEvent* ); virtual QString filter() const; virtual bool action( const int ); + virtual bool dumpViewToFormat( const QImage&, const QString& fileName, const QString& format ); SUIT_Desktop* myDesktop; SUIT_ViewManager* myManager; -- 2.39.2