Commit c36d5179 authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Don't annoy Windows users with alien dir separators

parent 46ac6ca0
......@@ -30,6 +30,8 @@
#include "plugindetailsview.h"
#include "ui_plugindetailsview.h"
#include <QtCore/QDir>
/*!
\class ExtensionSystem::PluginDetailsView
\brief Widget that displays the contents of a PluginSpec.
......@@ -74,7 +76,7 @@ void PluginDetailsView::update(PluginSpec *spec)
m_ui->compatVersion->setText(spec->compatVersion());
m_ui->vendor->setText(spec->vendor());
m_ui->url->setText(spec->url());
m_ui->location->setText(spec->filePath());
m_ui->location->setText(QDir::toNativeSeparators(spec->filePath()));
m_ui->description->setText(spec->description());
m_ui->copyright->setText(spec->copyright());
m_ui->license->setText(spec->license());
......
......@@ -33,6 +33,7 @@
#include "pluginspec.h"
#include "ui_pluginview.h"
#include <QtCore/QDir>
#include <QtGui/QHeaderView>
#include <QtGui/QTreeWidgetItem>
#include <QtDebug>
......@@ -124,8 +125,8 @@ void PluginView::updateList()
<< spec->name()
<< QString("%1 (%2)").arg(spec->version()).arg(spec->compatVersion())
<< spec->vendor()
<< spec->filePath());
item->setToolTip(4, spec->filePath());
<< QDir::toNativeSeparators(spec->filePath()));
item->setToolTip(4, QDir::toNativeSeparators(spec->filePath()));
item->setIcon(0, spec->hasError() ? errorIcon : okIcon);
item->setData(0, Qt::UserRole, qVariantFromValue(spec));
items.append(item);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment