Changeset View
Changeset View
Standalone View
Standalone View
addons/project/kateprojectinfoviewindex.cpp
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 36 | { | |||
---|---|---|---|---|---|
60 | layout->addWidget(m_lineEdit); | 60 | layout->addWidget(m_lineEdit); | ||
61 | layout->addWidget(m_treeView); | 61 | layout->addWidget(m_treeView); | ||
62 | setLayout(layout); | 62 | setLayout(layout); | ||
63 | setFocusProxy(m_lineEdit); | 63 | setFocusProxy(m_lineEdit); | ||
64 | 64 | | |||
65 | /** | 65 | /** | ||
66 | * connect needed signals | 66 | * connect needed signals | ||
67 | */ | 67 | */ | ||
68 | connect(m_pluginView, SIGNAL(projectLookupWord(const QString &)), m_lineEdit, SLOT(setText(const QString &))); | 68 | connect(m_pluginView, &KateProjectPluginView::projectLookupWord, m_lineEdit, &QLineEdit::setText); | ||
69 | connect(m_lineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(slotTextChanged(const QString &))); | 69 | connect(m_lineEdit, &QLineEdit::textChanged, this, &KateProjectInfoViewIndex::slotTextChanged); | ||
70 | connect(m_treeView, SIGNAL(clicked(const QModelIndex &)), this, SLOT(slotClicked(const QModelIndex &))); | 70 | connect(m_treeView, &QTreeView::clicked, this, &KateProjectInfoViewIndex::slotClicked); | ||
71 | connect(m_project, SIGNAL(indexChanged()), this, SLOT(indexAvailable())); | 71 | connect(m_project, &KateProject::indexChanged, this, &KateProjectInfoViewIndex::indexAvailable); | ||
72 | 72 | | |||
73 | /** | 73 | /** | ||
74 | * trigger once search with nothing | 74 | * trigger once search with nothing | ||
75 | */ | 75 | */ | ||
76 | slotTextChanged(QString()); | 76 | slotTextChanged(QString()); | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | KateProjectInfoViewIndex::~KateProjectInfoViewIndex() | 79 | KateProjectInfoViewIndex::~KateProjectInfoViewIndex() | ||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |