fixed toolbutton noText property for comments, and let Qt decide on the size of icons

This commit is contained in:
csoler 2020-09-30 21:42:47 +02:00
parent 5c240c6abb
commit 0078f02d39
2 changed files with 6 additions and 6 deletions

View File

@ -191,11 +191,11 @@ void BoardPostDisplayWidgetBase::setup()
readButton()->setChecked(false);
voteUpButton()->setIconSize(QSize(S*1.5,S*1.5));
voteDownButton()->setIconSize(QSize(S*1.5,S*1.5));
commentButton()->setIconSize(QSize(S*1.5,S*1.5));
readButton()->setIconSize(QSize(S*1.5,S*1.5));
shareButton()->setIconSize(QSize(S*1.5,S*1.5));
// voteUpButton()->setIconSize(QSize(S*1.5,S*1.5));
// voteDownButton()->setIconSize(QSize(S*1.5,S*1.5));
// commentButton()->setIconSize(QSize(S*1.5,S*1.5));
// readButton()->setIconSize(QSize(S*1.5,S*1.5));
// shareButton()->setIconSize(QSize(S*1.5,S*1.5));
QMenu *menu = new QMenu();
menu->addAction(CopyLinkAction);

View File

@ -324,7 +324,7 @@
<bool>true</bool>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum>
<enum>Qt::ToolButtonIconOnly</enum>
</property>
<property name="autoRaise">
<bool>true</bool>