Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-7072

setEnabled(bool) and setDisabled(bool) should have default parameter values for use with clicked() signals (and the likes)

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 4.6.0
    • None
    • All

    Description

      setEnabled(bool) and setDiabled(bool) do not have default arguments. It is, however, natural to consider that setEnabled() would enable the widget and setDisabled() would disable the widget.

      In addition, this prevents using these two slots with signals without arguments, such as "clicked()" and "triggered()".

      It is a small changed that has no backward compatibility issues.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            sirmont Jean-Olivier Racine
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes