From: akl Date: Tue, 18 Mar 2008 14:46:50 +0000 (+0000) Subject: Fix of IPAL19300(bad view of play and other animation buttons). X-Git-Tag: V5_0_0a1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f78cc22f3e9e7c6457a2690be4f7d8dd80a91f6d;p=modules%2Fvisu.git Fix of IPAL19300(bad view of play and other animation buttons). --- diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 215c6cca..b00fe019 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -1387,32 +1387,32 @@ VisuGUI_TimeAnimationDlg::VisuGUI_TimeAnimationDlg (VisuGUI* theModule, this, SLOT( onWindowChanged(int) ) ); TopLayout->addWidget(mySlider, 1, 0, 1, 3); - myPlayBtn = new QToolButton(myPlayFrame); + myPlayBtn = new QPushButton(myPlayFrame); myPlayBtn->setIcon(MYplayPixmap); myPlayBtn->setCheckable(true); connect( myPlayBtn, SIGNAL( clicked() ), this, SLOT( onPlayPressed() ) ); TopLayout->addWidget(myPlayBtn, 2, 0, 1, 2); - QToolButton* aBackBtn = new QToolButton(myPlayFrame); + QPushButton* aBackBtn = new QPushButton(myPlayFrame); aBackBtn->setIcon(QPixmap(leftIco)); connect( aBackBtn, SIGNAL( clicked() ), this, SLOT( onBackPressed() ) ); TopLayout->addWidget(aBackBtn, 3, 0); - QToolButton* aForvardBtn = new QToolButton(myPlayFrame); + QPushButton* aForvardBtn = new QPushButton(myPlayFrame); aForvardBtn->setIcon(QPixmap(rightIco)); connect( aForvardBtn, SIGNAL( clicked() ), this, SLOT( onForvardPressed() ) ); TopLayout->addWidget(aForvardBtn, 3, 1); - QToolButton* aFirstBtn = new QToolButton(myPlayFrame); + QPushButton* aFirstBtn = new QPushButton(myPlayFrame); aFirstBtn->setIcon(QPixmap(firstIco)); connect( aFirstBtn, SIGNAL( clicked() ), this, SLOT( onFirstPressed() ) ); TopLayout->addWidget(aFirstBtn, 4, 0); - QToolButton* aLastBtn = new QToolButton(myPlayFrame); + QPushButton* aLastBtn = new QPushButton(myPlayFrame); aLastBtn->setIcon(QPixmap(lastIco)); connect( aLastBtn, SIGNAL( clicked() ), this, SLOT( onLastPressed() ) ); diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.h b/src/VISUGUI/VisuGUI_TimeAnimation.h index 80aeaf53..d472288d 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.h +++ b/src/VISUGUI/VisuGUI_TimeAnimation.h @@ -228,7 +228,7 @@ class VisuGUI_TimeAnimationDlg: public QDialog QSlider* mySlider; QComboBox* myTypeCombo; QPushButton* myPropBtn; - QToolButton* myPlayBtn; + QPushButton* myPlayBtn; QLabel* myTimeLbl; QPushButton* mySetupBtn; QPushButton* myGenBtn;