Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
c36d5179
Commit
c36d5179
authored
Apr 15, 2009
by
Alessandro Portale
Browse files
Don't annoy Windows users with alien dir separators
parent
46ac6ca0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/extensionsystem/plugindetailsview.cpp
View file @
c36d5179
...
@@ -30,6 +30,8 @@
...
@@ -30,6 +30,8 @@
#include "plugindetailsview.h"
#include "plugindetailsview.h"
#include "ui_plugindetailsview.h"
#include "ui_plugindetailsview.h"
#include <QtCore/QDir>
/*!
/*!
\class ExtensionSystem::PluginDetailsView
\class ExtensionSystem::PluginDetailsView
\brief Widget that displays the contents of a PluginSpec.
\brief Widget that displays the contents of a PluginSpec.
...
@@ -74,7 +76,7 @@ void PluginDetailsView::update(PluginSpec *spec)
...
@@ -74,7 +76,7 @@ void PluginDetailsView::update(PluginSpec *spec)
m_ui
->
compatVersion
->
setText
(
spec
->
compatVersion
());
m_ui
->
compatVersion
->
setText
(
spec
->
compatVersion
());
m_ui
->
vendor
->
setText
(
spec
->
vendor
());
m_ui
->
vendor
->
setText
(
spec
->
vendor
());
m_ui
->
url
->
setText
(
spec
->
url
());
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
->
description
->
setText
(
spec
->
description
());
m_ui
->
copyright
->
setText
(
spec
->
copyright
());
m_ui
->
copyright
->
setText
(
spec
->
copyright
());
m_ui
->
license
->
setText
(
spec
->
license
());
m_ui
->
license
->
setText
(
spec
->
license
());
...
...
src/libs/extensionsystem/pluginview.cpp
View file @
c36d5179
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include "pluginspec.h"
#include "pluginspec.h"
#include "ui_pluginview.h"
#include "ui_pluginview.h"
#include <QtCore/QDir>
#include <QtGui/QHeaderView>
#include <QtGui/QHeaderView>
#include <QtGui/QTreeWidgetItem>
#include <QtGui/QTreeWidgetItem>
#include <QtDebug>
#include <QtDebug>
...
@@ -124,8 +125,8 @@ void PluginView::updateList()
...
@@ -124,8 +125,8 @@ void PluginView::updateList()
<<
spec
->
name
()
<<
spec
->
name
()
<<
QString
(
"%1 (%2)"
).
arg
(
spec
->
version
()).
arg
(
spec
->
compatVersion
())
<<
QString
(
"%1 (%2)"
).
arg
(
spec
->
version
()).
arg
(
spec
->
compatVersion
())
<<
spec
->
vendor
()
<<
spec
->
vendor
()
<<
spec
->
filePath
());
<<
QDir
::
toNativeSeparators
(
spec
->
filePath
())
)
;
item
->
setToolTip
(
4
,
spec
->
filePath
());
item
->
setToolTip
(
4
,
QDir
::
toNativeSeparators
(
spec
->
filePath
())
)
;
item
->
setIcon
(
0
,
spec
->
hasError
()
?
errorIcon
:
okIcon
);
item
->
setIcon
(
0
,
spec
->
hasError
()
?
errorIcon
:
okIcon
);
item
->
setData
(
0
,
Qt
::
UserRole
,
qVariantFromValue
(
spec
));
item
->
setData
(
0
,
Qt
::
UserRole
,
qVariantFromValue
(
spec
));
items
.
append
(
item
);
items
.
append
(
item
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment