Index: kdevplatform/vcs/dvcs/ui/branchmanager.h
===================================================================
--- kdevplatform/vcs/dvcs/ui/branchmanager.h
+++ kdevplatform/vcs/dvcs/ui/branchmanager.h
@@ -27,6 +27,8 @@
namespace Ui { class BranchDialogBase; }
+class QSortFilterProxyModel;
+
namespace KDevelop
{
class BranchesListModel;
@@ -58,6 +60,7 @@
Ui::BranchDialogBase* m_ui;
KDevelop::BranchesListModel* m_model;
+ QSortFilterProxyModel* m_filterModel;
};
#endif
Index: kdevplatform/vcs/dvcs/ui/branchmanager.cpp
===================================================================
--- kdevplatform/vcs/dvcs/ui/branchmanager.cpp
+++ kdevplatform/vcs/dvcs/ui/branchmanager.cpp
@@ -70,7 +70,7 @@
// Filter Model
m_filterModel = new QSortFilterProxyModel();
m_filterModel->setSourceModel(m_model);
- m_filterModel->setFilterWildcard(QString::fromLatin1(""));
+ m_filterModel->setFilterWildcard(QString());
m_filterModel->sort(0, Qt::AscendingOrder);
//Changes in filter edit trigger filtering
@@ -105,7 +105,6 @@
delete m_ui;
}
-
void BranchManager::createBranch()
{
const QModelIndex currentBranchIdx = m_ui->branchView->currentIndex();
Index: kdevplatform/vcs/dvcs/ui/branchmanager.ui
===================================================================
--- kdevplatform/vcs/dvcs/ui/branchmanager.ui
+++ kdevplatform/vcs/dvcs/ui/branchmanager.ui
@@ -34,8 +34,7 @@
New
-
- ..
+
@@ -48,8 +47,7 @@
Delete
-
- ..
+
@@ -59,8 +57,7 @@
Rename
-
- ..
+
@@ -89,8 +86,7 @@
Compare to Branch
-
- ..
+
@@ -119,8 +115,7 @@
Checkout
-
- ..
+
@@ -130,8 +125,7 @@
Merge
-
- ..
+
@@ -153,15 +147,14 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ Search...
+
+
-