Qt: Use regular size buttons on macOS

Use regular size buttons in dialogs on macOS.

Change-Id: Iad769190b7f62297343eea4299e3f03ea6be4b1e
Reviewed-on: https://code.wireshark.org/review/30099
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Stig Bjørlykke 2018-10-09 19:09:27 +02:00 committed by Anders Broman
parent 9c61757dc2
commit eade1c52cb
2 changed files with 4 additions and 1 deletions

View File

@ -138,7 +138,9 @@ void ColoringRulesDialog::showEvent(QShowEvent *)
{
ui->fGPushButton->setFixedHeight(ui->copyToolButton->geometry().height());
ui->bGPushButton->setFixedHeight(ui->copyToolButton->geometry().height());
#ifndef Q_OS_MAC
ui->displayFilterPushButton->setFixedHeight(ui->copyToolButton->geometry().height());
#endif
}
void ColoringRulesDialog::rowCountChanged()

View File

@ -46,7 +46,6 @@ UatFrame::UatFrame(QWidget *parent) :
ui->moveUpToolButton->setAttribute(Qt::WA_MacSmallSize, true);
ui->moveDownToolButton->setAttribute(Qt::WA_MacSmallSize, true);
ui->clearToolButton->setAttribute(Qt::WA_MacSmallSize, true);
ui->copyFromProfileButton->setAttribute(Qt::WA_MacSmallSize, true);
ui->pathLabel->setAttribute(Qt::WA_MacSmallSize, true);
#endif
@ -131,7 +130,9 @@ void UatFrame::copyFromProfile(QAction *action)
void UatFrame::showEvent(QShowEvent *)
{
#ifndef Q_OS_MAC
ui->copyFromProfileButton->setFixedHeight(ui->copyToolButton->geometry().height());
#endif
}
void UatFrame::applyChanges()