From f78cc22f3e9e7c6457a2690be4f7d8dd80a91f6d Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 18 Mar 2008 14:46:50 +0000 Subject: [PATCH] Fix of IPAL19300(bad view of play and other animation buttons). --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 10 +++++----- src/VISUGUI/VisuGUI_TimeAnimation.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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; -- 2.39.2