Changed button code to be transparent when there's no text.

This commit is contained in:
João Netto 2019-06-03 21:45:17 -03:00 committed by Albert Astals Cid
parent 7555212d29
commit f3c8bb9299
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (C) 2018 by Intevation GmbH <intevation@intevation.de> *
* Copyright (C) 2019 by João Netto <joaonetto901@gmail.com> *
* *
* 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 *

View file

@ -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 );
}