mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Modifications sur les choix des dossiers cibles par defaut lors des operations d'ouverture et d'enregistrement de fichiers.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@722 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -191,7 +191,7 @@ QWidget *ExportDialog::leftPart() {
|
||||
QHBoxLayout *hboxLayout = new QHBoxLayout();
|
||||
QLabel *dirpath_label = new QLabel(tr("Dossier cible :"), this);
|
||||
dirpath = new QLineEdit(this);
|
||||
dirpath -> setText(QDir::toNativeSeparators(QDir::homePath()));
|
||||
dirpath -> setText(QDir::toNativeSeparators(project_ -> currentDir()));
|
||||
QCompleter *completer = new QCompleter(this);
|
||||
completer -> setModel(new QDirModel(completer));
|
||||
dirpath -> setCompleter(completer);
|
||||
@@ -358,7 +358,7 @@ void ExportDialog::slot_chooseADirectory() {
|
||||
QString user_dir = QFileDialog::getExistingDirectory(
|
||||
this,
|
||||
tr("Exporter dans le dossier", "dialog title"),
|
||||
QDir::homePath()
|
||||
dirpath -> text()
|
||||
);
|
||||
if (!user_dir.isEmpty()) {
|
||||
dirpath -> setText(user_dir);
|
||||
|
||||
Reference in New Issue
Block a user