Salome HOME
Adopt to PyEditor API changes.
[modules/yacs.git] / src / genericgui / CatalogWidget.cxx
index 6868b857c75cc1e58fc0c5d30238a50204badfe9..22b081f77072110ca8703ac0e2ad5ee98ac6d61e 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2006-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2016  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -59,6 +59,7 @@ CatalogWidget::CatalogWidget(QWidget *parent,
   _dragModifier=false;
 
   setColumnCount(1);
+  setHeaderHidden( true );
 
   addCatalog(_builtinCatalog, "Built In");
   addCatalog(_sessionCatalog, "Current Session");
@@ -240,7 +241,7 @@ void CatalogWidget::startDrag(Qt::DropActions supportedActions)
           drag = new QDrag(this);
           mime = new ItemMimeData;
           drag->setMimeData(mime);
-          mime->setData(mimeType, mimeInfo.toAscii());
+          mime->setData(mimeType, mimeInfo.toLatin1());
           drag->setPixmap(pixmap);
 
           theMimeInfo = mimeInfo;