Use native separator and make the line not wrap in the table view.

Reviewed-by: ck
This commit is contained in:
kh1
2010-05-31 12:28:02 +02:00
parent cca38a737e
commit 0d9c210369
2 changed files with 12 additions and 4 deletions

View File

@@ -64,6 +64,7 @@ MaemoPackageCreationWidget::MaemoPackageCreationWidget(MaemoPackageCreationStep
m_ui(new Ui::MaemoPackageCreationWidget)
{
m_ui->setupUi(this);
m_ui->packageContentsView->setWordWrap(false);
m_ui->packageContentsView->setModel(step->packageContents());
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
connect(step->packageContents(), SIGNAL(dataChanged(QModelIndex,QModelIndex)),
@@ -103,7 +104,8 @@ void MaemoPackageCreationWidget::addFile()
if (localFile.isEmpty())
return;
const MaemoPackageContents::Deployable
deployable(QFileInfo(localFile).absoluteFilePath(), "/");
deployable(QDir::toNativeSeparators(QFileInfo(localFile).absoluteFilePath()),
"/");
MaemoPackageContents * const contents = m_step->packageContents();
if (!contents->addDeployable(deployable)) {
QMessageBox::information(this, tr("File already in package"),