+ Use new icons in Mesh workbench

This commit is contained in:
wmayer
2013-12-20 16:28:14 +01:00
parent 5224e9a2ba
commit 098f39e7c5
14 changed files with 3246 additions and 166 deletions

View File

@@ -143,6 +143,9 @@ QString FileDialog::getSaveFileName (QWidget * parent, const QString & caption,
}
#else
QString file = QFileDialog::getSaveFileName(parent, windowTitle, dirName, filter, selectedFilter, options);
#if QT_VERSION >= 0x040600
file = QDir::fromNativeSeparators(file);
#endif
#endif
if (!file.isEmpty()) {
setWorkingDirectory(file);
@@ -217,6 +220,9 @@ QString FileDialog::getOpenFileName(QWidget * parent, const QString & caption, c
}
#else
QString file = QFileDialog::getOpenFileName(parent, windowTitle, dirName, filter, selectedFilter, options);
#if QT_VERSION >= 0x040600
file = QDir::fromNativeSeparators(file);
#endif
#endif
if (!file.isEmpty()) {
setWorkingDirectory(file);
@@ -272,6 +278,11 @@ QStringList FileDialog::getOpenFileNames (QWidget * parent, const QString & capt
}
#else
QStringList files = QFileDialog::getOpenFileNames(parent, windowTitle, dirName, filter, selectedFilter, options);
#if QT_VERSION >= 0x040600
for (QStringList::iterator it = files.begin(); it != files.end(); ++it) {
*it = QDir::fromNativeSeparators(*it);
}
#endif
#endif
if (!files.isEmpty()) {
setWorkingDirectory(files.front());
@@ -520,9 +531,9 @@ void FileChooser::chooseFile()
else
fn = QFileDialog::getExistingDirectory( this, tr( "Select a directory" ), lineEdit->text() );
if ( !fn.isEmpty() ) {
lineEdit->setText( fn );
fileNameSelected( fn );
if (!fn.isEmpty()) {
lineEdit->setText(fn);
fileNameSelected(fn);
}
}