OSDN Git Service

Move window.png from qt4projectmanager to projectexplorer
authordt <qtc-committer@nokia.com>
Fri, 20 May 2011 17:48:44 +0000 (19:48 +0200)
committerDaniel Teske <daniel.teske@nokia.com>
Mon, 23 May 2011 09:55:39 +0000 (11:55 +0200)
Change-Id: Iceb54733dc92c2d674561b803757e1836544aa43
Reviewed-on: http://codereview.qt.nokia.com/60
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
src/plugins/projectexplorer/appoutputpane.cpp
src/plugins/projectexplorer/compileoutputwindow.cpp
src/plugins/projectexplorer/images/window.png [moved from src/plugins/qt4projectmanager/images/window.png with 100% similarity]
src/plugins/projectexplorer/projectexplorer.qrc
src/plugins/projectexplorer/projectexplorerconstants.h
src/plugins/projectexplorer/taskwindow.cpp
src/plugins/qt4projectmanager/qt4projectmanager.qrc
src/plugins/qt4projectmanager/qt4projectmanagerconstants.h

index 95ede24..67171f2 100644 (file)
@@ -47,7 +47,6 @@
 #include <texteditor/fontsettings.h>
 #include <texteditor/texteditorsettings.h>
 
-#include <qt4projectmanager/qt4projectmanagerconstants.h>
 #include <utils/qtcassert.h>
 #include <utils/outputformatter.h>
 
@@ -259,8 +258,7 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc)
     Core::Context context(Constants::C_APP_OUTPUT, counter++);
     Core::OutputWindow *ow = new Core::OutputWindow(context, m_tabWidget);
     ow->setWindowTitle(tr("Application Output Window"));
-    // TODO the following is a hidden impossible dependency of projectexplorer on qt4projectmanager
-    ow->setWindowIcon(QIcon(QLatin1String(Qt4ProjectManager::Constants::ICON_WINDOW)));
+    ow->setWindowIcon(QIcon(QLatin1String(Constants::ICON_WINDOW)));
     ow->setFormatter(formatter);
     ow->setWordWrapEnabled(ProjectExplorerPlugin::instance()->projectExplorerSettings().wrapAppOutput);
     ow->setMaxLineCount(ProjectExplorerPlugin::instance()->projectExplorerSettings().maxAppOutputLines);
index 932e65b..a0b5d6a 100644 (file)
@@ -42,7 +42,6 @@
 #include <find/basetextfind.h>
 #include <aggregation/aggregate.h>
 #include <extensionsystem/pluginmanager.h>
-#include <qt4projectmanager/qt4projectmanagerconstants.h>
 
 #include <QtGui/QKeyEvent>
 #include <QtGui/QIcon>
@@ -65,7 +64,7 @@ CompileOutputWindow::CompileOutputWindow(BuildManager * /*bm*/)
     Core::Context context(Constants::C_COMPILE_OUTPUT);
     m_outputWindow = new Core::OutputWindow(context);
     m_outputWindow->setWindowTitle(tr("Compile Output"));
-    m_outputWindow->setWindowIcon(QIcon(QLatin1String(Qt4ProjectManager::Constants::ICON_WINDOW)));
+    m_outputWindow->setWindowIcon(QIcon(QLatin1String(Constants::ICON_WINDOW)));
     m_outputWindow->setReadOnly(true);
     m_outputWindow->setUndoRedoEnabled(false);
     m_outputWindow->setMaxLineCount(MAX_LINECOUNT);
index 09cb165..b4be874 100644 (file)
@@ -38,5 +38,6 @@
         <file>images/targetpanel_gradient.png</file>
         <file>images/targetaddbutton_disabled.png</file>
         <file>images/targetremovebutton_disabled.png</file>
+        <file>images/window.png</file>
     </qresource>
 </RCC>
index e925406..f28bf1c 100644 (file)
@@ -165,6 +165,7 @@ const char * const ICON_RUN_SMALL       = ":/projectexplorer/images/run_small.pn
 const char * const ICON_DEBUG_SMALL     = ":/projectexplorer/images/debugger_start_small.png";
 const char * const ICON_STOP            = ":/projectexplorer/images/stop.png";
 const char * const ICON_TOOLCHAIN_SETTINGS_CATEGORY = ":projectexplorer/images/build.png"; // FIXME: Need an icon!
+const char * const ICON_WINDOW          = ":/projectexplorer/images/window.png";
 
 const char * const TASK_BUILD           = "ProjectExplorer.Task.Build";
 
index 509993c..6d22111 100644 (file)
@@ -43,7 +43,6 @@
 #include <coreplugin/icontext.h>
 #include <coreplugin/icore.h>
 #include <extensionsystem/pluginmanager.h>
-#include <qt4projectmanager/qt4projectmanagerconstants.h>
 
 #include <QtCore/QDir>
 #include <QtCore/QFileInfo>
@@ -623,7 +622,7 @@ TaskWindow::TaskWindow(TaskHub *taskhub) : d(new TaskWindowPrivate)
     d->m_listview->setSelectionMode(QAbstractItemView::SingleSelection);
     Internal::TaskDelegate *tld = new Internal::TaskDelegate(this);
     d->m_listview->setItemDelegate(tld);
-    d->m_listview->setWindowIcon(QIcon(QLatin1String(Qt4ProjectManager::Constants::ICON_WINDOW)));
+    d->m_listview->setWindowIcon(QIcon(QLatin1String(Constants::ICON_WINDOW)));
     d->m_listview->setContextMenuPolicy(Qt::ActionsContextMenu);
     d->m_listview->setAttribute(Qt::WA_MacShowFocusRect, false);
 
index 9634502..2fa83ca 100644 (file)
@@ -1,6 +1,5 @@
 <RCC>
     <qresource prefix="/qt4projectmanager">
-        <file>images/window.png</file>
         <file>images/run_qmake.png</file>
         <file>images/run_qmake_small.png</file>
         <file>images/qt_project.png</file>
index 2075d6b..3cd3971 100644 (file)
@@ -120,7 +120,6 @@ const char * const WINCEQT     = "Qt4ProjectManager.QtVersion.WinCE";
 
 // ICONS
 const char * const ICON_QT_PROJECT = ":/qt4projectmanager/images/qt_project.png";
-const char * const ICON_WINDOW = ":/qt4projectmanager/images/window.png";
 const char * const ICON_QTQUICK_APP = ":/wizards/images/qtquickapp.png";
 const char * const ICON_HTML5_APP = ":/wizards/images/html5app.png";