diff --git a/autotests/kjsfunctionstest.cpp b/autotests/kjsfunctionstest.cpp index 350cf27420092ed62ab3a41f43b4e20d87f0b39a..f0d24e2a0328c6bab7625c82380d20d7d0b75e58 100644 --- a/autotests/kjsfunctionstest.cpp +++ b/autotests/kjsfunctionstest.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2018 by Intevation GmbH * + * Copyright (C) 2019 by João Netto * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * diff --git a/ui/formwidgets.cpp b/ui/formwidgets.cpp index 087c8012ef635aa898129256c6f85f539f736443..4289d8bc3281a1596b4dbbdeb7df6ef92070334d 100644 --- a/ui/formwidgets.cpp +++ b/ui/formwidgets.cpp @@ -385,6 +385,12 @@ PushButtonEdit::PushButtonEdit( Okular::FormFieldButton * button, QWidget * pare : QPushButton( parent ), FormWidgetIface( this, button ) { setText( button->caption() ); + + if( button->caption().isEmpty() ) + { + setFlat( true ); + } + setVisible( button->isVisible() ); setCursor( Qt::ArrowCursor ); }