mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
Changed button code to be transparent when there's no text.
This commit is contained in:
parent
7555212d29
commit
f3c8bb9299
2 changed files with 7 additions and 1 deletions
|
@ -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 *
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue