-#if (!defined HAVE_SALOME) && (defined WIN32)
-void XGUI_DataTree::drawRow(QPainter* thePainter,
- const QStyleOptionViewItem& theOptions,
- const QModelIndex& theIndex) const
-{
- QStyleOptionViewItemV4 aOptions = theOptions;
- myStyle->setIndex(theIndex);
- QTreeView::drawRow(thePainter, aOptions, theIndex);
-}
-
-//********************************************************************
-//********************************************************************
-//********************************************************************
-void XGUI_TreeViewStyle::drawPrimitive(PrimitiveElement theElement,
- const QStyleOption* theOption,
- QPainter* thePainter, const QWidget* theWidget) const
-{
- if ((theElement == QStyle::PE_PanelItemViewRow) || (theElement == QStyle::PE_PanelItemViewItem)) {
- const QStyleOptionViewItemV4* aOptions =
- qstyleoption_cast<const QStyleOptionViewItemV4 *>(theOption);
- if (myIndex.isValid() && ((myIndex.flags() & Qt::ItemIsSelectable) == 0)) {
- QStyle::State aState = aOptions->state;
- if ((aState & QStyle::State_MouseOver) != 0)
- aState &= ~QStyle::State_MouseOver;
- QStyleOptionViewItemV4* aOpt = (QStyleOptionViewItemV4*) aOptions;
- aOpt->state = aState;
- QCommonStyle/*QWindowsVistaStyle*/::drawPrimitive(theElement, aOpt, thePainter, theWidget);
- }
- }
- QCommonStyle/*QWindowsVistaStyle*/::drawPrimitive(theElement, theOption, thePainter, theWidget);
-}
-#endif
+//#if (!defined HAVE_SALOME) && (defined WIN32)
+//void XGUI_DataTree::drawRow(QPainter* thePainter,
+// const QStyleOptionViewItem& theOptions,
+// const QModelIndex& theIndex) const
+//{
+// QStyleOptionViewItemV4 aOptions = theOptions;
+// myStyle->setIndex(theIndex);
+// QTreeView::drawRow(thePainter, aOptions, theIndex);
+//}
+//
+////********************************************************************
+////********************************************************************
+////********************************************************************
+//void XGUI_TreeViewStyle::drawPrimitive(PrimitiveElement theElement,
+// const QStyleOption* theOption,
+// QPainter* thePainter, const QWidget* theWidget) const
+//{
+// if ((theElement == QStyle::PE_PanelItemViewRow) || (theElement == QStyle::PE_PanelItemViewItem)) {
+// const QStyleOptionViewItemV4* aOptions =
+// qstyleoption_cast<const QStyleOptionViewItemV4 *>(theOption);
+// if (myIndex.isValid() && ((myIndex.flags() & Qt::ItemIsSelectable) == 0)) {
+// QStyle::State aState = aOptions->state;
+// if ((aState & QStyle::State_MouseOver) != 0)
+// aState &= ~QStyle::State_MouseOver;
+// QStyleOptionViewItemV4* aOpt = (QStyleOptionViewItemV4*) aOptions;
+// aOpt->state = aState;
+// QCommonStyle::drawPrimitive(theElement, aOpt, thePainter, theWidget);
+// }
+// }
+// QCommonStyle::drawPrimitive(theElement, theOption, thePainter, theWidget);
+//}
+//#endif