Project

General

Profile

Actions

Bug #7985

closed
RS RS

Overridden setHeaderData in QueryModel hides shorthand

Bug #7985: Overridden setHeaderData in QueryModel hides shorthand

Added by Roel Standaert over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
Start date:
01/19/2021
Due date:
% Done:

100%

Estimated time:

Description

WAbstractItemModel has two setHeaderData functions:

One that is virtual and takes 4 arguments (section, orientation, value, and role), and another that serves
as a shorthand and takes 2 arguments (section and value), that calls the 4 argument function with orientation
set to Orientation::Horizontal and role set to ItemDataRole::Edit.

QueryModel overrides the 4-argument version, which causes the 2-argument function to be hidden.
using WAbstractItemModel::setHeaderData; should be added to QueryModel so that the 2-argument version
is accessible.

RS Updated by Roel Standaert over 5 years ago Actions #1

  • Status changed from InProgress to Implemented @Emweb

RS Updated by Roel Standaert over 5 years ago Actions #2

  • Description updated (diff)

RS Updated by Roel Standaert over 5 years ago Actions #3

  • Description updated (diff)

RS Updated by Roel Standaert over 5 years ago Actions #4

  • Status changed from Implemented @Emweb to Resolved
  • Target version set to 4.5.1

RS Updated by Roel Standaert about 5 years ago Actions #5

  • % Done changed from 0 to 100

RS Updated by Roel Standaert almost 5 years ago Actions #6

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom