kdevplatform/project
dependencieswidget.cpp
Go to the documentation of this file.
30 static KDevelop::ProjectBaseItem* itemForPath(const QStringList& path, KDevelop::ProjectModel* model)
47 connect( m_ui->moveDepDown, &QPushButton::clicked, this, &DependenciesWidget::moveDependencyDown );
49 connect( m_ui->dependencies->selectionModel(), &QItemSelectionModel::selectionChanged, this, &DependenciesWidget::checkActions );
50 connect( m_ui->targetDependency, &ProjectItemLineEdit::textChanged, this, &DependenciesWidget::depEdited);
51 connect( m_ui->browseProject, &QPushButton::clicked, this, &DependenciesWidget::selectItemDialog);
73 void DependenciesWidget::checkActions( const QItemSelection& selected, const QItemSelection& unselected )
101 m_ui->dependencies->selectionModel()->select( m_ui->dependencies->model()->index( row+1, 0, QModelIndex() ), QItemSelectionModel::ClearAndSelect | QItemSelectionModel::SelectCurrent );
116 m_ui->dependencies->selectionModel()->select( m_ui->dependencies->model()->index( row-1, 0, QModelIndex() ), QItemSelectionModel::ClearAndSelect | QItemSelectionModel::SelectCurrent );
133 // dependencies->selectionModel()->select( dependencies->model()->index( dependencies->model()->rowCount() - 1, 0, QModelIndex() ), QItemSelectionModel::ClearAndSelect | QItemSelectionModel::SelectCurrent );
152 m_ui->dependencies->selectionModel()->select( m_ui->dependencies->model()->index( row - 1, 0, QModelIndex() ), QItemSelectionModel::ClearAndSelect | QItemSelectionModel::SelectCurrent );
166 auto* item = new QListWidgetItem(icon, KDevelop::joinWithEscaping(deplist, QLatin1Char('/'), QLatin1Char('\\')), m_ui->dependencies);
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
QVariantList dependencies() const
Definition: dependencieswidget.cpp:171
static KDevelop::ProjectBaseItem * itemForPath(const QStringList &path, KDevelop::ProjectModel *model)
Definition: dependencieswidget.cpp:30
QPoint pos() const
void setDependencies(const QVariantList &deps)
Definition: dependencieswidget.cpp:156
Interface that allows a developer to implement the three basic types of items you would see in a mult...
Definition: projectmodel.h:101
int count(const T &value) const
void clicked(bool checked)
QIcon fromTheme(const QString &name, const QIcon &fallback)
Class providing some convenience methods for accessing the project model.
Definition: projectmodel.h:420
ProjectBaseItem * itemFromIndex(const QModelIndex &) const
Definition: projectmodel.cpp:971
Definition: projectmodel.h:31
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QModelIndexList indexes() const
virtual void setData(int role, const QVariant &value)
Definition: dependencieswidget.h:28
const QPixmap * icon() const
void textChanged(const QString &text)
bool isEmpty() const
const T & at(int i) const
bool isEmpty() const
DependenciesWidget(QWidget *parent)
Definition: dependencieswidget.cpp:35
void changed()
~DependenciesWidget() override
Definition: dependencieswidget.cpp:54
Definition: abstractfilemanagerplugin.h:33
void setSuggestion(KDevelop::IProject *project)
Definition: dependencieswidget.cpp:59
QModelIndex pathToIndex(const QStringList &tofetch) const
Definition: projectmodel.cpp:889
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 23:35:31 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 23:35:31 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.