forked from qt-creator/qt-creator
Pedantic cleanup of filename parameters for QIcon constructor
Using more *::Constants::ICON_* where it makes sense and wrapping the file names into QLatin1String where they were missing. The increased usage of the ICON constants needed a few more cross plugin includes of *constants.h, here and there. I think that it is OK, since the dependencies were alredy there icon resource wise.
This commit is contained in:
@@ -15,15 +15,15 @@ QmlToolbar::QmlToolbar(QWidget *parent) :
|
|||||||
m_isRunning(false),
|
m_isRunning(false),
|
||||||
ui(new Ui)
|
ui(new Ui)
|
||||||
{
|
{
|
||||||
ui->designmode = new QAction(QIcon(":/qml/images/designmode.png"), tr("Design Mode"), this);
|
ui->designmode = new QAction(QIcon(QLatin1String(":/qml/images/designmode.png")), tr("Design Mode"), this);
|
||||||
ui->play = new QAction(QIcon(":/qml/images/play.png"), tr("Play"), this);
|
ui->play = new QAction(QIcon(QLatin1String(":/qml/images/play.png")), tr("Play"), this);
|
||||||
ui->pause = new QAction(QIcon(":/qml/images/pause.png"), tr("Pause"), this);
|
ui->pause = new QAction(QIcon(QLatin1String(":/qml/images/pause.png")), tr("Pause"), this);
|
||||||
ui->select = new QAction(QIcon(":/qml/images/select.png"), tr("Select"), this);
|
ui->select = new QAction(QIcon(QLatin1String(":/qml/images/select.png")), tr("Select"), this);
|
||||||
ui->selectMarquee = new QAction(QIcon(":/qml/images/select-marquee.png"), tr("Select (Marquee)"), this);
|
ui->selectMarquee = new QAction(QIcon(QLatin1String(":/qml/images/select-marquee.png")), tr("Select (Marquee)"), this);
|
||||||
ui->zoom = new QAction(QIcon(":/qml/images/zoom.png"), tr("Zoom"), this);
|
ui->zoom = new QAction(QIcon(QLatin1String(":/qml/images/zoom.png")), tr("Zoom"), this);
|
||||||
ui->colorPicker = new QAction(QIcon(":/qml/images/color-picker-hicontrast.png"), tr("Color Picker"), this);
|
ui->colorPicker = new QAction(QIcon(QLatin1String(":/qml/images/color-picker-hicontrast.png")), tr("Color Picker"), this);
|
||||||
ui->toQml = new QAction(QIcon(":/qml/images/to-qml.png"), tr("Apply Changes to QML Viewer"), this);
|
ui->toQml = new QAction(QIcon(QLatin1String(":/qml/images/to-qml.png")), tr("Apply Changes to QML Viewer"), this);
|
||||||
ui->fromQml = new QAction(QIcon(":/qml/images/from-qml.png"), tr("Apply Changes to Document"), this);
|
ui->fromQml = new QAction(QIcon(QLatin1String(":/qml/images/from-qml.png")), tr("Apply Changes to Document"), this);
|
||||||
ui->designmode->setCheckable(true);
|
ui->designmode->setCheckable(true);
|
||||||
ui->designmode->setChecked(false);
|
ui->designmode->setChecked(false);
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace QmlViewer {
|
|||||||
ToolBarColorBox::ToolBarColorBox(QWidget *parent) :
|
ToolBarColorBox::ToolBarColorBox(QWidget *parent) :
|
||||||
QLabel(parent)
|
QLabel(parent)
|
||||||
{
|
{
|
||||||
m_copyHexColor = new QAction(QIcon(":/qml/images/color-picker-hicontrast.png"), tr("Copy"), this);
|
m_copyHexColor = new QAction(QIcon(QLatin1String(":/qml/images/color-picker-hicontrast.png")), tr("Copy"), this);
|
||||||
connect(m_copyHexColor, SIGNAL(triggered()), SLOT(copyColorToClipboard()));
|
connect(m_copyHexColor, SIGNAL(triggered()), SLOT(copyColorToClipboard()));
|
||||||
setScaledContents(false);
|
setScaledContents(false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ FilterLineEdit::FilterLineEdit(QWidget *parent) :
|
|||||||
QIcon icon = QIcon::fromTheme(layoutDirection() == Qt::LeftToRight ?
|
QIcon icon = QIcon::fromTheme(layoutDirection() == Qt::LeftToRight ?
|
||||||
QLatin1String("edit-clear-locationbar-rtl") :
|
QLatin1String("edit-clear-locationbar-rtl") :
|
||||||
QLatin1String("edit-clear-locationbar-ltr"),
|
QLatin1String("edit-clear-locationbar-ltr"),
|
||||||
QIcon::fromTheme("edit-clear", QIcon(QLatin1String(":/core/images/editclear.png"))));
|
QIcon::fromTheme(QLatin1String("edit-clear"), QIcon(QLatin1String(":/core/images/editclear.png"))));
|
||||||
|
|
||||||
setButtonPixmap(Right, icon.pixmap(16));
|
setButtonPixmap(Right, icon.pixmap(16));
|
||||||
setButtonVisible(Right, true);
|
setButtonVisible(Right, true);
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ LinearProgressWidget::LinearProgressWidget(WizardProgress *progress, QWidget *pa
|
|||||||
m_dotsItemWidget(0),
|
m_dotsItemWidget(0),
|
||||||
m_disableUpdatesCount(0)
|
m_disableUpdatesCount(0)
|
||||||
{
|
{
|
||||||
m_indicatorPixmap = QIcon::fromTheme("go-next", QIcon(QLatin1String(":/utils/images/arrow.png"))).pixmap(16);
|
m_indicatorPixmap = QIcon::fromTheme(QLatin1String("go-next"), QIcon(QLatin1String(":/utils/images/arrow.png"))).pixmap(16);
|
||||||
m_wizardProgress = progress;
|
m_wizardProgress = progress;
|
||||||
m_mainLayout = new QVBoxLayout(this);
|
m_mainLayout = new QVBoxLayout(this);
|
||||||
m_itemWidgetLayout = new QVBoxLayout();
|
m_itemWidgetLayout = new QVBoxLayout();
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
#include "cmakeprojectconstants.h"
|
#include "cmakeprojectconstants.h"
|
||||||
#include "cmaketarget.h"
|
#include "cmaketarget.h"
|
||||||
|
|
||||||
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <projectexplorer/environment.h>
|
#include <projectexplorer/environment.h>
|
||||||
#include <projectexplorer/debugginghelper.h>
|
#include <projectexplorer/debugginghelper.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
@@ -330,7 +331,7 @@ CMakeRunConfigurationWidget::CMakeRunConfigurationWidget(CMakeRunConfiguration *
|
|||||||
|
|
||||||
QToolButton *resetButton = new QToolButton();
|
QToolButton *resetButton = new QToolButton();
|
||||||
resetButton->setToolTip(tr("Reset to default"));
|
resetButton->setToolTip(tr("Reset to default"));
|
||||||
resetButton->setIcon(QIcon(":/core/images/reset.png"));
|
resetButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_RESET)));
|
||||||
|
|
||||||
QHBoxLayout *boxlayout = new QHBoxLayout();
|
QHBoxLayout *boxlayout = new QHBoxLayout();
|
||||||
boxlayout->addWidget(m_workingDirectoryEdit);
|
boxlayout->addWidget(m_workingDirectoryEdit);
|
||||||
|
|||||||
@@ -230,6 +230,13 @@ const char * const ICON_REPLACE = ":/core/images/replace.png";
|
|||||||
const char * const ICON_RESET = ":/core/images/reset.png";
|
const char * const ICON_RESET = ":/core/images/reset.png";
|
||||||
const char * const ICON_MAGNIFIER = ":/core/images/magnifier.png";
|
const char * const ICON_MAGNIFIER = ":/core/images/magnifier.png";
|
||||||
const char * const ICON_TOGGLE_SIDEBAR = ":/core/images/sidebaricon.png";
|
const char * const ICON_TOGGLE_SIDEBAR = ":/core/images/sidebaricon.png";
|
||||||
|
const char * const ICON_CLOSE = ":/core/images/closebutton.png";
|
||||||
|
const char * const ICON_CLOSE_DARK = ":/core/images/darkclosebutton.png";
|
||||||
|
const char * const ICON_SPLIT_HORIZONTAL = ":/core/images/splitbutton_horizontal.png";
|
||||||
|
const char * const ICON_FILTER = ":/core/images/filtericon.png";
|
||||||
|
const char * const ICON_LINK = ":/core/images/linkicon.png";
|
||||||
|
const char * const ICON_QTLOGO_32 = ":/core/images/qtcreator_logo_32.png";
|
||||||
|
const char * const ICON_QTLOGO_128 = ":/core/images/qtcreator_logo_128.png";
|
||||||
|
|
||||||
const char * const WIZARD_CATEGORY_QT = "R.Qt";
|
const char * const WIZARD_CATEGORY_QT = "R.Qt";
|
||||||
const char * const WIZARD_TR_CATEGORY_QT = QT_TRANSLATE_NOOP("Core", "Qt");
|
const char * const WIZARD_TR_CATEGORY_QT = QT_TRANSLATE_NOOP("Core", "Qt");
|
||||||
|
|||||||
@@ -230,8 +230,8 @@ EditorManagerPrivate::EditorManagerPrivate(ICore *core, QWidget *parent) :
|
|||||||
m_closeOtherEditorsAction(new QAction(EditorManager::tr("Close Others"), parent)),
|
m_closeOtherEditorsAction(new QAction(EditorManager::tr("Close Others"), parent)),
|
||||||
m_gotoNextDocHistoryAction(new QAction(EditorManager::tr("Next Open Document in History"), parent)),
|
m_gotoNextDocHistoryAction(new QAction(EditorManager::tr("Next Open Document in History"), parent)),
|
||||||
m_gotoPreviousDocHistoryAction(new QAction(EditorManager::tr("Previous Open Document in History"), parent)),
|
m_gotoPreviousDocHistoryAction(new QAction(EditorManager::tr("Previous Open Document in History"), parent)),
|
||||||
m_goBackAction(new QAction(QIcon(QLatin1String(":/help/images/previous.png")), EditorManager::tr("Go Back"), parent)),
|
m_goBackAction(new QAction(QIcon(QLatin1String(Constants::ICON_PREV)), EditorManager::tr("Go Back"), parent)),
|
||||||
m_goForwardAction(new QAction(QIcon(QLatin1String(":/help/images/next.png")), EditorManager::tr("Go Forward"), parent)),
|
m_goForwardAction(new QAction(QIcon(QLatin1String(Constants::ICON_NEXT)), EditorManager::tr("Go Forward"), parent)),
|
||||||
m_openInExternalEditorAction(new QAction(EditorManager::tr("Open in External Editor"), parent)),
|
m_openInExternalEditorAction(new QAction(EditorManager::tr("Open in External Editor"), parent)),
|
||||||
m_windowPopup(0),
|
m_windowPopup(0),
|
||||||
m_coreListener(0),
|
m_coreListener(0),
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ EditorView::EditorView(QWidget *parent) :
|
|||||||
|
|
||||||
m_infoWidgetCloseButton = new QToolButton;
|
m_infoWidgetCloseButton = new QToolButton;
|
||||||
m_infoWidgetCloseButton->setAutoRaise(true);
|
m_infoWidgetCloseButton->setAutoRaise(true);
|
||||||
m_infoWidgetCloseButton->setIcon(QIcon(":/core/images/clear.png"));
|
m_infoWidgetCloseButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_CLEAR)));
|
||||||
m_infoWidgetCloseButton->setToolTip(tr("Close"));
|
m_infoWidgetCloseButton->setToolTip(tr("Close"));
|
||||||
|
|
||||||
hbox->addWidget(m_infoWidgetCloseButton);
|
hbox->addWidget(m_infoWidgetCloseButton);
|
||||||
@@ -146,7 +146,7 @@ EditorView::EditorView(QWidget *parent) :
|
|||||||
|
|
||||||
m_statusWidgetButton = new QToolButton;
|
m_statusWidgetButton = new QToolButton;
|
||||||
m_statusWidgetButton->setContentsMargins(0, 0, 0, 0);
|
m_statusWidgetButton->setContentsMargins(0, 0, 0, 0);
|
||||||
//m_statusWidgetButton->setIcon(QIcon(":/core/images/clear.png"));
|
//m_statusWidgetButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_CLEAR)));
|
||||||
hbox->addWidget(m_statusWidgetButton);
|
hbox->addWidget(m_statusWidgetButton);
|
||||||
|
|
||||||
m_statusHLine->setVisible(false);
|
m_statusHLine->setVisible(false);
|
||||||
|
|||||||
@@ -77,8 +77,8 @@ void OpenEditorsDelegate::paint(QPainter *painter, const QStyleOptionViewItem &o
|
|||||||
QStyledItemDelegate::paint(painter, option, index);
|
QStyledItemDelegate::paint(painter, option, index);
|
||||||
|
|
||||||
if (index.column() == 1 && option.state & QStyle::State_MouseOver) {
|
if (index.column() == 1 && option.state & QStyle::State_MouseOver) {
|
||||||
QIcon icon((option.state & QStyle::State_Selected) ? ":/core/images/closebutton.png"
|
const QIcon icon(QLatin1String((option.state & QStyle::State_Selected) ?
|
||||||
: ":/core/images/darkclosebutton.png");
|
Constants::ICON_CLOSE : Constants::ICON_CLOSE_DARK));
|
||||||
|
|
||||||
QRect iconRect(option.rect.right() - option.rect.height(),
|
QRect iconRect(option.rect.right() - option.rect.height(),
|
||||||
option.rect.top(),
|
option.rect.top(),
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ EditorToolBar::EditorToolBar(QWidget *parent) :
|
|||||||
m_lockButton->setVisible(false);
|
m_lockButton->setVisible(false);
|
||||||
|
|
||||||
m_closeButton->setAutoRaise(true);
|
m_closeButton->setAutoRaise(true);
|
||||||
m_closeButton->setIcon(QIcon(":/core/images/closebutton.png"));
|
m_closeButton->setIcon(QIcon(QLatin1String(Constants::ICON_CLOSE)));
|
||||||
m_closeButton->setProperty("type", QLatin1String("dockbutton"));
|
m_closeButton->setProperty("type", QLatin1String("dockbutton"));
|
||||||
m_closeButton->setEnabled(false);
|
m_closeButton->setEnabled(false);
|
||||||
|
|
||||||
|
|||||||
@@ -161,13 +161,13 @@ MainWindow::MainWindow() :
|
|||||||
|
|
||||||
setWindowTitle(tr("Qt Creator"));
|
setWindowTitle(tr("Qt Creator"));
|
||||||
#ifndef Q_WS_MAC
|
#ifndef Q_WS_MAC
|
||||||
qApp->setWindowIcon(QIcon(":/core/images/qtcreator_logo_128.png"));
|
QApplication::setWindowIcon(QIcon(QLatin1String(Constants::ICON_QTLOGO_128)));
|
||||||
#endif
|
#endif
|
||||||
QCoreApplication::setApplicationName(QLatin1String("QtCreator"));
|
QCoreApplication::setApplicationName(QLatin1String("QtCreator"));
|
||||||
QCoreApplication::setApplicationVersion(QLatin1String(Core::Constants::IDE_VERSION_LONG));
|
QCoreApplication::setApplicationVersion(QLatin1String(Core::Constants::IDE_VERSION_LONG));
|
||||||
QCoreApplication::setOrganizationName(QLatin1String("Nokia"));
|
QCoreApplication::setOrganizationName(QLatin1String("Nokia"));
|
||||||
QSettings::setDefaultFormat(QSettings::IniFormat);
|
QSettings::setDefaultFormat(QSettings::IniFormat);
|
||||||
QString baseName = qApp->style()->objectName();
|
QString baseName = QApplication::style()->objectName();
|
||||||
#ifdef Q_WS_X11
|
#ifdef Q_WS_X11
|
||||||
if (baseName == QLatin1String("windows")) {
|
if (baseName == QLatin1String("windows")) {
|
||||||
// Sometimes we get the standard windows 95 style as a fallback
|
// Sometimes we get the standard windows 95 style as a fallback
|
||||||
|
|||||||
@@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
#include <QtCore/QLibrary>
|
#include <QtCore/QLibrary>
|
||||||
|
|
||||||
|
#include <coreplugin/coreconstants.h>
|
||||||
|
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/stylehelper.h>
|
#include <utils/stylehelper.h>
|
||||||
|
|
||||||
@@ -141,7 +143,7 @@ ManhattanStylePrivate::ManhattanStylePrivate() :
|
|||||||
lineeditImage(QLatin1String(":/core/images/inputfield.png")),
|
lineeditImage(QLatin1String(":/core/images/inputfield.png")),
|
||||||
lineeditImage_disabled(QLatin1String(":/core/images/inputfield_disabled.png")),
|
lineeditImage_disabled(QLatin1String(":/core/images/inputfield_disabled.png")),
|
||||||
extButtonPixmap(QLatin1String(":/core/images/extension.png")),
|
extButtonPixmap(QLatin1String(":/core/images/extension.png")),
|
||||||
closeButtonPixmap(QLatin1String(":/core/images/closebutton.png"))
|
closeButtonPixmap(QLatin1String(Core::Constants::ICON_CLOSE))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -408,10 +408,10 @@ NavigationSubWidget::NavigationSubWidget(NavigationWidget *parentWidget, int pos
|
|||||||
toolBarLayout->addWidget(m_navigationComboBox);
|
toolBarLayout->addWidget(m_navigationComboBox);
|
||||||
|
|
||||||
QToolButton *splitAction = new QToolButton();
|
QToolButton *splitAction = new QToolButton();
|
||||||
splitAction->setIcon(QIcon(":/core/images/splitbutton_horizontal.png"));
|
splitAction->setIcon(QIcon(QLatin1String(Constants::ICON_SPLIT_HORIZONTAL)));
|
||||||
splitAction->setToolTip(tr("Split"));
|
splitAction->setToolTip(tr("Split"));
|
||||||
QToolButton *close = new QToolButton();
|
QToolButton *close = new QToolButton();
|
||||||
close->setIcon(QIcon(":/core/images/closebutton.png"));
|
close->setIcon(QIcon(QLatin1String(Constants::ICON_CLOSE)));
|
||||||
close->setToolTip(tr("Close"));
|
close->setToolTip(tr("Close"));
|
||||||
|
|
||||||
toolBarLayout->addWidget(splitAction);
|
toolBarLayout->addWidget(splitAction);
|
||||||
|
|||||||
@@ -209,17 +209,17 @@ OutputPaneManager::OutputPaneManager(QWidget *parent) :
|
|||||||
setWindowTitle(tr("Output"));
|
setWindowTitle(tr("Output"));
|
||||||
connect(m_widgetComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changePage()));
|
connect(m_widgetComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changePage()));
|
||||||
|
|
||||||
m_clearButton->setIcon(QIcon(Constants::ICON_CLEAN_PANE));
|
m_clearButton->setIcon(QIcon(QLatin1String(Constants::ICON_CLEAN_PANE)));
|
||||||
m_clearButton->setToolTip(tr("Clear"));
|
m_clearButton->setToolTip(tr("Clear"));
|
||||||
connect(m_clearButton, SIGNAL(clicked()), this, SLOT(clearPage()));
|
connect(m_clearButton, SIGNAL(clicked()), this, SLOT(clearPage()));
|
||||||
|
|
||||||
m_nextAction = new QAction(this);
|
m_nextAction = new QAction(this);
|
||||||
m_nextAction->setIcon(QIcon(":/core/images/next.png"));
|
m_nextAction->setIcon(QIcon(QLatin1String(Constants::ICON_NEXT)));
|
||||||
m_nextAction->setText(tr("Next Item"));
|
m_nextAction->setText(tr("Next Item"));
|
||||||
connect(m_nextAction, SIGNAL(triggered()), this, SLOT(slotNext()));
|
connect(m_nextAction, SIGNAL(triggered()), this, SLOT(slotNext()));
|
||||||
|
|
||||||
m_prevAction = new QAction(this);
|
m_prevAction = new QAction(this);
|
||||||
m_prevAction->setIcon(QIcon(":/core/images/prev.png"));
|
m_prevAction->setIcon(QIcon(QLatin1String(Constants::ICON_PREV)));
|
||||||
m_prevAction->setText(tr("Previous Item"));
|
m_prevAction->setText(tr("Previous Item"));
|
||||||
connect(m_prevAction, SIGNAL(triggered()), this, SLOT(slotPrev()));
|
connect(m_prevAction, SIGNAL(triggered()), this, SLOT(slotPrev()));
|
||||||
|
|
||||||
@@ -227,7 +227,7 @@ OutputPaneManager::OutputPaneManager(QWidget *parent) :
|
|||||||
m_minMaxAction->setIcon(m_maximizeIcon);
|
m_minMaxAction->setIcon(m_maximizeIcon);
|
||||||
m_minMaxAction->setText(tr("Maximize Output Pane"));
|
m_minMaxAction->setText(tr("Maximize Output Pane"));
|
||||||
|
|
||||||
m_closeButton->setIcon(QIcon(":/core/images/closebutton.png"));
|
m_closeButton->setIcon(QIcon(QLatin1String(Constants::ICON_CLOSE)));
|
||||||
connect(m_closeButton, SIGNAL(clicked()), this, SLOT(slotHide()));
|
connect(m_closeButton, SIGNAL(clicked()), this, SLOT(slotHide()));
|
||||||
|
|
||||||
QVBoxLayout *mainlayout = new QVBoxLayout;
|
QVBoxLayout *mainlayout = new QVBoxLayout;
|
||||||
|
|||||||
@@ -30,6 +30,8 @@
|
|||||||
#include "sidebar.h"
|
#include "sidebar.h"
|
||||||
#include "imode.h"
|
#include "imode.h"
|
||||||
|
|
||||||
|
#include <coreplugin/coreconstants.h>
|
||||||
|
|
||||||
#include "actionmanager/actionmanager.h"
|
#include "actionmanager/actionmanager.h"
|
||||||
#include "actionmanager/command.h"
|
#include "actionmanager/command.h"
|
||||||
|
|
||||||
@@ -324,12 +326,12 @@ SideBarWidget::SideBarWidget(SideBar *sideBar, const QString &id)
|
|||||||
m_toolbar->addWidget(m_comboBox);
|
m_toolbar->addWidget(m_comboBox);
|
||||||
|
|
||||||
m_splitButton = new QToolButton;
|
m_splitButton = new QToolButton;
|
||||||
m_splitButton->setIcon(QIcon(":/core/images/splitbutton_horizontal.png"));
|
m_splitButton->setIcon(QIcon(QLatin1String(Constants::ICON_SPLIT_HORIZONTAL)));
|
||||||
m_splitButton->setToolTip(tr("Split"));
|
m_splitButton->setToolTip(tr("Split"));
|
||||||
connect(m_splitButton, SIGNAL(clicked(bool)), this, SIGNAL(splitMe()));
|
connect(m_splitButton, SIGNAL(clicked(bool)), this, SIGNAL(splitMe()));
|
||||||
|
|
||||||
m_closeButton = new QToolButton;
|
m_closeButton = new QToolButton;
|
||||||
m_closeButton->setIcon(QIcon(":/core/images/closebutton.png"));
|
m_closeButton->setIcon(QIcon(QLatin1String(Constants::ICON_CLOSE)));
|
||||||
m_closeButton->setToolTip(tr("Close"));
|
m_closeButton->setToolTip(tr("Close"));
|
||||||
|
|
||||||
connect(m_closeButton, SIGNAL(clicked(bool)), this, SIGNAL(closeMe()));
|
connect(m_closeButton, SIGNAL(clicked(bool)), this, SIGNAL(closeMe()));
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ VersionDialog::VersionDialog(QWidget *parent)
|
|||||||
{
|
{
|
||||||
// We need to set the window icon explicitly here since for some reason the
|
// We need to set the window icon explicitly here since for some reason the
|
||||||
// application icon isn't used when the size of the dialog is fixed (at least not on X11/GNOME)
|
// application icon isn't used when the size of the dialog is fixed (at least not on X11/GNOME)
|
||||||
setWindowIcon(QIcon(":/core/images/qtcreator_logo_128.png"));
|
setWindowIcon(QIcon(QLatin1String(Constants::ICON_QTLOGO_128)));
|
||||||
|
|
||||||
setWindowTitle(tr("About Qt Creator"));
|
setWindowTitle(tr("About Qt Creator"));
|
||||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||||
@@ -104,7 +104,7 @@ VersionDialog::VersionDialog(QWidget *parent)
|
|||||||
connect(buttonBox , SIGNAL(rejected()), this, SLOT(reject()));
|
connect(buttonBox , SIGNAL(rejected()), this, SLOT(reject()));
|
||||||
|
|
||||||
QLabel *logoLabel = new QLabel;
|
QLabel *logoLabel = new QLabel;
|
||||||
logoLabel->setPixmap(QPixmap(QLatin1String(":/core/images/qtcreator_logo_128.png")));
|
logoLabel->setPixmap(QPixmap(QLatin1String(Constants::ICON_QTLOGO_128)));
|
||||||
layout->addWidget(logoLabel , 0, 0, 1, 1);
|
layout->addWidget(logoLabel , 0, 0, 1, 1);
|
||||||
layout->addWidget(copyRightLabel, 0, 1, 4, 4);
|
layout->addWidget(copyRightLabel, 0, 1, 4, 4);
|
||||||
layout->addWidget(buttonBox, 4, 0, 1, 5);
|
layout->addWidget(buttonBox, 4, 0, 1, 5);
|
||||||
|
|||||||
@@ -81,11 +81,11 @@ CppEditorFactory::CppEditorFactory(CppPlugin *owner) :
|
|||||||
#if !defined(Q_WS_MAC) && !defined(Q_WS_WIN)
|
#if !defined(Q_WS_MAC) && !defined(Q_WS_WIN)
|
||||||
Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance();
|
Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance();
|
||||||
Core::MimeDatabase *mimeDatabase = Core::ICore::instance()->mimeDatabase();
|
Core::MimeDatabase *mimeDatabase = Core::ICore::instance()->mimeDatabase();
|
||||||
iconProvider->registerIconOverlayForMimeType(QIcon(":/cppeditor/images/qt_cpp.png"),
|
iconProvider->registerIconOverlayForMimeType(QIcon(QLatin1String(":/cppeditor/images/qt_cpp.png")),
|
||||||
mimeDatabase->findByType(QLatin1String(CppEditor::Constants::CPP_SOURCE_MIMETYPE)));
|
mimeDatabase->findByType(QLatin1String(CppEditor::Constants::CPP_SOURCE_MIMETYPE)));
|
||||||
iconProvider->registerIconOverlayForMimeType(QIcon(":/cppeditor/images/qt_c.png"),
|
iconProvider->registerIconOverlayForMimeType(QIcon(QLatin1String(":/cppeditor/images/qt_c.png")),
|
||||||
mimeDatabase->findByType(QLatin1String(CppEditor::Constants::C_SOURCE_MIMETYPE)));
|
mimeDatabase->findByType(QLatin1String(CppEditor::Constants::C_SOURCE_MIMETYPE)));
|
||||||
iconProvider->registerIconOverlayForMimeType(QIcon(":/cppeditor/images/qt_h.png"),
|
iconProvider->registerIconOverlayForMimeType(QIcon(QLatin1String(":/cppeditor/images/qt_h.png")),
|
||||||
mimeDatabase->findByType(QLatin1String(CppEditor::Constants::CPP_HEADER_MIMETYPE)));
|
mimeDatabase->findByType(QLatin1String(CppEditor::Constants::CPP_HEADER_MIMETYPE)));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ BreakWindow::BreakWindow(QWidget *parent)
|
|||||||
setFrameStyle(QFrame::NoFrame);
|
setFrameStyle(QFrame::NoFrame);
|
||||||
setAttribute(Qt::WA_MacShowFocusRect, false);
|
setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||||
setWindowTitle(tr("Breakpoints"));
|
setWindowTitle(tr("Breakpoints"));
|
||||||
setWindowIcon(QIcon(":/debugger/images/debugger_breakpoints.png"));
|
setWindowIcon(QIcon(QLatin1String(":/debugger/images/debugger_breakpoints.png")));
|
||||||
setAlternatingRowColors(act->isChecked());
|
setAlternatingRowColors(act->isChecked());
|
||||||
setRootIsDecorated(false);
|
setRootIsDecorated(false);
|
||||||
setIconSize(QSize(10, 10));
|
setIconSize(QSize(10, 10));
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ DebuggerSettings *DebuggerSettings::instance()
|
|||||||
item->setText(tr("Operate by Instruction"));
|
item->setText(tr("Operate by Instruction"));
|
||||||
item->setCheckable(true);
|
item->setCheckable(true);
|
||||||
item->setDefaultValue(false);
|
item->setDefaultValue(false);
|
||||||
item->setIcon(QIcon(":/debugger/images/debugger_singleinstructionmode.png"));
|
item->setIcon(QIcon(QLatin1String(":/debugger/images/debugger_singleinstructionmode.png")));
|
||||||
item->setToolTip(tr("This switches the debugger to instruction-wise "
|
item->setToolTip(tr("This switches the debugger to instruction-wise "
|
||||||
"operation mode. In this mode, stepping operates on single "
|
"operation mode. In this mode, stepping operates on single "
|
||||||
"instructions and the source location view also shows the "
|
"instructions and the source location view also shows the "
|
||||||
|
|||||||
@@ -443,7 +443,7 @@ public:
|
|||||||
{
|
{
|
||||||
setDisplayName(QCoreApplication::translate("Debugger::Internal::DebugMode", "Debug"));
|
setDisplayName(QCoreApplication::translate("Debugger::Internal::DebugMode", "Debug"));
|
||||||
setId(MODE_DEBUG);
|
setId(MODE_DEBUG);
|
||||||
setIcon(QIcon(":/fancyactionbar/images/mode_Debug.png"));
|
setIcon(QIcon(__(":/fancyactionbar/images/mode_Debug.png")));
|
||||||
setPriority(P_MODE_DEBUG);
|
setPriority(P_MODE_DEBUG);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1083,9 +1083,9 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, QString *er
|
|||||||
const Core::Context cppeditorcontext(CppEditor::Constants::C_CPPEDITOR);
|
const Core::Context cppeditorcontext(CppEditor::Constants::C_CPPEDITOR);
|
||||||
|
|
||||||
m_stopIcon = QIcon(_(":/debugger/images/debugger_stop_small.png"));
|
m_stopIcon = QIcon(_(":/debugger/images/debugger_stop_small.png"));
|
||||||
m_stopIcon.addFile(":/debugger/images/debugger_stop.png");
|
m_stopIcon.addFile(__(":/debugger/images/debugger_stop.png"));
|
||||||
m_interruptIcon = QIcon(_(":/debugger/images/debugger_interrupt_small.png"));
|
m_interruptIcon = QIcon(_(":/debugger/images/debugger_interrupt_small.png"));
|
||||||
m_interruptIcon.addFile(":/debugger/images/debugger_interrupt.png");
|
m_interruptIcon.addFile(__(":/debugger/images/debugger_interrupt.png"));
|
||||||
m_locationMarkIcon = QIcon(_(":/debugger/images/location_16.png"));
|
m_locationMarkIcon = QIcon(_(":/debugger/images/location_16.png"));
|
||||||
|
|
||||||
m_busy = false;
|
m_busy = false;
|
||||||
@@ -1133,8 +1133,8 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, QString *er
|
|||||||
this, SLOT(updateWatchersHeader(int,int,int)), Qt::QueuedConnection);
|
this, SLOT(updateWatchersHeader(int,int,int)), Qt::QueuedConnection);
|
||||||
|
|
||||||
m_actions.continueAction = new QAction(tr("Continue"), this);
|
m_actions.continueAction = new QAction(tr("Continue"), this);
|
||||||
QIcon continueIcon = QIcon(":/debugger/images/debugger_continue_small.png");
|
QIcon continueIcon = QIcon(__(":/debugger/images/debugger_continue_small.png"));
|
||||||
continueIcon.addFile(":/debugger/images/debugger_continue.png");
|
continueIcon.addFile(__(":/debugger/images/debugger_continue.png"));
|
||||||
m_actions.continueAction->setIcon(continueIcon);
|
m_actions.continueAction->setIcon(continueIcon);
|
||||||
m_actions.continueAction->setProperty(Role, RequestExecContinueRole);
|
m_actions.continueAction->setProperty(Role, RequestExecContinueRole);
|
||||||
|
|
||||||
@@ -1154,17 +1154,17 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, QString *er
|
|||||||
m_actions.nextAction = new QAction(tr("Step Over"), this);
|
m_actions.nextAction = new QAction(tr("Step Over"), this);
|
||||||
m_actions.nextAction->setProperty(Role, RequestExecNextRole);
|
m_actions.nextAction->setProperty(Role, RequestExecNextRole);
|
||||||
m_actions.nextAction->setIcon(
|
m_actions.nextAction->setIcon(
|
||||||
QIcon(":/debugger/images/debugger_stepover_small.png"));
|
QIcon(__(":/debugger/images/debugger_stepover_small.png")));
|
||||||
|
|
||||||
m_actions.stepAction = new QAction(tr("Step Into"), this);
|
m_actions.stepAction = new QAction(tr("Step Into"), this);
|
||||||
m_actions.stepAction->setProperty(Role, RequestExecStepRole);
|
m_actions.stepAction->setProperty(Role, RequestExecStepRole);
|
||||||
m_actions.stepAction->setIcon(
|
m_actions.stepAction->setIcon(
|
||||||
QIcon(":/debugger/images/debugger_stepinto_small.png"));
|
QIcon(__(":/debugger/images/debugger_stepinto_small.png")));
|
||||||
|
|
||||||
m_actions.stepOutAction = new QAction(tr("Step Out"), this);
|
m_actions.stepOutAction = new QAction(tr("Step Out"), this);
|
||||||
m_actions.stepOutAction->setProperty(Role, RequestExecStepOutRole);
|
m_actions.stepOutAction->setProperty(Role, RequestExecStepOutRole);
|
||||||
m_actions.stepOutAction->setIcon(
|
m_actions.stepOutAction->setIcon(
|
||||||
QIcon(":/debugger/images/debugger_stepout_small.png"));
|
QIcon(__(":/debugger/images/debugger_stepout_small.png")));
|
||||||
|
|
||||||
m_actions.runToLineAction1 = new QAction(tr("Run to Line"), this);
|
m_actions.runToLineAction1 = new QAction(tr("Run to Line"), this);
|
||||||
m_actions.runToLineAction1->setProperty(Role, RequestExecRunToLineRole);
|
m_actions.runToLineAction1->setProperty(Role, RequestExecRunToLineRole);
|
||||||
@@ -1194,14 +1194,14 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, QString *er
|
|||||||
m_actions.snapshotAction = new QAction(tr("Create Snapshot"), this);
|
m_actions.snapshotAction = new QAction(tr("Create Snapshot"), this);
|
||||||
m_actions.snapshotAction->setProperty(Role, RequestCreateSnapshotRole);
|
m_actions.snapshotAction->setProperty(Role, RequestCreateSnapshotRole);
|
||||||
m_actions.snapshotAction->setIcon(
|
m_actions.snapshotAction->setIcon(
|
||||||
QIcon(":/debugger/images/debugger_snapshot_small.png"));
|
QIcon(__(":/debugger/images/debugger_snapshot_small.png")));
|
||||||
|
|
||||||
m_actions.reverseDirectionAction =
|
m_actions.reverseDirectionAction =
|
||||||
new QAction(tr("Reverse Direction"), this);
|
new QAction(tr("Reverse Direction"), this);
|
||||||
m_actions.reverseDirectionAction->setCheckable(true);
|
m_actions.reverseDirectionAction->setCheckable(true);
|
||||||
m_actions.reverseDirectionAction->setChecked(false);
|
m_actions.reverseDirectionAction->setChecked(false);
|
||||||
m_actions.reverseDirectionAction->setIcon(
|
m_actions.reverseDirectionAction->setIcon(
|
||||||
QIcon(":/debugger/images/debugger_reversemode_16.png"));
|
QIcon(__(":/debugger/images/debugger_reversemode_16.png")));
|
||||||
m_actions.reverseDirectionAction->setIconVisibleInMenu(false);
|
m_actions.reverseDirectionAction->setIconVisibleInMenu(false);
|
||||||
|
|
||||||
m_actions.frameDownAction =
|
m_actions.frameDownAction =
|
||||||
|
|||||||
@@ -117,8 +117,8 @@ QDebug operator<<(QDebug d, const SnapshotData &f)
|
|||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
SnapshotHandler::SnapshotHandler()
|
SnapshotHandler::SnapshotHandler()
|
||||||
: m_positionIcon(QIcon(":/debugger/images/location_16.png")),
|
: m_positionIcon(QIcon(QLatin1String(":/debugger/images/location_16.png"))),
|
||||||
m_emptyIcon(QIcon(":/debugger/images/debugger_empty_14.png"))
|
m_emptyIcon(QIcon(QLatin1String(":/debugger/images/debugger_empty_14.png")))
|
||||||
{
|
{
|
||||||
m_currentIndex = -1;
|
m_currentIndex = -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ namespace Internal {
|
|||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
StackHandler::StackHandler(DebuggerEngine *engine)
|
StackHandler::StackHandler(DebuggerEngine *engine)
|
||||||
: m_positionIcon(QIcon(":/debugger/images/location_16.png")),
|
: m_positionIcon(QIcon(QLatin1String(":/debugger/images/location_16.png"))),
|
||||||
m_emptyIcon(QIcon(":/debugger/images/debugger_empty_14.png"))
|
m_emptyIcon(QIcon(QLatin1String(":/debugger/images/debugger_empty_14.png")))
|
||||||
{
|
{
|
||||||
m_engine = engine;
|
m_engine = engine;
|
||||||
m_disassemblerViewAgent = new DisassemblerViewAgent(engine);
|
m_disassemblerViewAgent = new DisassemblerViewAgent(engine);
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ FindToolBar::FindToolBar(FindPlugin *plugin, CurrentDocumentFind *currentDocumen
|
|||||||
|
|
||||||
connect(m_ui.findEdit, SIGNAL(editingFinished()), this, SLOT(invokeResetIncrementalSearch()));
|
connect(m_ui.findEdit, SIGNAL(editingFinished()), this, SLOT(invokeResetIncrementalSearch()));
|
||||||
|
|
||||||
m_ui.close->setIcon(QIcon(":/core/images/closebutton.png"));
|
m_ui.close->setIcon(QIcon(QLatin1String(Core::Constants::ICON_CLOSE)));
|
||||||
connect(m_ui.close, SIGNAL(clicked()), this, SLOT(hideAndResetFocus()));
|
connect(m_ui.close, SIGNAL(clicked()), this, SLOT(hideAndResetFocus()));
|
||||||
|
|
||||||
m_findCompleter->setModel(m_plugin->findCompletionModel());
|
m_findCompleter->setModel(m_plugin->findCompletionModel());
|
||||||
@@ -201,7 +201,7 @@ FindToolBar::FindToolBar(FindPlugin *plugin, CurrentDocumentFind *currentDocumen
|
|||||||
m_ui.replaceAllButton->setDefaultAction(cmd->action());
|
m_ui.replaceAllButton->setDefaultAction(cmd->action());
|
||||||
|
|
||||||
m_caseSensitiveAction = new QAction(tr("Case Sensitive"), this);
|
m_caseSensitiveAction = new QAction(tr("Case Sensitive"), this);
|
||||||
m_caseSensitiveAction->setIcon(QIcon(":/find/images/casesensitively.png"));
|
m_caseSensitiveAction->setIcon(QIcon(QLatin1String(":/find/images/casesensitively.png")));
|
||||||
m_caseSensitiveAction->setCheckable(true);
|
m_caseSensitiveAction->setCheckable(true);
|
||||||
m_caseSensitiveAction->setChecked(false);
|
m_caseSensitiveAction->setChecked(false);
|
||||||
cmd = am->registerAction(m_caseSensitiveAction, Constants::CASE_SENSITIVE, globalcontext);
|
cmd = am->registerAction(m_caseSensitiveAction, Constants::CASE_SENSITIVE, globalcontext);
|
||||||
@@ -210,7 +210,7 @@ FindToolBar::FindToolBar(FindPlugin *plugin, CurrentDocumentFind *currentDocumen
|
|||||||
lineEditMenu->addAction(m_caseSensitiveAction);
|
lineEditMenu->addAction(m_caseSensitiveAction);
|
||||||
|
|
||||||
m_wholeWordAction = new QAction(tr("Whole Words Only"), this);
|
m_wholeWordAction = new QAction(tr("Whole Words Only"), this);
|
||||||
m_wholeWordAction->setIcon(QIcon(":/find/images/wholewords.png"));
|
m_wholeWordAction->setIcon(QIcon(QLatin1String(":/find/images/wholewords.png")));
|
||||||
m_wholeWordAction->setCheckable(true);
|
m_wholeWordAction->setCheckable(true);
|
||||||
m_wholeWordAction->setChecked(false);
|
m_wholeWordAction->setChecked(false);
|
||||||
cmd = am->registerAction(m_wholeWordAction, Constants::WHOLE_WORDS, globalcontext);
|
cmd = am->registerAction(m_wholeWordAction, Constants::WHOLE_WORDS, globalcontext);
|
||||||
@@ -219,7 +219,7 @@ FindToolBar::FindToolBar(FindPlugin *plugin, CurrentDocumentFind *currentDocumen
|
|||||||
lineEditMenu->addAction(m_wholeWordAction);
|
lineEditMenu->addAction(m_wholeWordAction);
|
||||||
|
|
||||||
m_regularExpressionAction = new QAction(tr("Use Regular Expressions"), this);
|
m_regularExpressionAction = new QAction(tr("Use Regular Expressions"), this);
|
||||||
m_regularExpressionAction->setIcon(QIcon(":/find/images/regexp.png"));
|
m_regularExpressionAction->setIcon(QIcon(QLatin1String(":/find/images/regexp.png")));
|
||||||
m_regularExpressionAction->setCheckable(true);
|
m_regularExpressionAction->setCheckable(true);
|
||||||
m_regularExpressionAction->setChecked(false);
|
m_regularExpressionAction->setChecked(false);
|
||||||
cmd = am->registerAction(m_regularExpressionAction, Constants::REGULAR_EXPRESSIONS, globalcontext);
|
cmd = am->registerAction(m_regularExpressionAction, Constants::REGULAR_EXPRESSIONS, globalcontext);
|
||||||
|
|||||||
@@ -530,7 +530,7 @@ void HelpPlugin::createRightPaneContextViewer()
|
|||||||
hboxLayout->addStretch();
|
hboxLayout->addStretch();
|
||||||
|
|
||||||
QToolButton *closeButton = new QToolButton();
|
QToolButton *closeButton = new QToolButton();
|
||||||
closeButton->setIcon(QIcon(":/core/images/closebutton.png"));
|
closeButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_CLOSE)));
|
||||||
connect(closeButton, SIGNAL(clicked()), this, SLOT(slotHideRightPane()));
|
connect(closeButton, SIGNAL(clicked()), this, SLOT(slotHideRightPane()));
|
||||||
|
|
||||||
// close button to the right
|
// close button to the right
|
||||||
@@ -866,7 +866,7 @@ QToolBar *HelpPlugin::createToolBar()
|
|||||||
SLOT(updateSideBarSource()));
|
SLOT(updateSideBarSource()));
|
||||||
|
|
||||||
m_closeButton = new QToolButton();
|
m_closeButton = new QToolButton();
|
||||||
m_closeButton->setIcon(QIcon(":/core/images/closebutton.png"));
|
m_closeButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_CLOSE)));
|
||||||
m_closeButton->setToolTip(tr("Close current Page"));
|
m_closeButton->setToolTip(tr("Close current Page"));
|
||||||
connect(m_closeButton, SIGNAL(clicked()), &OpenPagesManager::instance(),
|
connect(m_closeButton, SIGNAL(clicked()), &OpenPagesManager::instance(),
|
||||||
SLOT(closeCurrentPage()));
|
SLOT(closeCurrentPage()));
|
||||||
|
|||||||
@@ -32,6 +32,8 @@
|
|||||||
#include "centralwidget.h"
|
#include "centralwidget.h"
|
||||||
#include "openpagesmodel.h"
|
#include "openpagesmodel.h"
|
||||||
|
|
||||||
|
#include <coreplugin/coreconstants.h>
|
||||||
|
|
||||||
#include <QtGui/QApplication>
|
#include <QtGui/QApplication>
|
||||||
#include <QtGui/QPainter>
|
#include <QtGui/QPainter>
|
||||||
|
|
||||||
@@ -70,8 +72,8 @@ void OpenPagesDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opt
|
|||||||
|
|
||||||
if (index.column() == 1 && index.model()->rowCount() > 1
|
if (index.column() == 1 && index.model()->rowCount() > 1
|
||||||
&& option.state & QStyle::State_MouseOver) {
|
&& option.state & QStyle::State_MouseOver) {
|
||||||
QIcon icon((option.state & QStyle::State_Selected)
|
const QIcon icon(QLatin1String((option.state & QStyle::State_Selected) ?
|
||||||
? ":/core/images/closebutton.png" : ":/core/images/darkclosebutton.png");
|
Core::Constants::ICON_CLOSE : Core::Constants::ICON_CLOSE_DARK));
|
||||||
|
|
||||||
const QRect iconRect(option.rect.right() - option.rect.height(),
|
const QRect iconRect(option.rect.right() - option.rect.height(),
|
||||||
option.rect.top(), option.rect.height(), option.rect.height());
|
option.rect.top(), option.rect.height(), option.rect.height());
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ LocatorWidget::LocatorWidget(LocatorPlugin *qop) :
|
|||||||
layout->setMargin(0);
|
layout->setMargin(0);
|
||||||
layout->addWidget(m_fileLineEdit);
|
layout->addWidget(m_fileLineEdit);
|
||||||
|
|
||||||
setWindowIcon(QIcon(":/locator/images/locator.png"));
|
setWindowIcon(QIcon(QLatin1String(":/locator/images/locator.png")));
|
||||||
QPixmap image(Core::Constants::ICON_MAGNIFIER);
|
QPixmap image(Core::Constants::ICON_MAGNIFIER);
|
||||||
m_fileLineEdit->setButtonPixmap(Utils::FancyLineEdit::Left, image);
|
m_fileLineEdit->setButtonPixmap(Utils::FancyLineEdit::Left, image);
|
||||||
m_fileLineEdit->setPlaceholderText(tr("Type to locate"));
|
m_fileLineEdit->setPlaceholderText(tr("Type to locate"));
|
||||||
|
|||||||
@@ -180,19 +180,19 @@ void BuildStepsPage::addBuildStepWidget(int pos, BuildStep *step)
|
|||||||
s.upButton->setAutoRaise(true);
|
s.upButton->setAutoRaise(true);
|
||||||
s.upButton->setToolTip(tr("Move Up"));
|
s.upButton->setToolTip(tr("Move Up"));
|
||||||
s.upButton->setFixedSize(buttonSize);
|
s.upButton->setFixedSize(buttonSize);
|
||||||
s.upButton->setIcon(QIcon(":/core/images/darkarrowup.png"));
|
s.upButton->setIcon(QIcon(QLatin1String(":/core/images/darkarrowup.png")));
|
||||||
|
|
||||||
s.downButton = new QToolButton(toolWidget);
|
s.downButton = new QToolButton(toolWidget);
|
||||||
s.downButton->setAutoRaise(true);
|
s.downButton->setAutoRaise(true);
|
||||||
s.downButton->setToolTip(tr("Move Down"));
|
s.downButton->setToolTip(tr("Move Down"));
|
||||||
s.downButton->setFixedSize(buttonSize);
|
s.downButton->setFixedSize(buttonSize);
|
||||||
s.downButton->setIcon(QIcon(":/core/images/darkarrowdown.png"));
|
s.downButton->setIcon(QIcon(QLatin1String(":/core/images/darkarrowdown.png")));
|
||||||
|
|
||||||
s.removeButton = new QToolButton(toolWidget);
|
s.removeButton = new QToolButton(toolWidget);
|
||||||
s.removeButton->setAutoRaise(true);
|
s.removeButton->setAutoRaise(true);
|
||||||
s.removeButton->setToolTip(tr("Remove Item"));
|
s.removeButton->setToolTip(tr("Remove Item"));
|
||||||
s.removeButton->setFixedSize(buttonSize);
|
s.removeButton->setFixedSize(buttonSize);
|
||||||
s.removeButton->setIcon(QIcon(":/core/images/darkclose.png"));
|
s.removeButton->setIcon(QIcon(QLatin1String(":/core/images/darkclose.png")));
|
||||||
|
|
||||||
toolWidget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
|
toolWidget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
|
||||||
QHBoxLayout *hbox = new QHBoxLayout();
|
QHBoxLayout *hbox = new QHBoxLayout();
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
#include <find/basetextfind.h>
|
#include <find/basetextfind.h>
|
||||||
#include <aggregation/aggregate.h>
|
#include <aggregation/aggregate.h>
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
|
#include <qt4projectmanager/qt4projectmanagerconstants.h>
|
||||||
|
|
||||||
#include <QtGui/QKeyEvent>
|
#include <QtGui/QKeyEvent>
|
||||||
#include <QtGui/QIcon>
|
#include <QtGui/QIcon>
|
||||||
@@ -56,7 +57,7 @@ CompileOutputWindow::CompileOutputWindow(BuildManager * /*bm*/)
|
|||||||
{
|
{
|
||||||
m_outputWindow = new OutputWindow();
|
m_outputWindow = new OutputWindow();
|
||||||
m_outputWindow->setWindowTitle(tr("Compile Output"));
|
m_outputWindow->setWindowTitle(tr("Compile Output"));
|
||||||
m_outputWindow->setWindowIcon(QIcon(":/qt4projectmanager/images/window.png"));
|
m_outputWindow->setWindowIcon(QIcon(QLatin1String(Qt4ProjectManager::Constants::ICON_WINDOW)));
|
||||||
m_outputWindow->setReadOnly(true);
|
m_outputWindow->setReadOnly(true);
|
||||||
|
|
||||||
Aggregation::Aggregate *agg = new Aggregation::Aggregate;
|
Aggregation::Aggregate *agg = new Aggregation::Aggregate;
|
||||||
|
|||||||
@@ -482,7 +482,7 @@ Core::NavigationView FolderNavigationWidgetFactory::createWidget()
|
|||||||
FolderNavigationWidget *ptw = new FolderNavigationWidget;
|
FolderNavigationWidget *ptw = new FolderNavigationWidget;
|
||||||
n.widget = ptw;
|
n.widget = ptw;
|
||||||
QToolButton *toggleSync = new QToolButton;
|
QToolButton *toggleSync = new QToolButton;
|
||||||
toggleSync->setIcon(QIcon(QLatin1String(":/core/images/linkicon.png")));
|
toggleSync->setIcon(QIcon(QLatin1String(Core::Constants::ICON_LINK)));
|
||||||
toggleSync->setCheckable(true);
|
toggleSync->setCheckable(true);
|
||||||
toggleSync->setChecked(ptw->autoSynchronization());
|
toggleSync->setChecked(ptw->autoSynchronization());
|
||||||
toggleSync->setToolTip(tr("Synchronize with Editor"));
|
toggleSync->setToolTip(tr("Synchronize with Editor"));
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
#include <aggregation/aggregate.h>
|
#include <aggregation/aggregate.h>
|
||||||
#include <texteditor/basetexteditor.h>
|
#include <texteditor/basetexteditor.h>
|
||||||
#include <projectexplorer/project.h>
|
#include <projectexplorer/project.h>
|
||||||
|
#include <qt4projectmanager/qt4projectmanagerconstants.h>
|
||||||
|
|
||||||
#include <QtGui/QIcon>
|
#include <QtGui/QIcon>
|
||||||
#include <QtGui/QScrollBar>
|
#include <QtGui/QScrollBar>
|
||||||
@@ -222,7 +223,7 @@ void OutputPane::createNewOutputWindow(RunControl *rc)
|
|||||||
if (!found) {
|
if (!found) {
|
||||||
OutputWindow *ow = new OutputWindow(m_tabWidget);
|
OutputWindow *ow = new OutputWindow(m_tabWidget);
|
||||||
ow->setWindowTitle(tr("Application Output Window"));
|
ow->setWindowTitle(tr("Application Output Window"));
|
||||||
ow->setWindowIcon(QIcon(":/qt4projectmanager/images/window.png"));
|
ow->setWindowIcon(QIcon(QLatin1String(Qt4ProjectManager::Constants::ICON_WINDOW)));
|
||||||
ow->setFormatter(rc->outputFormatter());
|
ow->setFormatter(rc->outputFormatter());
|
||||||
Aggregation::Aggregate *agg = new Aggregation::Aggregate;
|
Aggregation::Aggregate *agg = new Aggregation::Aggregate;
|
||||||
agg->add(ow);
|
agg->add(ow);
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
#include "projectexplorerconstants.h"
|
#include "projectexplorerconstants.h"
|
||||||
#include "projectmodels.h"
|
#include "projectmodels.h"
|
||||||
|
|
||||||
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <coreplugin/editormanager/editormanager.h>
|
#include <coreplugin/editormanager/editormanager.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
@@ -130,7 +131,7 @@ ProjectTreeWidget::ProjectTreeWidget(QWidget *parent)
|
|||||||
this, SLOT(startupProjectChanged(ProjectExplorer::Project *)));
|
this, SLOT(startupProjectChanged(ProjectExplorer::Project *)));
|
||||||
|
|
||||||
m_toggleSync = new QToolButton;
|
m_toggleSync = new QToolButton;
|
||||||
m_toggleSync->setIcon(QIcon(":/core/images/linkicon.png"));
|
m_toggleSync->setIcon(QIcon(QLatin1String(Core::Constants::ICON_LINK)));
|
||||||
m_toggleSync->setCheckable(true);
|
m_toggleSync->setCheckable(true);
|
||||||
m_toggleSync->setChecked(autoSynchronization());
|
m_toggleSync->setChecked(autoSynchronization());
|
||||||
m_toggleSync->setToolTip(tr("Synchronize with Editor"));
|
m_toggleSync->setToolTip(tr("Synchronize with Editor"));
|
||||||
@@ -356,7 +357,7 @@ Core::NavigationView ProjectTreeWidgetFactory::createWidget()
|
|||||||
n.widget = ptw;
|
n.widget = ptw;
|
||||||
|
|
||||||
QToolButton *filter = new QToolButton;
|
QToolButton *filter = new QToolButton;
|
||||||
filter->setIcon(QIcon(":/core/images/filtericon.png"));
|
filter->setIcon(QIcon(QLatin1String(Core::Constants::ICON_FILTER)));
|
||||||
filter->setToolTip(tr("Filter tree"));
|
filter->setToolTip(tr("Filter tree"));
|
||||||
filter->setPopupMode(QToolButton::InstantPopup);
|
filter->setPopupMode(QToolButton::InstantPopup);
|
||||||
QMenu *filterMenu = new QMenu(filter);
|
QMenu *filterMenu = new QMenu(filter);
|
||||||
|
|||||||
@@ -100,9 +100,9 @@ ProjectWelcomePageWidget::ProjectWelcomePageWidget(QWidget *parent) :
|
|||||||
connect(ui->manageSessionsButton, SIGNAL(clicked()), SIGNAL(manageSessions()));
|
connect(ui->manageSessionsButton, SIGNAL(clicked()), SIGNAL(manageSessions()));
|
||||||
|
|
||||||
ui->createNewProjectButton->setIcon(
|
ui->createNewProjectButton->setIcon(
|
||||||
QIcon::fromTheme("document-new", ui->createNewProjectButton->icon()));
|
QIcon::fromTheme(QLatin1String("document-new"), ui->createNewProjectButton->icon()));
|
||||||
ui->openProjectButton->setIcon(
|
ui->openProjectButton->setIcon(
|
||||||
QIcon::fromTheme("document-open", ui->openProjectButton->icon()));
|
QIcon::fromTheme(QLatin1String("document-open"), ui->openProjectButton->icon()));
|
||||||
}
|
}
|
||||||
|
|
||||||
ProjectWelcomePageWidget::~ProjectWelcomePageWidget()
|
ProjectWelcomePageWidget::~ProjectWelcomePageWidget()
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
#include <coreplugin/icontext.h>
|
#include <coreplugin/icontext.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
|
#include <qt4projectmanager/qt4projectmanagerconstants.h>
|
||||||
|
|
||||||
#include <QtCore/QDir>
|
#include <QtCore/QDir>
|
||||||
#include <QtCore/QFileInfo>
|
#include <QtCore/QFileInfo>
|
||||||
@@ -525,7 +526,7 @@ TaskWindow::TaskWindow(TaskHub *taskhub) : d(new TaskWindowPrivate)
|
|||||||
d->m_listview->setSelectionMode(QAbstractItemView::SingleSelection);
|
d->m_listview->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||||
Internal::TaskDelegate *tld = new Internal::TaskDelegate(this);
|
Internal::TaskDelegate *tld = new Internal::TaskDelegate(this);
|
||||||
d->m_listview->setItemDelegate(tld);
|
d->m_listview->setItemDelegate(tld);
|
||||||
d->m_listview->setWindowIcon(QIcon(":/qt4projectmanager/images/window.png"));
|
d->m_listview->setWindowIcon(QIcon(QLatin1String(Qt4ProjectManager::Constants::ICON_WINDOW)));
|
||||||
d->m_listview->setContextMenuPolicy(Qt::ActionsContextMenu);
|
d->m_listview->setContextMenuPolicy(Qt::ActionsContextMenu);
|
||||||
d->m_listview->setAttribute(Qt::WA_MacShowFocusRect, false);
|
d->m_listview->setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||||
|
|
||||||
@@ -560,7 +561,7 @@ TaskWindow::TaskWindow(TaskHub *taskhub) : d(new TaskWindowPrivate)
|
|||||||
connect(d->m_categoriesMenu, SIGNAL(triggered(QAction*)), this, SLOT(filterCategoryTriggered(QAction*)));
|
connect(d->m_categoriesMenu, SIGNAL(triggered(QAction*)), this, SLOT(filterCategoryTriggered(QAction*)));
|
||||||
|
|
||||||
d->m_categoriesButton = new QToolButton;
|
d->m_categoriesButton = new QToolButton;
|
||||||
d->m_categoriesButton->setIcon(QIcon(":/core/images/filtericon.png"));
|
d->m_categoriesButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_FILTER)));
|
||||||
d->m_categoriesButton->setToolTip(tr("Filter by categories"));
|
d->m_categoriesButton->setToolTip(tr("Filter by categories"));
|
||||||
d->m_categoriesButton->setAutoRaise(true);
|
d->m_categoriesButton->setAutoRaise(true);
|
||||||
d->m_categoriesButton->setPopupMode(QToolButton::InstantPopup);
|
d->m_categoriesButton->setPopupMode(QToolButton::InstantPopup);
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ EasingContextPane::EasingContextPane(QWidget *parent) :
|
|||||||
m_easingGraph->raise();
|
m_easingGraph->raise();
|
||||||
setLinear();
|
setLinear();
|
||||||
|
|
||||||
ui->playButton->setIcon(QIcon(":/playicon.png"));
|
ui->playButton->setIcon(QIcon(QLatin1String(":/playicon.png")));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -215,14 +215,14 @@ void EasingContextPane::startAnimation()
|
|||||||
m_simulation->stop();
|
m_simulation->stop();
|
||||||
else {
|
else {
|
||||||
m_simulation->animate(ui->durationSpinBox->value(), m_easingGraph->easingCurve());
|
m_simulation->animate(ui->durationSpinBox->value(), m_easingGraph->easingCurve());
|
||||||
ui->playButton->setIcon(QIcon(":/stopicon.png"));
|
ui->playButton->setIcon(QIcon(QLatin1String(":/stopicon.png")));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void EasingContextPane::switchToGraph()
|
void EasingContextPane::switchToGraph()
|
||||||
{
|
{
|
||||||
ui->playButton->setIcon(QIcon(":/playicon.png"));
|
ui->playButton->setIcon(QIcon(QLatin1String(":/playicon.png")));
|
||||||
setGraphDisplayMode(GraphMode);
|
setGraphDisplayMode(GraphMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ void IdItemDelegate::paint(QPainter *painter,
|
|||||||
|
|
||||||
// if the library was also empty, use the default icon
|
// if the library was also empty, use the default icon
|
||||||
if (icon.isNull())
|
if (icon.isNull())
|
||||||
icon = QIcon(":/ItemLibrary/images/item-default-icon.png");
|
icon = QIcon(QLatin1String(":/ItemLibrary/images/item-default-icon.png"));
|
||||||
|
|
||||||
// If no icon is present, leave an empty space of 24 pixels anyway
|
// If no icon is present, leave an empty space of 24 pixels anyway
|
||||||
int pixmapSide = 16;
|
int pixmapSide = 16;
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e
|
|||||||
error_message->clear();
|
error_message->clear();
|
||||||
|
|
||||||
Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance();
|
Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance();
|
||||||
iconProvider->registerIconOverlayForSuffix(QIcon(":/qmljseditor/images/qmlfile.png"), "qml");
|
iconProvider->registerIconOverlayForSuffix(QIcon(QLatin1String(":/qmljseditor/images/qmlfile.png")), "qml");
|
||||||
|
|
||||||
m_quickFixCollector = new QmlJSQuickFixCollector;
|
m_quickFixCollector = new QmlJSQuickFixCollector;
|
||||||
addAutoReleasedObject(m_quickFixCollector);
|
addAutoReleasedObject(m_quickFixCollector);
|
||||||
|
|||||||
@@ -156,17 +156,17 @@ void QmlInspectorToolbar::createActions(const Core::Context &context)
|
|||||||
ExtensionSystem::PluginManager *pluginManager = ExtensionSystem::PluginManager::instance();
|
ExtensionSystem::PluginManager *pluginManager = ExtensionSystem::PluginManager::instance();
|
||||||
Debugger::DebuggerUISwitcher *uiSwitcher = pluginManager->getObject<Debugger::DebuggerUISwitcher>();
|
Debugger::DebuggerUISwitcher *uiSwitcher = pluginManager->getObject<Debugger::DebuggerUISwitcher>();
|
||||||
|
|
||||||
m_fromQmlAction = new QAction(QIcon(":/qml/images/from-qml-small.png"), tr("Apply Changes to Document"), this);
|
m_fromQmlAction = new QAction(QIcon(QLatin1String(":/qml/images/from-qml-small.png")), tr("Apply Changes to Document"), this);
|
||||||
m_designmodeAction = new QAction(QIcon(":/qml/images/designmode.png"), "Design Mode", this);
|
m_designmodeAction = new QAction(QIcon(QLatin1String(":/qml/images/designmode.png")), QLatin1String("Design Mode"), this); // TODO: tr?
|
||||||
|
|
||||||
m_reloadAction = new QAction(QIcon(":/qml/images/reload.png"), "Reload", this);
|
m_reloadAction = new QAction(QIcon(QLatin1String(":/qml/images/reload.png")), QLatin1String("Reload"), this); // TODO: tr?
|
||||||
m_playAction = new QAction(QIcon(":/qml/images/play-small.png"), tr("Play animations"), this);
|
m_playAction = new QAction(QIcon(QLatin1String(":/qml/images/play-small.png")), tr("Play animations"), this);
|
||||||
m_pauseAction = new QAction(QIcon(":/qml/images/pause-small.png"), tr("Pause animations"), this);
|
m_pauseAction = new QAction(QIcon(QLatin1String(":/qml/images/pause-small.png")), tr("Pause animations"), this);
|
||||||
m_selectAction = new QAction(QIcon(":/qml/images/select-small.png"), tr("Select"), this);
|
m_selectAction = new QAction(QIcon(QLatin1String(":/qml/images/select-small.png")), tr("Select"), this);
|
||||||
m_selectMarqueeAction = new QAction(QIcon(":/qml/images/select-marquee-small.png"), tr("Select (Marquee)"), this);
|
m_selectMarqueeAction = new QAction(QIcon(QLatin1String(":/qml/images/select-marquee-small.png")), tr("Select (Marquee)"), this);
|
||||||
m_zoomAction = new QAction(QIcon(":/qml/images/zoom-small.png"), tr("Zoom"), this);
|
m_zoomAction = new QAction(QIcon(QLatin1String(":/qml/images/zoom-small.png")), tr("Zoom"), this);
|
||||||
m_colorPickerAction = new QAction(QIcon(":/qml/images/color-picker-small.png"), tr("Color Picker"), this);
|
m_colorPickerAction = new QAction(QIcon(QLatin1String(":/qml/images/color-picker-small.png")), tr("Color Picker"), this);
|
||||||
m_toQmlAction = new QAction(QIcon(":/qml/images/to-qml-small.png"), tr("Live Preview Changes in QML Viewer"), this);
|
m_toQmlAction = new QAction(QIcon(QLatin1String(":/qml/images/to-qml-small.png")), tr("Live Preview Changes in QML Viewer"), this);
|
||||||
|
|
||||||
m_designmodeAction->setCheckable(true);
|
m_designmodeAction->setCheckable(true);
|
||||||
m_designmodeAction->setChecked(false);
|
m_designmodeAction->setChecked(false);
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ ToolBarColorBox::ToolBarColorBox(QWidget *parent) :
|
|||||||
m_borderColorOuter = Qt::white;
|
m_borderColorOuter = Qt::white;
|
||||||
m_borderColorInner = QColor(143, 143 ,143);
|
m_borderColorInner = QColor(143, 143 ,143);
|
||||||
|
|
||||||
m_copyHexColorAction = new QAction(QIcon(":/qml/images/color-picker-small-hicontrast.png"), tr("Copy Color"), this);
|
m_copyHexColorAction = new QAction(QIcon(QLatin1String(":/qml/images/color-picker-small-hicontrast.png")), tr("Copy Color"), this);
|
||||||
connect(m_copyHexColorAction, SIGNAL(triggered()), SLOT(copyColorToClipboard()));
|
connect(m_copyHexColorAction, SIGNAL(triggered()), SLOT(copyColorToClipboard()));
|
||||||
setScaledContents(false);
|
setScaledContents(false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage)
|
|||||||
QmlProjectFileFormat::registerDeclarativeTypes();
|
QmlProjectFileFormat::registerDeclarativeTypes();
|
||||||
|
|
||||||
Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance();
|
Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance();
|
||||||
iconProvider->registerIconOverlayForSuffix(QIcon(":/qmlproject/images/qmlproject.png"), "qmlproject");
|
iconProvider->registerIconOverlayForSuffix(QIcon(QLatin1String(":/qmlproject/images/qmlproject.png")), "qmlproject");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -99,9 +99,9 @@ GettingStartedWelcomePageWidget::GettingStartedWelcomePageWidget(QWidget *parent
|
|||||||
connect(ui->createNewProjectButton, SIGNAL(clicked()), this, SLOT(slotCreateNewProject()));
|
connect(ui->createNewProjectButton, SIGNAL(clicked()), this, SLOT(slotCreateNewProject()));
|
||||||
|
|
||||||
ui->createNewProjectButton->setIcon(
|
ui->createNewProjectButton->setIcon(
|
||||||
QIcon::fromTheme("document-new", ui->createNewProjectButton->icon()));
|
QIcon::fromTheme(QLatin1String("document-new"), ui->createNewProjectButton->icon()));
|
||||||
ui->openProjectButton->setIcon(
|
ui->openProjectButton->setIcon(
|
||||||
QIcon::fromTheme("document-open", ui->openProjectButton->icon()));
|
QIcon::fromTheme(QLatin1String("document-open"), ui->openProjectButton->icon()));
|
||||||
QTimer::singleShot(0, this, SLOT(slotSetPrivateQmlExamples()));
|
QTimer::singleShot(0, this, SLOT(slotSetPrivateQmlExamples()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -53,11 +53,11 @@ ProFileEditorFactory::ProFileEditorFactory(Qt4Manager *manager, TextEditor::Text
|
|||||||
m_actionHandler(handler)
|
m_actionHandler(handler)
|
||||||
{
|
{
|
||||||
Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance();
|
Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance();
|
||||||
iconProvider->registerIconOverlayForSuffix(QIcon(":/qt4projectmanager/images/qt_project.png"),
|
iconProvider->registerIconOverlayForSuffix(QIcon(QLatin1String(Constants::ICON_QT_PROJECT)),
|
||||||
QLatin1String("pro"));
|
QLatin1String("pro"));
|
||||||
iconProvider->registerIconOverlayForSuffix(QIcon(":/qt4projectmanager/images/qt_project.png"),
|
iconProvider->registerIconOverlayForSuffix(QIcon(QLatin1String(Constants::ICON_QT_PROJECT)),
|
||||||
QLatin1String("pri"));
|
QLatin1String("pri"));
|
||||||
iconProvider->registerIconOverlayForSuffix(QIcon(":/qt4projectmanager/images/qt_project.png"),
|
iconProvider->registerIconOverlayForSuffix(QIcon(QLatin1String(Constants::ICON_QT_PROJECT)),
|
||||||
QLatin1String("prf"));
|
QLatin1String("prf"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,7 @@
|
|||||||
#include "maemorunconfiguration.h"
|
#include "maemorunconfiguration.h"
|
||||||
#include "maemosettingspage.h"
|
#include "maemosettingspage.h"
|
||||||
|
|
||||||
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <projectexplorer/environmenteditmodel.h>
|
#include <projectexplorer/environmenteditmodel.h>
|
||||||
#include <utils/detailswidget.h>
|
#include <utils/detailswidget.h>
|
||||||
@@ -201,12 +202,12 @@ void MaemoRunConfigurationWidget::addMountWidgets(QVBoxLayout *mainLayout)
|
|||||||
tableLayout->addLayout(mountViewButtonsLayout);
|
tableLayout->addLayout(mountViewButtonsLayout);
|
||||||
QToolButton *addMountButton = new QToolButton;
|
QToolButton *addMountButton = new QToolButton;
|
||||||
QIcon plusIcon;
|
QIcon plusIcon;
|
||||||
plusIcon.addFile(QLatin1String(":/core/images/plus.png"));
|
plusIcon.addFile(QLatin1String(Core::Constants::ICON_PLUS));
|
||||||
addMountButton->setIcon(plusIcon);
|
addMountButton->setIcon(plusIcon);
|
||||||
mountViewButtonsLayout->addWidget(addMountButton);
|
mountViewButtonsLayout->addWidget(addMountButton);
|
||||||
m_removeMountButton = new QToolButton;
|
m_removeMountButton = new QToolButton;
|
||||||
QIcon minusIcon;
|
QIcon minusIcon;
|
||||||
minusIcon.addFile(QLatin1String(":/core/images/minus.png"));
|
minusIcon.addFile(QLatin1String(Core::Constants::ICON_MINUS));
|
||||||
m_removeMountButton->setIcon(minusIcon);
|
m_removeMountButton->setIcon(minusIcon);
|
||||||
mountViewButtonsLayout->addWidget(m_removeMountButton);
|
mountViewButtonsLayout->addWidget(m_removeMountButton);
|
||||||
mountViewButtonsLayout->addStretch(1);
|
mountViewButtonsLayout->addStretch(1);
|
||||||
|
|||||||
@@ -102,6 +102,10 @@ const char * const S60_DEVICE_TARGET_ID("Qt4ProjectManager.Target.S60DeviceTarge
|
|||||||
const char * const MAEMO_DEVICE_TARGET_ID("Qt4ProjectManager.Target.MaemoDeviceTarget");
|
const char * const MAEMO_DEVICE_TARGET_ID("Qt4ProjectManager.Target.MaemoDeviceTarget");
|
||||||
const char * const QT_SIMULATOR_TARGET_ID("Qt4ProjectManager.Target.QtSimulatorTarget");
|
const char * const QT_SIMULATOR_TARGET_ID("Qt4ProjectManager.Target.QtSimulatorTarget");
|
||||||
|
|
||||||
|
// ICONS
|
||||||
|
const char * const ICON_QT_PROJECT = ":/qt4projectmanager/images/qt_project.png";
|
||||||
|
const char * const ICON_WINDOW = ":/qt4projectmanager/images/window.png";
|
||||||
|
|
||||||
} // namespace Constants
|
} // namespace Constants
|
||||||
} // namespace Qt4ProjectManager
|
} // namespace Qt4ProjectManager
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
#include "qt4projectmanagerconstants.h"
|
#include "qt4projectmanagerconstants.h"
|
||||||
#include "qtoutputformatter.h"
|
#include "qtoutputformatter.h"
|
||||||
|
|
||||||
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <coreplugin/messagemanager.h>
|
#include <coreplugin/messagemanager.h>
|
||||||
#include <coreplugin/variablemanager.h>
|
#include <coreplugin/variablemanager.h>
|
||||||
@@ -215,7 +216,7 @@ Qt4RunConfigurationWidget::Qt4RunConfigurationWidget(Qt4RunConfiguration *qt4Run
|
|||||||
|
|
||||||
QToolButton *resetButton = new QToolButton(this);
|
QToolButton *resetButton = new QToolButton(this);
|
||||||
resetButton->setToolTip(tr("Reset to default"));
|
resetButton->setToolTip(tr("Reset to default"));
|
||||||
resetButton->setIcon(QIcon(":/core/images/reset.png"));
|
resetButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_RESET)));
|
||||||
|
|
||||||
QHBoxLayout *boxlayout = new QHBoxLayout();
|
QHBoxLayout *boxlayout = new QHBoxLayout();
|
||||||
boxlayout->setMargin(0);
|
boxlayout->setMargin(0);
|
||||||
|
|||||||
@@ -76,13 +76,13 @@ QIcon iconForId(const QString &id) {
|
|||||||
if (id == QLatin1String(Constants::DESKTOP_TARGET_ID))
|
if (id == QLatin1String(Constants::DESKTOP_TARGET_ID))
|
||||||
return QIcon(qApp->style()->standardIcon(QStyle::SP_ComputerIcon));
|
return QIcon(qApp->style()->standardIcon(QStyle::SP_ComputerIcon));
|
||||||
if (id == QLatin1String(Constants::S60_EMULATOR_TARGET_ID))
|
if (id == QLatin1String(Constants::S60_EMULATOR_TARGET_ID))
|
||||||
return QIcon(":/projectexplorer/images/SymbianEmulator.png");
|
return QIcon(QLatin1String(":/projectexplorer/images/SymbianEmulator.png"));
|
||||||
if (id == QLatin1String(Constants::S60_DEVICE_TARGET_ID))
|
if (id == QLatin1String(Constants::S60_DEVICE_TARGET_ID))
|
||||||
return QIcon(":/projectexplorer/images/SymbianDevice.png");
|
return QIcon(QLatin1String(":/projectexplorer/images/SymbianDevice.png"));
|
||||||
if (id == QLatin1String(Constants::MAEMO_DEVICE_TARGET_ID))
|
if (id == QLatin1String(Constants::MAEMO_DEVICE_TARGET_ID))
|
||||||
return QIcon(":/projectexplorer/images/MaemoDevice.png");
|
return QIcon(QLatin1String(":/projectexplorer/images/MaemoDevice.png"));
|
||||||
if (id == QLatin1String(Constants::QT_SIMULATOR_TARGET_ID))
|
if (id == QLatin1String(Constants::QT_SIMULATOR_TARGET_ID))
|
||||||
return QIcon(":/projectexplorer/images/SymbianEmulator.png");
|
return QIcon(QLatin1String(":/projectexplorer/images/SymbianEmulator.png"));
|
||||||
return QIcon();
|
return QIcon();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ ResourceEditorFactory::ResourceEditorFactory(ResourceEditorPlugin *plugin) :
|
|||||||
m_plugin(plugin)
|
m_plugin(plugin)
|
||||||
{
|
{
|
||||||
Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance();
|
Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance();
|
||||||
iconProvider->registerIconOverlayForSuffix(QIcon(":/resourceeditor/images/qt_qrc.png"),
|
iconProvider->registerIconOverlayForSuffix(QIcon(QLatin1String(":/resourceeditor/images/qt_qrc.png")),
|
||||||
QLatin1String("qrc"));
|
QLatin1String("qrc"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "outlinefactory.h"
|
#include "outlinefactory.h"
|
||||||
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <coreplugin/editormanager/editormanager.h>
|
#include <coreplugin/editormanager/editormanager.h>
|
||||||
#include <coreplugin/editormanager/ieditor.h>
|
#include <coreplugin/editormanager/ieditor.h>
|
||||||
@@ -27,14 +28,14 @@ OutlineWidgetStack::OutlineWidgetStack(OutlineFactory *factory) :
|
|||||||
addWidget(label);
|
addWidget(label);
|
||||||
|
|
||||||
m_toggleSync = new QToolButton;
|
m_toggleSync = new QToolButton;
|
||||||
m_toggleSync->setIcon(QIcon(":/core/images/linkicon.png"));
|
m_toggleSync->setIcon(QIcon(QLatin1String(Core::Constants::ICON_LINK)));
|
||||||
m_toggleSync->setCheckable(true);
|
m_toggleSync->setCheckable(true);
|
||||||
m_toggleSync->setChecked(true);
|
m_toggleSync->setChecked(true);
|
||||||
m_toggleSync->setToolTip(tr("Synchronize with Editor"));
|
m_toggleSync->setToolTip(tr("Synchronize with Editor"));
|
||||||
connect(m_toggleSync, SIGNAL(clicked(bool)), this, SLOT(toggleCursorSynchronization()));
|
connect(m_toggleSync, SIGNAL(clicked(bool)), this, SLOT(toggleCursorSynchronization()));
|
||||||
|
|
||||||
m_filterButton = new QToolButton;
|
m_filterButton = new QToolButton;
|
||||||
m_filterButton->setIcon(QIcon(":/core/images/filtericon.png"));
|
m_filterButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_FILTER)));
|
||||||
m_filterButton->setToolTip(tr("Filter tree"));
|
m_filterButton->setToolTip(tr("Filter tree"));
|
||||||
m_filterButton->setPopupMode(QToolButton::InstantPopup);
|
m_filterButton->setPopupMode(QToolButton::InstantPopup);
|
||||||
m_filterMenu = new QMenu(m_filterButton);
|
m_filterMenu = new QMenu(m_filterButton);
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ QString WelcomeMode::displayName() const
|
|||||||
|
|
||||||
QIcon WelcomeMode::icon() const
|
QIcon WelcomeMode::icon() const
|
||||||
{
|
{
|
||||||
return QIcon(QLatin1String(":/core/images/qtcreator_logo_32.png"));
|
return QIcon(QLatin1String(Core::Constants::ICON_QTLOGO_32));
|
||||||
}
|
}
|
||||||
|
|
||||||
int WelcomeMode::priority() const
|
int WelcomeMode::priority() const
|
||||||
|
|||||||
Reference in New Issue
Block a user