From ab4e81504e14a8c956794114659c2293bb8f293e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Fri, 4 Jul 2014 16:14:06 +0200 Subject: [PATCH] wip mount point --- .../partition/CreatePartitionDialog.cpp | 5 +- .../partition/CreatePartitionDialog.ui | 56 ++++++++++++++++++- 2 files changed, 57 insertions(+), 4 deletions(-) diff --git a/src/modules/partition/CreatePartitionDialog.cpp b/src/modules/partition/CreatePartitionDialog.cpp index 592aa2b6f..4990faea0 100644 --- a/src/modules/partition/CreatePartitionDialog.cpp +++ b/src/modules/partition/CreatePartitionDialog.cpp @@ -27,6 +27,9 @@ #include #include +// Qt +#include + CreatePartitionDialog::CreatePartitionDialog( Device* device, Partition* freePartition, QWidget* parent ) : QDialog( parent ) , m_ui( new Ui_CreatePartitionDialog ) @@ -104,7 +107,7 @@ CreatePartitionDialog::createJob() fs, first, last, QString() /* path */, PartitionTable::FlagNone /* availableFlags */, - QString() /* mountPoint */, + m_ui->mountPointComboBox->currentText(), false /* mounted */, PartitionTable::FlagNone /* activeFlags */, Partition::StateNew diff --git a/src/modules/partition/CreatePartitionDialog.ui b/src/modules/partition/CreatePartitionDialog.ui index 1fb210ea3..1e2380e4a 100644 --- a/src/modules/partition/CreatePartitionDialog.ui +++ b/src/modules/partition/CreatePartitionDialog.ui @@ -6,8 +6,8 @@ 0 0 - 263 - 179 + 425 + 321 @@ -39,7 +39,7 @@ - + Qt::Vertical @@ -86,6 +86,56 @@ + + + + &Mount Point: + + + mountPointComboBox + + + + + + + true + + + -1 + + + + / + + + + + /boot + + + + + /home + + + + + /opt + + + + + /usr + + + + + /var + + + +