#include <QLayout>
#include <QListView>
-#include <QToolButton>
+#include <QPushButton>
#include <QSignalMapper>
#include <QSortFilterProxyModel>
// 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;
+ myUp = new QPushButton( this );
myUp->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_UP_ICO" ) ) );
myUp->setIconSize( myTop->iconSize() );
- myDown = new QToolButton;
+ myDown = new QPushButton( this );
myDown->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_DOWN_ICO" ) ) );
myDown->setIconSize( myTop->iconSize() );
- myBottom = new QToolButton;
+ myBottom = new QPushButton( this );
myBottom->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_BOTTOM_ICO" ) ) );
myBottom->setIconSize( myTop->iconSize() );
#include <QWidget>
class QListView;
-class QToolButton;
+class QPushButton;
/**
* \class HYDROGUI_OrderedListWidget
private:
QListView* myList; ///< the list view
- QToolButton* myTop; ///< the move on top button
- QToolButton* myUp; ///< the move up button
- QToolButton* myDown; ///< the move down button
- QToolButton* myBottom; ///< the move on bottom button
+ QPushButton* myTop; ///< the move on top button
+ QPushButton* myUp; ///< the move up button
+ QPushButton* myDown; ///< the move down button
+ QPushButton* myBottom; ///< the move on bottom button
bool myIsHiddenObjectsShown; ///< defines whether to include hidden objects in the list
};