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";
bool event(QEvent*);
+ virtual QImage dumpView() { return QImage(); }
+
public slots:
virtual void onDumpView();
void closeEvent(QCloseEvent* theEvent);
virtual void contextMenuEvent( QContextMenuEvent * e );
- virtual QImage dumpView() { return QImage(); }
-
SUIT_Desktop* myDesktop;
SUIT_ViewManager* myManager;
};