Improved Subscribe Button look and feel

* Improved Subscribe Button look and feel with stylsheet
* Removed icons from Subscribe button
* Subcribe button hided on posted too when subscribed
This commit is contained in:
defnax 2019-01-12 22:20:00 +01:00
parent 6750e6140f
commit 6c0c42c8ad
5 changed files with 61 additions and 27 deletions

View file

@ -64,7 +64,7 @@ void SubscribeToolButton::updateUi()
#else
setPopupMode(QToolButton::InstantPopup);
#endif
setIcon(QIcon(":/images/accepted16.png"));
//setIcon(QIcon(":/images/accepted16.png"));
setText(tr("Subscribed"));
if(mMenu != NULL) // that's because setMenu does not give away memory ownership
@ -86,7 +86,7 @@ void SubscribeToolButton::updateUi()
} else {
setPopupMode(QToolButton::DelayedPopup);
setMenu(NULL);
setIcon(QIcon(":/images/RSS_004_32.png"));
//setIcon(QIcon(":/images/RSS_004_32.png"));
setText(tr("Subscribe"));
#ifndef USE_MENUBUTTONPOPUP