Qt: fix tool button handling on shader window

This commit is contained in:
Brad Parker 2018-08-20 12:57:05 -04:00
parent 3ad54bc9ca
commit 0ed43eb908

View File

@ -314,7 +314,7 @@ void ShaderParamsDialog::onScaleComboBoxIndexChanged(int)
void ShaderParamsDialog::onShaderPassMoveDownClicked()
{
QPushButton *button = qobject_cast<QPushButton*>(sender());
QToolButton *button = qobject_cast<QToolButton*>(sender());
QVariant passVariant;
struct video_shader *menu_shader = NULL;
struct video_shader *video_shader = NULL;
@ -360,7 +360,7 @@ void ShaderParamsDialog::onShaderPassMoveDownClicked()
void ShaderParamsDialog::onShaderPassMoveUpClicked()
{
QPushButton *button = qobject_cast<QPushButton*>(sender());
QToolButton *button = qobject_cast<QToolButton*>(sender());
QVariant passVariant;
struct video_shader *menu_shader = NULL;
struct video_shader *video_shader = NULL;