From 22c6a39d0f24eb37161dce2202b4b9060e8c4506 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 22 Mar 2021 18:01:25 +0200 Subject: [PATCH 17/17] Ruledit: Make unit tech req menu easier to use See osdn #41832 Signed-off-by: Marko Lindqvist --- tools/ruledit/edit_utype.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/ruledit/edit_utype.cpp b/tools/ruledit/edit_utype.cpp index 8cda094719..1215322480 100644 --- a/tools/ruledit/edit_utype.cpp +++ b/tools/ruledit/edit_utype.cpp @@ -51,6 +51,8 @@ edit_utype::edit_utype(ruledit_gui *ui_in, struct unit_type *utype_in) : QDialog req = new QMenu(); req_button = new QToolButton(); req_button->setParent(this); + req_button->setToolButtonStyle(Qt::ToolButtonTextOnly); + req_button->setPopupMode(QToolButton::MenuButtonPopup); req_button->setMenu(req); tab_tech::techs_to_menu(req); connect(req_button, SIGNAL(triggered(QAction *)), this, SLOT(req_menu(QAction *))); -- 2.30.2