Moved class FileUtils out of Internal namespace

...because it is being exported.

Change-Id: If2892f8455b7c7fb9a78a8cde27642901ae4bf3a
Reviewed-on: http://codereview.qt.nokia.com/3676
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Robert Loehning
2011-08-26 18:33:38 +02:00
committed by Robert Löhning
parent 9e0fc18fba
commit 662c66ef6b
5 changed files with 11 additions and 13 deletions

View File

@@ -812,13 +812,13 @@ void EditorManager::closeOtherEditorsFromContextMenu()
void EditorManager::showInGraphicalShell()
{
const QString path = m_d->m_contextMenuEditorIndex.data(Qt::UserRole + 1).toString();
Core::Internal::FileUtils::showInGraphicalShell(ICore::instance()->mainWindow(), path);
Core::FileUtils::showInGraphicalShell(ICore::instance()->mainWindow(), path);
}
void EditorManager::openTerminal()
{
const QString path = QFileInfo(m_d->m_contextMenuEditorIndex.data(Qt::UserRole + 1).toString()).path();
Core::Internal::FileUtils::openTerminal(path);
Core::FileUtils::openTerminal(path);
}
void EditorManager::closeEditor(Core::IEditor *editor)

View File

@@ -52,7 +52,7 @@
#endif
#endif
using namespace Core::Internal;
using namespace Core;
#if !defined(Q_OS_WIN) && !defined(Q_OS_MAC)
// Show error with option to open settings.

View File

@@ -40,7 +40,6 @@ class QWidget;
QT_END_NAMESPACE
namespace Core {
namespace Internal {
struct CORE_EXPORT FileUtils
{
@@ -52,7 +51,6 @@ struct CORE_EXPORT FileUtils
static QString msgTerminalAction();
};
} // namespace Internal
} // namespace Core
#endif // FILEUTILS_H