Skip to content
Snippets Groups Projects
Commit 0625f85b authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Remove self-made styling of QTreeView on ParameterTuningWidget in the favor of system default

parent 3dd0baf9
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "ParameterTuningDelegate.h" #include "ParameterTuningDelegate.h"
#include "ParameterTuningModel.h" #include "ParameterTuningModel.h"
#include "SliderSettingsWidget.h" #include "SliderSettingsWidget.h"
#include "StyleUtils.h"
#include "WarningSign.h" #include "WarningSign.h"
#include <QTreeView> #include <QTreeView>
#include <QVBoxLayout> #include <QVBoxLayout>
...@@ -35,7 +34,6 @@ ParameterTuningWidget::ParameterTuningWidget(QWidget* parent) ...@@ -35,7 +34,6 @@ ParameterTuningWidget::ParameterTuningWidget(QWidget* parent)
{ {
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
m_treeView->setStyleSheet(StyleUtils::realtimeTreeStyle());
m_treeView->setItemDelegate(m_delegate); m_treeView->setItemDelegate(m_delegate);
m_treeView->setContextMenuPolicy(Qt::CustomContextMenu); m_treeView->setContextMenuPolicy(Qt::CustomContextMenu);
m_treeView->setDragDropMode(QAbstractItemView::NoDragDrop); m_treeView->setDragDropMode(QAbstractItemView::NoDragDrop);
......
...@@ -65,25 +65,6 @@ QString StyleUtils::propertyTreeStyle() ...@@ -65,25 +65,6 @@ QString StyleUtils::propertyTreeStyle()
return result; return result;
} }
QString StyleUtils::realtimeTreeStyle()
{
QString result =
"QTreeView::branch {background: "
"palette(base);}QTreeView::branch:has-siblings:!adjoins-item "
"{border-image: url(:/images/treeview-vline.png) 0;}QTreeView::branch:has-siblings:"
"adjoins-item {border-image: url(:/images/treeview-branch-more.png) 0;}QTreeView::branch:"
"!has-children:!has-siblings:adjoins-item {border-image: "
"url(:/images/treeview-branch-end.png) "
"0;}QTreeView::branch:has-children:!has-siblings:closed"
",QTreeView::branch:closed:has-children:has-siblings {border-image: none;image: "
"url(:/images/"
"treeview-branch-closed.png);}QTreeView::branch:open:has-children:!has-siblings,"
"QTreeView::branch:open:has-children:has-siblings {border-image: none;image: "
"url(:/images/treeview-branch-open.png);}";
return result;
}
QFont StyleUtils::sectionFont(bool bold) QFont StyleUtils::sectionFont(bool bold)
{ {
QFont result; QFont result;
......
...@@ -33,9 +33,6 @@ BA_CORE_API_ void setPropertyStyle(QTreeView* tree); ...@@ -33,9 +33,6 @@ BA_CORE_API_ void setPropertyStyle(QTreeView* tree);
//! Returns string representing the style of QTreeView intended for property editor. //! Returns string representing the style of QTreeView intended for property editor.
BA_CORE_API_ QString propertyTreeStyle(); BA_CORE_API_ QString propertyTreeStyle();
//! Returns string representing the style of QTreeView intended for real time view.
BA_CORE_API_ QString realtimeTreeStyle();
//! Returns font for sections. //! Returns font for sections.
BA_CORE_API_ QFont sectionFont(bool bold = false); BA_CORE_API_ QFont sectionFont(bool bold = false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment