From 3be4d58804fc26c6fd461970c1483fb2c4bc924c Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 21 Jun 2005 09:20:39 +0000 Subject: [PATCH] Move dumpImage() method to public section - needed by SalomePyQt module --- src/SUIT/SUIT_ViewWindow.cxx | 2 +- src/SUIT/SUIT_ViewWindow.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SUIT/SUIT_ViewWindow.cxx b/src/SUIT/SUIT_ViewWindow.cxx index f7060156b..7886b415b 100755 --- a/src/SUIT/SUIT_ViewWindow.cxx +++ b/src/SUIT/SUIT_ViewWindow.cxx @@ -62,7 +62,7 @@ bool SUIT_ViewWindow::event( QEvent* e ) if ( !img.isNull() ) { // get file name QString fileName = myManager->study()->application()->getFileName( false, QString::null, tr( "TLT_IMAGE_FILES" ), tr( "TLT_DUMP_VIEW" ), 0 ); - if ( fileName ) { + if ( !fileName.isEmpty() ) { QString fmt = SUIT_Tools::extension( fileName ).upper(); if ( fmt.isEmpty() ) fmt = QString( "BMP" ); // default format if ( fmt == "JPG" ) fmt = "JPEG"; diff --git a/src/SUIT/SUIT_ViewWindow.h b/src/SUIT/SUIT_ViewWindow.h index 115f1fc4c..5cfcb4e1d 100755 --- a/src/SUIT/SUIT_ViewWindow.h +++ b/src/SUIT/SUIT_ViewWindow.h @@ -29,6 +29,8 @@ public: bool event(QEvent*); + virtual QImage dumpView() { return QImage(); } + public slots: virtual void onDumpView(); @@ -47,8 +49,6 @@ protected: void closeEvent(QCloseEvent* theEvent); virtual void contextMenuEvent( QContextMenuEvent * e ); - virtual QImage dumpView() { return QImage(); } - SUIT_Desktop* myDesktop; SUIT_ViewManager* myManager; }; -- 2.39.2