StelMainGraphicsView.cpp   StelMainGraphicsView.cpp 
skipping to change at line 44 skipping to change at line 44
#include <QSettings> #include <QSettings>
#include <QApplication> #include <QApplication>
#include <QDebug> #include <QDebug>
#include <QFileInfo> #include <QFileInfo>
#include <QGraphicsGridLayout> #include <QGraphicsGridLayout>
#include <QGraphicsProxyWidget> #include <QGraphicsProxyWidget>
#include <QPluginLoader> #include <QPluginLoader>
#include <QtPlugin> #include <QtPlugin>
#include <QThread> #include <QThread>
#include <QTimer> #include <QTimer>
#include <QDir>
#ifndef DISABLE_SCRIPTING #ifndef DISABLE_SCRIPTING
#include "StelScriptMgr.hpp" #include "StelScriptMgr.hpp"
#include "StelMainScriptAPIProxy.hpp" #include "StelMainScriptAPIProxy.hpp"
#endif #endif
// The static plugins need to be imported here so that they belong to the // The static plugins need to be imported here so that they belong to the
// libStelMain required on win32. // libStelMain required on win32.
Q_IMPORT_PLUGIN(StelGui) Q_IMPORT_PLUGIN(StelGui)
skipping to change at line 422 skipping to change at line 423
if (flagInvertScreenShotColors) if (flagInvertScreenShotColors)
im.invertPixels(); im.invertPixels();
if (screenShotDir == "") if (screenShotDir == "")
shotDir = QFileInfo(StelFileMgr::getScreenshotDir()); shotDir = QFileInfo(StelFileMgr::getScreenshotDir());
else else
shotDir = QFileInfo(screenShotDir); shotDir = QFileInfo(screenShotDir);
if (!shotDir.isDir()) if (!shotDir.isDir())
{ {
qWarning() << "ERROR requested screenshot directory is not a directory: " << shotDir.filePath(); qWarning() << "ERROR requested screenshot directory is not a directory: " << QDir::toNativeSeparators(shotDir.filePath());
return; return;
} }
else if (!shotDir.isWritable()) else if (!shotDir.isWritable())
{ {
qWarning() << "ERROR requested screenshot directory is not w ritable: " << shotDir.filePath(); qWarning() << "ERROR requested screenshot directory is not w ritable: " << QDir::toNativeSeparators(shotDir.filePath());
return; return;
} }
QFileInfo shotPath; QFileInfo shotPath;
for (int j=0; j<100000; ++j) for (int j=0; j<100000; ++j)
{ {
shotPath = QFileInfo(shotDir.filePath() + "/" + screenShotPr efix + QString("%1").arg(j, 3, 10, QLatin1Char('0')) + ".png"); shotPath = QFileInfo(shotDir.filePath() + "/" + screenShotPr efix + QString("%1").arg(j, 3, 10, QLatin1Char('0')) + ".png");
if (!shotPath.exists()) if (!shotPath.exists())
break; break;
} }
qDebug() << "INFO Saving screenshot in file: " << shotPath.filePath( ); qDebug() << "INFO Saving screenshot in file: " << QDir::toNativeSepa rators(shotPath.filePath());
if (!im.save(shotPath.filePath())) { if (!im.save(shotPath.filePath())) {
qWarning() << "WARNING failed to write screenshot to: " << s hotPath.filePath(); qWarning() << "WARNING failed to write screenshot to: " << Q Dir::toNativeSeparators(shotPath.filePath());
} }
} }
 End of changes. 5 change blocks. 
4 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/