Salome HOME
refs #441: crash in digue construction
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_OrderedListWidget.cxx
index 671102d0d141b165bb680101bf3192a1b8aa2d19..1308378ffa1ccc2285c6abcf5ec53dfc4105d663 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <QLayout>
 #include <QListView>
-#include <QToolButton>
+#include <QPushButton>
 #include <QSignalMapper>
 #include <QSortFilterProxyModel>
 
@@ -66,18 +66,22 @@ HYDROGUI_OrderedListWidget::HYDROGUI_OrderedListWidget( QWidget* theParent )
 
   // Buttons top, up, down, bottom
   SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
-  myTop = new QToolButton;
+  myTop = new QPushButton( this );
   myTop->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_TOP_ICO" ) ) );
   myTop->setIconSize( QSize( 32, 32 ) );
-  myUp = new QToolButton;
+  myTop->setToolTip( tr( "TOP_TLT" ) );
+  myUp = new QPushButton( this );
   myUp->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_UP_ICO" ) ) );
   myUp->setIconSize( myTop->iconSize() );
-  myDown = new QToolButton;
+  myUp->setToolTip( tr( "UP_TLT" ) );
+  myDown = new QPushButton( this );
   myDown->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_DOWN_ICO" ) ) );
   myDown->setIconSize( myTop->iconSize() );
-  myBottom = new QToolButton;
+  myDown->setToolTip( tr( "DOWN_TLT" ) );
+  myBottom = new QPushButton( this );
   myBottom->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_BOTTOM_ICO" ) ) );
   myBottom->setIconSize( myTop->iconSize() );
+  myBottom->setToolTip( tr( "BOTTOM_TLT" ) );
 
   // Layout
   // buttons