forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.0'
Conflicts: src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp Change-Id: I6ae2d37290643d69390f679a54f7596782f3d97f
This commit is contained in:
@@ -24,6 +24,3 @@ SOURCES += \
|
||||
classviewsymbollocation.cpp \
|
||||
classviewtreeitemmodel.cpp \
|
||||
classviewutils.cpp
|
||||
|
||||
RESOURCES += \
|
||||
classview.qrc
|
||||
|
||||
@@ -13,7 +13,6 @@ QtcPlugin {
|
||||
Depends { name: "TextEditor" }
|
||||
|
||||
files: [
|
||||
"classview.qrc",
|
||||
"classviewconstants.h",
|
||||
"classviewmanager.cpp", "classviewmanager.h",
|
||||
"classviewnavigationwidget.cpp", "classviewnavigationwidget.h",
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/classview">
|
||||
<file>images/hierarchicalmode.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
@@ -31,6 +31,9 @@
|
||||
#include "classviewconstants.h"
|
||||
|
||||
#include <coreplugin/find/itemviewfind.h>
|
||||
|
||||
#include <cplusplus/Icons.h>
|
||||
|
||||
#include <utils/navigationtreeview.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
@@ -170,7 +173,7 @@ QList<QToolButton *> NavigationWidget::createToolButtons()
|
||||
// create a button
|
||||
fullProjectsModeButton = new QToolButton();
|
||||
fullProjectsModeButton->setIcon(
|
||||
QIcon(QLatin1String(":/classview/images/hierarchicalmode.png")));
|
||||
CPlusPlus::Icons::iconForType(CPlusPlus::Icons::ClassIconType));
|
||||
fullProjectsModeButton->setCheckable(true);
|
||||
fullProjectsModeButton->setToolTip(tr("Show Subprojects"));
|
||||
|
||||
|
||||
@@ -34,21 +34,6 @@
|
||||
namespace ClassView {
|
||||
namespace Internal {
|
||||
|
||||
///////////////////////////////// TreeItemModelPrivate //////////////////////////////////
|
||||
|
||||
/*!
|
||||
\class TreeItemModelPrivate
|
||||
\brief The TreeItemModelPrivate class contains private class data for
|
||||
the TreeItemModel class.
|
||||
\sa TreeItemModel
|
||||
*/
|
||||
class TreeItemModelPrivate
|
||||
{
|
||||
public:
|
||||
//! icon provider
|
||||
CPlusPlus::Icons icons;
|
||||
};
|
||||
|
||||
///////////////////////////////// TreeItemModel //////////////////////////////////
|
||||
|
||||
/*!
|
||||
@@ -57,14 +42,12 @@ public:
|
||||
*/
|
||||
|
||||
TreeItemModel::TreeItemModel(QObject *parent)
|
||||
: QStandardItemModel(parent),
|
||||
d(new TreeItemModelPrivate())
|
||||
: QStandardItemModel(parent)
|
||||
{
|
||||
}
|
||||
|
||||
TreeItemModel::~TreeItemModel()
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
|
||||
QVariant TreeItemModel::data(const QModelIndex &index, int role) const
|
||||
@@ -79,7 +62,7 @@ QVariant TreeItemModel::data(const QModelIndex &index, int role) const
|
||||
bool ok = false;
|
||||
int type = iconType.toInt(&ok);
|
||||
if (ok && type >= 0)
|
||||
return d->icons.iconForType(static_cast<CPlusPlus::Icons::IconType>(type));
|
||||
return CPlusPlus::Icons::iconForType(static_cast<CPlusPlus::Icons::IconType>(type));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 573 B |
Reference in New Issue
Block a user