From 98878872df734b3d22b9ccc28e5f106982ba87ec Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 7 Sep 2022 12:48:57 +0200 Subject: [PATCH] Android: Use QPushButton for Add/Remove buttons Make it consistent with the rest of the UI Task-number: QTCREATORBUG-27801 Change-Id: Ie2930047dde6b18bfd61cb01a17f14de2c6aa7d8 Reviewed-by: Reviewed-by: Alessandro Portale --- src/plugins/android/androidbuildapkstep.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/android/androidbuildapkstep.cpp b/src/plugins/android/androidbuildapkstep.cpp index ea923ba1d05..4f632e44c53 100644 --- a/src/plugins/android/androidbuildapkstep.cpp +++ b/src/plugins/android/androidbuildapkstep.cpp @@ -320,11 +320,10 @@ QWidget *AndroidBuildApkWidget::createAdditionalLibrariesGroup() libsView->setToolTip(tr("List of extra libraries to include in Android package and load on startup.")); libsView->setModel(libsModel); - auto addLibButton = new QToolButton; + auto addLibButton = new QPushButton; addLibButton->setText(tr("Add...")); addLibButton->setToolTip(tr("Select library to include in package.")); addLibButton->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); - addLibButton->setToolButtonStyle(Qt::ToolButtonTextOnly); connect(addLibButton, &QAbstractButton::clicked, this, [this, libsModel] { QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Select additional libraries"), @@ -334,7 +333,7 @@ QWidget *AndroidBuildApkWidget::createAdditionalLibrariesGroup() libsModel->addEntries(fileNames); }); - auto removeLibButton = new QToolButton; + auto removeLibButton = new QPushButton; removeLibButton->setText(tr("Remove")); removeLibButton->setToolTip(tr("Remove currently selected library from list.")); connect(removeLibButton, &QAbstractButton::clicked, this, [libsModel, libsView] {