From: vsr Date: Tue, 21 Jun 2005 09:20:39 +0000 (+0000) Subject: Move dumpImage() method to public section - needed by SalomePyQt module X-Git-Tag: T3_0_0_a4~63 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3be4d58804fc26c6fd461970c1483fb2c4bc924c;p=modules%2Fgui.git Move dumpImage() method to public section - needed by SalomePyQt module --- 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; };