diff options
author | Denis Mingulov <denis.mingulov@gmail.com> | 2010-07-16 11:18:30 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2010-07-16 11:24:02 +0200 |
commit | 5af6f15f7c6897b65e494838866e01f984093cb7 (patch) | |
tree | ebe94fee6c0126196b2021c89d0554a74b53a2cd /src/plugins/classview | |
parent | ae8192ad5a88384962f105bd5e18a50784d3edf0 (diff) | |
download | qt-creator-5af6f15f7c6897b65e494838866e01f984093cb7.tar.gz |
Utils::NavigationTreeView is created - as a base class for any Navigation Widget (Side Bar) tree view
Merge-request: 2167
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'src/plugins/classview')
-rw-r--r-- | src/plugins/classview/classviewnavigationwidget.cpp | 1 | ||||
-rw-r--r-- | src/plugins/classview/classviewnavigationwidget.ui | 18 |
2 files changed, 8 insertions, 11 deletions
diff --git a/src/plugins/classview/classviewnavigationwidget.cpp b/src/plugins/classview/classviewnavigationwidget.cpp index a90a58fa82..8420284d81 100644 --- a/src/plugins/classview/classviewnavigationwidget.cpp +++ b/src/plugins/classview/classviewnavigationwidget.cpp @@ -76,7 +76,6 @@ NavigationWidget::NavigationWidget(QWidget *parent) : { d_ptr->ui = new Ui::NavigationWidget; d_ptr->ui->setupUi(this); - d_ptr->ui->treeView->setIndentation(d_ptr->ui->treeView->indentation() * 9/10); // tree model d_ptr->treeModel = new TreeItemModel(this); diff --git a/src/plugins/classview/classviewnavigationwidget.ui b/src/plugins/classview/classviewnavigationwidget.ui index d9ba960515..0b0bf55a50 100644 --- a/src/plugins/classview/classviewnavigationwidget.ui +++ b/src/plugins/classview/classviewnavigationwidget.ui @@ -21,19 +21,10 @@ <number>0</number> </property> <item> - <widget class="QTreeView" name="treeView"> - <property name="frameShape"> - <enum>QFrame::NoFrame</enum> - </property> + <widget class="Utils::NavigationTreeView" name="treeView"> <property name="editTriggers"> <set>QAbstractItemView::NoEditTriggers</set> </property> - <property name="textElideMode"> - <enum>Qt::ElideNone</enum> - </property> - <property name="uniformRowHeights"> - <bool>true</bool> - </property> <property name="headerHidden"> <bool>true</bool> </property> @@ -41,6 +32,13 @@ </item> </layout> </widget> + <customwidgets> + <customwidget> + <class>Utils::NavigationTreeView</class> + <extends>QTreeView</extends> + <header>utils/navigationtreeview.h</header> + </customwidget> + </customwidgets> <resources/> <connections/> </ui> |