diff options
author | Eike Ziller <eike.ziller@qt.io> | 2022-09-07 12:48:57 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2022-09-08 07:28:57 +0000 |
commit | 98878872df734b3d22b9ccc28e5f106982ba87ec (patch) | |
tree | 6a57e3fa8cf7a4df8182fa023591ac277d125100 | |
parent | aac822de87787f1c670919af344613e78d001e72 (diff) | |
download | qt-creator-98878872df734b3d22b9ccc28e5f106982ba87ec.tar.gz |
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: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
-rw-r--r-- | src/plugins/android/androidbuildapkstep.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/android/androidbuildapkstep.cpp b/src/plugins/android/androidbuildapkstep.cpp index ea923ba1d0..4f632e44c5 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] { |