Project

General

Profile

Actions

Bug #1604

open

Qt client help -> units should show >1 tech requirement

Added by Dean Brown over 1 year ago. Updated 22 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Qt-client
Target version:
-
Start date:
07/14/2025
Due date:
% Done:

0%

Estimated time:

Description

New in 3.2, units now have general requirement vectors and a unit can require >1 techs. Clients should show that info.


Files

1604_qt.patch (3.46 KB) 1604_qt.patch Dean Brown, 11/09/2026 03:28 AM
Actions #1

Updated by Dean Brown over 1 year ago

  • File 1604_gtk4.patch added
  • File 1604_gtk322.patch added
  • File 1604_qt.patch added

The comment for utype_primary_tech_req() says "Avoid using this, and support full list of requirements instead.", so glad to eliminate some calls to it.

Actions #2

Updated by Dean Brown over 1 year ago

  • File 1604_gtk5.patch added
Actions #3

Updated by Marko Lindqvist over 1 year ago

If you're going to provide separate patches for each client, open also separate tickets for each, so that (for a given branch) there would be one patch per ticket.

Actions #4

Updated by Dean Brown over 1 year ago

  • Subject changed from help -> units should show >1 tech requirement to Qt client help -> units should show >1 tech requirement
  • Category changed from client-common to Qt-client

OK, renamed this one to Qt client

Actions #5

Updated by Dean Brown over 1 year ago

  • File deleted (1604_gtk4.patch)
Actions #6

Updated by Dean Brown over 1 year ago

  • File deleted (1604_gtk322.patch)
Actions #7

Updated by Dean Brown over 1 year ago

  • File deleted (1604_gtk5.patch)
Actions #8

Updated by Dean Brown over 1 year ago

  • File deleted (1604_qt.patch)
Actions #9

Updated by Dean Brown over 1 year ago

  • File 1604_qt.patch added

Better fix - put only max of 3 reqs on one line, add more lines as needed. Prevents the dlog getting too wide, better to expand vertically.

Actions #10

Updated by Dean Brown 29 days ago

  • File deleted (1604_qt.patch)
Actions #11

Updated by Dean Brown 29 days ago

  • File 1604_qt.patch added

New patch with better formatted commit msg.

Actions #12

Updated by Marko Lindqvist 23 days ago

    if (utype->build_reqs.size == 0) {
      add_info_label(_("No technology required."));
    } else {
      // there is >= 1 req

What if there's other requirements (utype->build_reqs.size > 0), but zero tech requirements?
Actions #13

Updated by Dean Brown 22 days ago

  • File deleted (1604_qt.patch)
Actions #14

Updated by Dean Brown 22 days ago

Good catch.

Actions

Also available in: Atom PDF