+ fix comment, convert native separators to UNIX separators

This commit is contained in:
wmayer 2015-10-25 14:16:38 +01:00
parent d58ccf7fd3
commit a3cd03ac03
2 changed files with 6 additions and 5 deletions

View File

@ -467,10 +467,10 @@ protected:
};
/** Constraint float properties
* This property fullfill the need of constraint float. It holds basicly a
* This property fullfill the need of constraint float. It holds basicly a
* state (float) and a struct of boundaries. If the boundaries
* is not set it act basicly like a FloatProperty and do no checking.
* The constraints struct can be created on the heap or build in.
* is not set it acts basicly like a PropertyFloat and does no checking
* The constraints struct can be created on the heap or built-in.
*/
class AppExport PropertyFloatConstraint: public PropertyFloat
{

View File

@ -28,6 +28,7 @@
# include <QCompleter>
# include <QComboBox>
# include <QDesktopServices>
# include <QDir>
# include <QGridLayout>
# include <QGroupBox>
# include <QLineEdit>
@ -565,8 +566,7 @@ QString FileChooser::fileName() const
void FileChooser::editingFinished()
{
QString le_converted = lineEdit->text();
le_converted.replace(QString::fromStdString("\\"), QString::fromStdString("/"));
QString le_converted = QDir::fromNativeSeparators(lineEdit->text());
lineEdit->setText(le_converted);
FileDialog::setWorkingDirectory(le_converted);
fileNameSelected(le_converted);
@ -598,6 +598,7 @@ void FileChooser::chooseFile()
fn = QFileDialog::getExistingDirectory( this, tr( "Select a directory" ), prechosenDirectory );
if (!fn.isEmpty()) {
fn = QDir::fromNativeSeparators(fn);
lineEdit->setText(fn);
FileDialog::setWorkingDirectory(fn);
fileNameSelected(fn);