"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/SessionEditorDlgImpl.cpp" between
MP3Diags-unstable-1.3.04.tar.gz and MP3Diags-unstable-1.5.01.tar.gz

About: MP3 Diags finds problems in MP3 files and helps the user to fix many of them (with a GUI). Also includes a tag editor and a file renamer.

SessionEditorDlgImpl.cpp  (MP3Diags-unstable-1.3.04):SessionEditorDlgImpl.cpp  (MP3Diags-unstable-1.5.01)
skipping to change at line 55 skipping to change at line 55
{ {
setupUi(this); setupUi(this);
m_pDirModel = new CheckedDirModel(this, CheckedDirModel::USER_CHECKABLE); m_pDirModel = new CheckedDirModel(this, CheckedDirModel::USER_CHECKABLE);
m_pDirModel->setFilter(QDir::AllDirs | QDir::NoDotAndDotDot | QDir::Hidden | QDir::Drives); m_pDirModel->setFilter(QDir::AllDirs | QDir::NoDotAndDotDot | QDir::Hidden | QDir::Drives);
m_pDirModel->setSorting(QDir::IgnoreCase); m_pDirModel->setSorting(QDir::IgnoreCase);
m_pDirectoriesT->setModel(m_pDirModel); m_pDirectoriesT->setModel(m_pDirModel);
m_pDirectoriesT->expand(m_pDirModel->index("/")); m_pDirectoriesT->expand(m_pDirModel->index("/"));
m_pDirectoriesT->header()->hide(); m_pDirectoriesT->header()->hide();
m_pDirectoriesT->header()->setStretchLastSection(false); m_pDirectoriesT->he ader()->setResizeMode(0, QHeaderView::ResizeToContents); m_pDirectoriesT->header()->setStretchLastSection(false); m_pDirectoriesT->he ader()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
m_bOpenLastSession = true; m_bOpenLastSession = true;
{ QAction* p (new QAction(this)); p->setShortcut(QKeySequence("F1")); connec t(p, SIGNAL(triggered()), this, SLOT(onHelp())); addAction(p); } { QAction* p (new QAction(this)); p->setShortcut(QKeySequence("F1")); connec t(p, SIGNAL(triggered()), this, SLOT(onHelp())); addAction(p); }
QPalette grayPalette (m_pBackupE->palette()); QPalette grayPalette (m_pBackupE->palette());
grayPalette.setColor(QPalette::Base, grayPalette.color(QPalette::Disabled, Q Palette::Window)); grayPalette.setColor(QPalette::Base, grayPalette.color(QPalette::Disabled, Q Palette::Window));
m_pBackupE->setPalette(grayPalette); m_pBackupE->setPalette(grayPalette);
m_pFileNameE->setPalette(grayPalette); m_pFileNameE->setPalette(grayPalette);
skipping to change at line 87 skipping to change at line 87
} }
m_pTranslationCbB->setCurrentIndex(nCrt); m_pTranslationCbB->setCurrentIndex(nCrt);
m_strTranslation = vstrTranslations[m_pTranslationCbB->currentIndex()]; m_strTranslation = vstrTranslations[m_pTranslationCbB->currentIndex()];
} }
} }
// returns the OS's "Documents" location // returns the OS's "Documents" location
static QString getDocDir() //ttt1 maybe move to Helpers static QString getDocDir() //ttt1 maybe move to Helpers
{ {
#if QT_VERSION >= 0x040400 #if QT_VERSION >= 0x040400
QString qs = QDesktopServices::storageLocation(QDesktopServices::DocumentsLo //QString qs = QDesktopServices::storageLocation(QDesktopServices::Documents
cation); Location);
QString qs = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocat
ion); //ttt9 make sure this is OK
//ttt1 note that QStandardPaths should be used in Qt5: https://forum.qt.io/t opic/28658/differences-qdesktopservices-vs-qstandardpaths //ttt1 note that QStandardPaths should be used in Qt5: https://forum.qt.io/t opic/28658/differences-qdesktopservices-vs-qstandardpaths
#else #else
#ifndef WIN32 #ifndef WIN32
QString qs (QDir::homePath() + "/Documents"); // OK on openSUSE, not sure ho w standardized it is //ttt3 this is localized, so not OK; OTOH this branch only matters for Qt 4.3 QString qs (QDir::homePath() + "/Documents"); // OK on openSUSE, not sure ho w standardized it is //ttt3 this is localized, so not OK; OTOH this branch only matters for Qt 4.3
#else #else
QSettings settings (QSettings::UserScope, "Microsoft", "Windows"); QSettings settings (QSettings::UserScope, "Microsoft", "Windows");
settings.beginGroup("CurrentVersion/Explorer/Shell Folders"); settings.beginGroup("CurrentVersion/Explorer/Shell Folders");
QString qs (fromNativeSeparators(settings.value("Personal").toString())); QString qs (fromNativeSeparators(settings.value("Personal").toString()));
#endif #endif
#endif #endif
 End of changes. 2 change blocks. 
3 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)