forked from qt-creator/qt-creator
Changed coreplugin resource prefix to "/core"
It still read "/qworkbench", the research project name for Qt Creator. Reviewed-by: con
This commit is contained in:
@@ -46,7 +46,7 @@ FileWizardDialog::FileWizardDialog(QWidget *parent) :
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
setOption(QWizard::NoCancelButton, false);
|
||||
setOption(QWizard::NoDefaultButton, false);
|
||||
setPixmap(QWizard::WatermarkPixmap, QPixmap(QLatin1String(":/qworkbench/images/qtwatermark.png")));
|
||||
setPixmap(QWizard::WatermarkPixmap, QPixmap(QLatin1String(":/core/images/qtwatermark.png")));
|
||||
addPage(m_filePage);
|
||||
connect(m_filePage, SIGNAL(activated()), button(QWizard::FinishButton), SLOT(animateClick()));
|
||||
}
|
||||
|
||||
@@ -503,7 +503,7 @@ QStringList BaseFileWizard::runWizard(const QString &path, QWidget *parent)
|
||||
|
||||
QPixmap BaseFileWizard::watermark()
|
||||
{
|
||||
return QPixmap(QLatin1String(":/qworkbench/images/qtwatermark.png"));
|
||||
return QPixmap(QLatin1String(":/core/images/qtwatermark.png"));
|
||||
}
|
||||
|
||||
void BaseFileWizard::setupWizard(QWizard *w)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="/qworkbench" >
|
||||
<qresource prefix="/core" >
|
||||
<file>html/images/bg_site_header_dark_grey.png</file>
|
||||
<file>html/images/body_bg_circles_bottom_right.png</file>
|
||||
<file>html/images/body_bg_gradient.png</file>
|
||||
|
||||
@@ -194,27 +194,27 @@ const char * const G_WINDOW_LIST = "QtCreator.Group.Window.List";
|
||||
const char * const G_HELP_HELP = "QtCreator.Group.Help.Help";
|
||||
const char * const G_HELP_ABOUT = "QtCreator.Group.Help.About";
|
||||
|
||||
const char * const ICON_MINUS = ":/qworkbench/images/minus.png";
|
||||
const char * const ICON_PLUS = ":/qworkbench/images/plus.png";
|
||||
const char * const ICON_NEWFILE = ":/qworkbench/images/filenew.png";
|
||||
const char * const ICON_OPENFILE = ":/qworkbench/images/fileopen.png";
|
||||
const char * const ICON_SAVEFILE = ":/qworkbench/images/filesave.png";
|
||||
const char * const ICON_UNDO = ":/qworkbench/images/undo.png";
|
||||
const char * const ICON_REDO = ":/qworkbench/images/redo.png";
|
||||
const char * const ICON_COPY = ":/qworkbench/images/editcopy.png";
|
||||
const char * const ICON_PASTE = ":/qworkbench/images/editpaste.png";
|
||||
const char * const ICON_CUT = ":/qworkbench/images/editcut.png";
|
||||
const char * const ICON_NEXT = ":/qworkbench/images/next.png";
|
||||
const char * const ICON_PREV = ":/qworkbench/images/prev.png";
|
||||
const char * const ICON_DIR = ":/qworkbench/images/dir.png";
|
||||
const char * const ICON_CLEAN_PANE = ":/qworkbench/images/clean_pane_small.png";
|
||||
const char * const ICON_CLEAR = ":/qworkbench/images/clear.png";
|
||||
const char * const ICON_FIND = ":/qworkbench/images/find.png";
|
||||
const char * const ICON_FINDNEXT = ":/qworkbench/images/findnext.png";
|
||||
const char * const ICON_REPLACE = ":/qworkbench/images/replace.png";
|
||||
const char * const ICON_RESET = ":/qworkbench/images/reset.png";
|
||||
const char * const ICON_MAGNIFIER = ":/qworkbench/images/magnifier.png";
|
||||
const char * const ICON_TOGGLE_SIDEBAR = ":/qworkbench/images/sidebaricon.png";
|
||||
const char * const ICON_MINUS = ":/core/images/minus.png";
|
||||
const char * const ICON_PLUS = ":/core/images/plus.png";
|
||||
const char * const ICON_NEWFILE = ":/core/images/filenew.png";
|
||||
const char * const ICON_OPENFILE = ":/core/images/fileopen.png";
|
||||
const char * const ICON_SAVEFILE = ":/core/images/filesave.png";
|
||||
const char * const ICON_UNDO = ":/core/images/undo.png";
|
||||
const char * const ICON_REDO = ":/core/images/redo.png";
|
||||
const char * const ICON_COPY = ":/core/images/editcopy.png";
|
||||
const char * const ICON_PASTE = ":/core/images/editpaste.png";
|
||||
const char * const ICON_CUT = ":/core/images/editcut.png";
|
||||
const char * const ICON_NEXT = ":/core/images/next.png";
|
||||
const char * const ICON_PREV = ":/core/images/prev.png";
|
||||
const char * const ICON_DIR = ":/core/images/dir.png";
|
||||
const char * const ICON_CLEAN_PANE = ":/core/images/clean_pane_small.png";
|
||||
const char * const ICON_CLEAR = ":/core/images/clear.png";
|
||||
const char * const ICON_FIND = ":/core/images/find.png";
|
||||
const char * const ICON_FINDNEXT = ":/core/images/findnext.png";
|
||||
const char * const ICON_REPLACE = ":/core/images/replace.png";
|
||||
const char * const ICON_RESET = ":/core/images/reset.png";
|
||||
const char * const ICON_MAGNIFIER = ":/core/images/magnifier.png";
|
||||
const char * const ICON_TOGGLE_SIDEBAR = ":/core/images/sidebaricon.png";
|
||||
|
||||
// wizard kind
|
||||
const char * const WIZARD_TYPE_FILE = "QtCreator::WizardType::File";
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
**
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef QWORKBENCHPLUGIN_H
|
||||
#define QWORKBENCHPLUGIN_H
|
||||
#ifndef COREPLUGIN_H
|
||||
#define COREPLUGIN_H
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
@@ -68,4 +68,4 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace Core
|
||||
|
||||
#endif // QWORKBENCHPLUGIN_H
|
||||
#endif // COREPLUGIN_H
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../core.qrc">
|
||||
<normaloff>:/qworkbench/images/reset.png</normaloff>:/qworkbench/images/reset.png</iconset>
|
||||
<normaloff>:/core/images/reset.png</normaloff>:/core/images/reset.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -145,7 +145,7 @@
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../core.qrc">
|
||||
<normaloff>:/qworkbench/images/clear.png</normaloff>:/qworkbench/images/clear.png</iconset>
|
||||
<normaloff>:/core/images/clear.png</normaloff>:/core/images/clear.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -118,7 +118,7 @@ QVariant EditorModel::data(const QModelIndex &index, int role) const
|
||||
: editor->displayName();
|
||||
case Qt::DecorationRole:
|
||||
return editor->file()->isReadOnly()
|
||||
? QIcon(QLatin1String(":/qworkbench/images/locked.png"))
|
||||
? QIcon(QLatin1String(":/core/images/locked.png"))
|
||||
: QIcon();
|
||||
case Qt::ToolTipRole:
|
||||
return editor->file()->fileName().isEmpty()
|
||||
|
||||
@@ -172,8 +172,8 @@ void OpenEditorsWidget::updateCurrentItem(QTreeWidgetItem *currentItem)
|
||||
//todo: this is almost duplicated in openeditorswindow
|
||||
void OpenEditorsWidget::updateItem(QTreeWidgetItem *item, IEditor *editor)
|
||||
{
|
||||
static const QIcon lockedIcon(QLatin1String(":/qworkbench/images/locked.png"));
|
||||
static const QIcon emptyIcon(QLatin1String(":/qworkbench/images/empty14.png"));
|
||||
static const QIcon lockedIcon(QLatin1String(":/core/images/locked.png"));
|
||||
static const QIcon emptyIcon(QLatin1String(":/core/images/empty14.png"));
|
||||
QString title = editor->displayName();
|
||||
if (editor->file()->isModified())
|
||||
title += tr("*");
|
||||
|
||||
@@ -300,8 +300,8 @@ void OpenEditorsWindow::centerOnItem(int selectedIndex)
|
||||
|
||||
void OpenEditorsWindow::updateItem(QTreeWidgetItem *item, IEditor *editor)
|
||||
{
|
||||
static const QIcon lockedIcon(QLatin1String(":/qworkbench/images/locked.png"));
|
||||
static const QIcon emptyIcon(QLatin1String(":/qworkbench/images/empty14.png"));
|
||||
static const QIcon lockedIcon(QLatin1String(":/core/images/locked.png"));
|
||||
static const QIcon emptyIcon(QLatin1String(":/core/images/empty14.png"));
|
||||
|
||||
QString title = editor->displayName();
|
||||
if (editor->file()->isModified())
|
||||
|
||||
@@ -103,7 +103,7 @@ StackedEditorGroup::StackedEditorGroup(QWidget *parent) :
|
||||
m_lockButton->setProperty("type", QLatin1String("dockbutton"));
|
||||
|
||||
m_closeButton->setAutoRaise(true);
|
||||
m_closeButton->setIcon(QIcon(":/qworkbench/images/closebutton.png"));
|
||||
m_closeButton->setIcon(QIcon(":/core/images/closebutton.png"));
|
||||
m_closeButton->setProperty("type", QLatin1String("dockbutton"));
|
||||
|
||||
QToolBar *rightToolBar = new QToolBar;
|
||||
@@ -150,7 +150,7 @@ StackedEditorGroup::StackedEditorGroup(QWidget *parent) :
|
||||
|
||||
QToolButton *closeButton = new QToolButton;
|
||||
closeButton->setAutoRaise(true);
|
||||
closeButton->setIcon(QIcon(":/qworkbench/images/clear.png"));
|
||||
closeButton->setIcon(QIcon(":/core/images/clear.png"));
|
||||
closeButton->setToolTip(tr("Close"));
|
||||
connect(closeButton, SIGNAL(clicked()), m_infoWidget, SLOT(hide()));
|
||||
|
||||
@@ -303,8 +303,8 @@ void StackedEditorGroup::checkEditorStatus()
|
||||
|
||||
void StackedEditorGroup::updateEditorStatus(IEditor *editor)
|
||||
{
|
||||
static const QIcon lockedIcon(QLatin1String(":/qworkbench/images/locked.png"));
|
||||
static const QIcon unlockedIcon(QLatin1String(":/qworkbench/images/unlocked.png"));
|
||||
static const QIcon lockedIcon(QLatin1String(":/core/images/locked.png"));
|
||||
static const QIcon unlockedIcon(QLatin1String(":/core/images/unlocked.png"));
|
||||
|
||||
if (editor->file()->isReadOnly()) {
|
||||
m_lockButton->setIcon(lockedIcon);
|
||||
|
||||
@@ -48,7 +48,7 @@ using namespace Core;
|
||||
FileIconProvider *FileIconProvider::m_instance = 0;
|
||||
|
||||
FileIconProvider::FileIconProvider()
|
||||
: m_unknownFileIcon(QLatin1String(":/qworkbench/images/unknownfile.png"))
|
||||
: m_unknownFileIcon(QLatin1String(":/core/images/unknownfile.png"))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="core.qrc">
|
||||
<normaloff>:/qworkbench/images/reset.png</normaloff>:/qworkbench/images/reset.png</iconset>
|
||||
<normaloff>:/core/images/reset.png</normaloff>:/core/images/reset.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -118,7 +118,7 @@
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="core.qrc">
|
||||
<normaloff>:/qworkbench/images/reset.png</normaloff>:/qworkbench/images/reset.png</iconset>
|
||||
<normaloff>:/core/images/reset.png</normaloff>:/core/images/reset.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -149,7 +149,7 @@ MainWindow::MainWindow() :
|
||||
m_toggleSideBarButton(new QToolButton)
|
||||
{
|
||||
setWindowTitle(tr("Qt Creator"));
|
||||
qApp->setWindowIcon(QIcon(":/qworkbench/images/qtcreator_logo_128.png"));
|
||||
qApp->setWindowIcon(QIcon(":/core/images/qtcreator_logo_128.png"));
|
||||
setDockNestingEnabled(true);
|
||||
|
||||
setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea);
|
||||
|
||||
@@ -102,11 +102,11 @@ public:
|
||||
{
|
||||
style = QStyleFactory::create(baseStyleName);
|
||||
QTC_ASSERT(style, /**/);
|
||||
buttonImage_pressed = QImage(":/qworkbench/images/pushbutton_pressed.png");
|
||||
buttonImage = QImage(":/qworkbench/images/pushbutton.png");
|
||||
buttonImage_pressed = QImage(":/core/images/pushbutton_pressed.png");
|
||||
buttonImage = QImage(":/core/images/pushbutton.png");
|
||||
|
||||
lineeditImage = QImage(":/qworkbench/images/inputfield.png");
|
||||
lineeditImage_disabled = QImage(":/qworkbench/images/inputfield_disabled.png");
|
||||
lineeditImage = QImage(":/core/images/inputfield.png");
|
||||
lineeditImage_disabled = QImage(":/core/images/inputfield_disabled.png");
|
||||
}
|
||||
|
||||
~ManhattanStylePrivate()
|
||||
@@ -345,7 +345,7 @@ void ManhattanStyle::polish(QPalette &pal)
|
||||
QIcon ManhattanStyle::standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *option,
|
||||
const QWidget *widget) const
|
||||
{
|
||||
static const QIcon closeButton(":/qworkbench/images/closebutton.png");
|
||||
static const QIcon closeButton(":/core/images/closebutton.png");
|
||||
QIcon icon;
|
||||
switch (standardIcon) {
|
||||
case QStyle::SP_TitleBarCloseButton:
|
||||
@@ -360,7 +360,7 @@ QIcon ManhattanStyle::standardIconImplementation(StandardPixmap standardIcon, co
|
||||
QPixmap ManhattanStyle::standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt,
|
||||
const QWidget *widget) const
|
||||
{
|
||||
static const QPixmap closeButton(":/qworkbench/images/closebutton.png");
|
||||
static const QPixmap closeButton(":/core/images/closebutton.png");
|
||||
QPixmap pixmap;
|
||||
switch (standardPixmap) {
|
||||
case QStyle::SP_TitleBarCloseButton:
|
||||
|
||||
@@ -358,13 +358,13 @@ NavigationSubWidget::NavigationSubWidget(NavigationWidget *parentWidget)
|
||||
|
||||
QToolButton *split = new QToolButton;
|
||||
split->setProperty("type", QLatin1String("dockbutton"));
|
||||
split->setIcon(QIcon(":/qworkbench/images/splitbutton_horizontal.png"));
|
||||
split->setIcon(QIcon(":/core/images/splitbutton_horizontal.png"));
|
||||
split->setToolTip(tr("Split"));
|
||||
connect(split, SIGNAL(clicked(bool)), this, SIGNAL(split()));
|
||||
|
||||
QToolButton *close = new QToolButton;
|
||||
close->setProperty("type", QLatin1String("dockbutton"));
|
||||
close->setIcon(QIcon(":/qworkbench/images/closebutton.png"));
|
||||
close->setIcon(QIcon(":/core/images/closebutton.png"));
|
||||
close->setToolTip(tr("Close"));
|
||||
|
||||
connect(close, SIGNAL(clicked(bool)), this, SIGNAL(close()));
|
||||
|
||||
@@ -167,7 +167,7 @@ OutputPane::OutputPane(const QList<int> &context, QWidget *parent) :
|
||||
m_clearButton->setToolTip(tr("Clear"));
|
||||
connect(m_clearButton, SIGNAL(clicked()), this, SLOT(clearPage()));
|
||||
|
||||
m_closeButton->setIcon(QIcon(":/qworkbench/images/closebutton.png"));
|
||||
m_closeButton->setIcon(QIcon(":/core/images/closebutton.png"));
|
||||
m_closeButton->setProperty("type", QLatin1String("dockbutton"));
|
||||
connect(m_closeButton, SIGNAL(clicked()), this, SLOT(slotHide()));
|
||||
|
||||
@@ -488,13 +488,13 @@ OutputPaneToggleButton::OutputPaneToggleButton(int number, const QString &text,
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
setCheckable(true);
|
||||
setStyleSheet(
|
||||
"QPushButton { border-image: url(:/qworkbench/images/panel_button.png) 2 2 2 19;"
|
||||
"QPushButton { border-image: url(:/core/images/panel_button.png) 2 2 2 19;"
|
||||
" border-width: 2px 2px 2px 19px; padding-left: -17; padding-right: 4 } "
|
||||
"QPushButton:checked { border-image: url(:/qworkbench/images/panel_button_checked.png) 2 2 2 19 } "
|
||||
"QPushButton:checked { border-image: url(:/core/images/panel_button_checked.png) 2 2 2 19 } "
|
||||
#ifndef Q_WS_MAC // Mac UI's dont usually do hover
|
||||
"QPushButton:checked:hover { border-image: url(:/qworkbench/images/panel_button_checked_hover.png) 2 2 2 19 } "
|
||||
"QPushButton:pressed:hover { border-image: url(:/qworkbench/images/panel_button_pressed.png) 2 2 2 19 } "
|
||||
"QPushButton:hover { border-image: url(:/qworkbench/images/panel_button_hover.png) 2 2 2 19 } "
|
||||
"QPushButton:checked:hover { border-image: url(:/core/images/panel_button_checked_hover.png) 2 2 2 19 } "
|
||||
"QPushButton:pressed:hover { border-image: url(:/core/images/panel_button_pressed.png) 2 2 2 19 } "
|
||||
"QPushButton:hover { border-image: url(:/core/images/panel_button_hover.png) 2 2 2 19 } "
|
||||
#endif
|
||||
);
|
||||
}
|
||||
|
||||
@@ -231,13 +231,13 @@ SideBarWidget::SideBarWidget(SideBar *sideBar, const QString &title)
|
||||
|
||||
m_splitButton = new QToolButton;
|
||||
m_splitButton->setProperty("type", QLatin1String("dockbutton"));
|
||||
m_splitButton->setIcon(QIcon(":/qworkbench/images/splitbutton_horizontal.png"));
|
||||
m_splitButton->setIcon(QIcon(":/core/images/splitbutton_horizontal.png"));
|
||||
m_splitButton->setToolTip(tr("Split"));
|
||||
connect(m_splitButton, SIGNAL(clicked(bool)), this, SIGNAL(split()));
|
||||
|
||||
m_closeButton = new QToolButton;
|
||||
m_closeButton->setProperty("type", QLatin1String("dockbutton"));
|
||||
m_closeButton->setIcon(QIcon(":/qworkbench/images/closebutton.png"));
|
||||
m_closeButton->setIcon(QIcon(":/core/images/closebutton.png"));
|
||||
m_closeButton->setToolTip(tr("Close"));
|
||||
|
||||
connect(m_closeButton, SIGNAL(clicked(bool)), this, SIGNAL(close()));
|
||||
|
||||
@@ -56,7 +56,7 @@ VersionDialog::VersionDialog(QWidget *parent)
|
||||
{
|
||||
// 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)
|
||||
setWindowIcon(QIcon(":/qworkbench/images/qtcreator_logo_128.png"));
|
||||
setWindowIcon(QIcon(":/core/images/qtcreator_logo_128.png"));
|
||||
|
||||
setWindowTitle(tr("About Qt Creator"));
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
@@ -102,7 +102,7 @@ VersionDialog::VersionDialog(QWidget *parent)
|
||||
connect(buttonBox , SIGNAL(helpRequested()), this, SLOT(popupLicense()));
|
||||
|
||||
QLabel *logoLabel = new QLabel;
|
||||
logoLabel->setPixmap(QPixmap(QLatin1String(":/qworkbench/images/qtcreator_logo_128.png")));
|
||||
logoLabel->setPixmap(QPixmap(QLatin1String(":/core/images/qtcreator_logo_128.png")));
|
||||
layout->addWidget(logoLabel , 0, 0, 1, 1);
|
||||
layout->addWidget(copyRightLabel, 0, 1, 4, 4);
|
||||
layout->addWidget(buttonBox, 4, 0, 1, 5);
|
||||
|
||||
@@ -92,16 +92,16 @@ WelcomeModePrivate::WelcomeModePrivate() :
|
||||
#else
|
||||
m_label(new QLabel),
|
||||
#endif
|
||||
m_htmlTemplate(readFile(QLatin1String(":/qworkbench/html/welcome.html"))),
|
||||
m_sessionHtmlTemplate(readFile(QLatin1String(":/qworkbench/html/recent_sessions.html"))),
|
||||
m_projectHtmlTemplate(readFile(QLatin1String(":/qworkbench/html/recent_projects.html"))),
|
||||
m_baseUrl(QUrl(QLatin1String("qrc:/qworkbench/html/welcome.html")))
|
||||
m_htmlTemplate(readFile(QLatin1String(":/core/html/welcome.html"))),
|
||||
m_sessionHtmlTemplate(readFile(QLatin1String(":/core/html/recent_sessions.html"))),
|
||||
m_projectHtmlTemplate(readFile(QLatin1String(":/core/html/recent_projects.html"))),
|
||||
m_baseUrl(QUrl(QLatin1String("qrc:/core/html/welcome.html")))
|
||||
{
|
||||
}
|
||||
|
||||
#if defined(QT_NO_WEBKIT)
|
||||
|
||||
const char *LABEL = "<center><table><tr><td><img src=\":/qworkbench/html/images/product_logo.png\"/></td><td width=300>"
|
||||
const char *LABEL = "<center><table><tr><td><img src=\":/core/html/images/product_logo.png\"/></td><td width=300>"
|
||||
"<h2><br/><br/>Welcome</h2><p> Qt Creator is an intuitive, modern cross platform IDE that enables "
|
||||
"developers to create graphically appealing applications for desktop, "
|
||||
"embedded, and mobile devices. "
|
||||
@@ -172,7 +172,7 @@ QString WelcomeMode::name() const
|
||||
|
||||
QIcon WelcomeMode::icon() const
|
||||
{
|
||||
return QIcon(QLatin1String(":/qworkbench/images/qtcreator_logo_32.png"));
|
||||
return QIcon(QLatin1String(":/core/images/qtcreator_logo_32.png"));
|
||||
}
|
||||
|
||||
int WelcomeMode::priority() const
|
||||
|
||||
@@ -81,7 +81,7 @@ FindToolBar::FindToolBar(FindPlugin *plugin, CurrentDocumentFind *currentDocumen
|
||||
addWidget(spacerItem);
|
||||
QToolButton *close = new QToolButton;
|
||||
close->setProperty("type", QLatin1String("dockbutton"));
|
||||
close->setIcon(QIcon(":/qworkbench/images/closebutton.png"));
|
||||
close->setIcon(QIcon(":/core/images/closebutton.png"));
|
||||
connect(close, SIGNAL(clicked()), this, SLOT(hideAndResetFocus()));
|
||||
addWidget(close);
|
||||
|
||||
|
||||
@@ -355,7 +355,7 @@ void HelpPlugin::createRightPaneSideBar()
|
||||
|
||||
QToolButton *closeButton = new QToolButton();
|
||||
closeButton->setProperty("type", QLatin1String("dockbutton"));
|
||||
closeButton->setIcon(QIcon(":/qworkbench/images/closebutton.png"));
|
||||
closeButton->setIcon(QIcon(":/core/images/closebutton.png"));
|
||||
|
||||
// Dummy layout to align the close button to the right
|
||||
QHBoxLayout *hboxLayout = new QHBoxLayout();
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "buildstepspage.h"
|
||||
#include "project.h"
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
@@ -102,9 +103,9 @@ BuildSettingsWidget::BuildSettingsWidget(Project *project)
|
||||
m_ui.splitter->setStretchFactor(1,10);
|
||||
m_ui.buildSettingsList->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
|
||||
m_ui.addButton->setIcon(QIcon(":/qworkbench/images/plus.png"));
|
||||
m_ui.addButton->setIcon(QIcon(Core::Constants::ICON_PLUS));
|
||||
m_ui.addButton->setText("");
|
||||
m_ui.removeButton->setIcon(QIcon(":/qworkbench/images/minus.png"));
|
||||
m_ui.removeButton->setIcon(QIcon(Core::Constants::ICON_MINUS));
|
||||
m_ui.removeButton->setText("");
|
||||
|
||||
QMenu *addButtonMenu = new QMenu(this);
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "ui_buildstepspage.h"
|
||||
#include "project.h"
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
@@ -50,8 +51,8 @@ BuildStepsPage::BuildStepsPage(Project *project) :
|
||||
m_ui->setupUi(this);
|
||||
|
||||
m_ui->buildStepAddButton->setMenu(new QMenu(this));
|
||||
m_ui->buildStepAddButton->setIcon(QIcon(":/qworkbench/images/plus.png"));
|
||||
m_ui->buildStepRemoveToolButton->setIcon(QIcon(":/qworkbench/images/minus.png"));
|
||||
m_ui->buildStepAddButton->setIcon(QIcon(Core::Constants::ICON_PLUS));
|
||||
m_ui->buildStepRemoveToolButton->setIcon(QIcon(Core::Constants::ICON_MINUS));
|
||||
m_ui->buildStepUpToolButton->setArrowType(Qt::UpArrow);
|
||||
m_ui->buildStepDownToolButton->setArrowType(Qt::DownArrow);
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ Core::NavigationView FolderNavigationWidgetFactory::createWidget()
|
||||
n.widget = ptw;
|
||||
QToolButton *toggleSync = new QToolButton;
|
||||
toggleSync->setProperty("type", "dockbutton");
|
||||
toggleSync->setIcon(QIcon(":/qworkbench/images/linkicon.png"));
|
||||
toggleSync->setIcon(QIcon(":/core/images/linkicon.png"));
|
||||
toggleSync->setCheckable(true);
|
||||
toggleSync->setChecked(ptw->autoSynchronization());
|
||||
toggleSync->setToolTip(tr("Synchronize with Editor"));
|
||||
|
||||
@@ -159,7 +159,7 @@ ProjectTreeWidget::ProjectTreeWidget(Core::ICore *core, QWidget *parent)
|
||||
|
||||
m_toggleSync = new QToolButton;
|
||||
m_toggleSync->setProperty("type", "dockbutton");
|
||||
m_toggleSync->setIcon(QIcon(":/qworkbench/images/linkicon.png"));
|
||||
m_toggleSync->setIcon(QIcon(":/core/images/linkicon.png"));
|
||||
m_toggleSync->setCheckable(true);
|
||||
m_toggleSync->setChecked(autoSynchronization());
|
||||
m_toggleSync->setToolTip(tr("Synchronize with Editor"));
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
|
||||
#include "ui_runsettingspropertiespage.h"
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
@@ -180,9 +181,9 @@ RunSettingsWidget::RunSettingsWidget(Project *project)
|
||||
m_ui = new Ui::RunSettingsPropertiesPage;
|
||||
m_ui->setupUi(this);
|
||||
m_addMenu = new QMenu(m_ui->addToolButton);
|
||||
m_ui->addToolButton->setIcon(QIcon(":/qworkbench/images/plus.png"));
|
||||
m_ui->addToolButton->setIcon(QIcon(Core::Constants::ICON_PLUS));
|
||||
m_ui->addToolButton->setMenu(m_addMenu);
|
||||
m_ui->removeToolButton->setIcon(QIcon(":/qworkbench/images/minus.png"));
|
||||
m_ui->removeToolButton->setIcon(QIcon(Core::Constants::ICON_MINUS));
|
||||
m_ui->runConfigurationCombo->setModel(m_runConfigurationsModel);
|
||||
|
||||
connect(m_addMenu, SIGNAL(aboutToShow()),
|
||||
|
||||
Reference in New Issue
Block a user