Create a simple implementation of GetBoundingRect.
This commit is contained in:
@@ -1152,12 +1152,19 @@ void wxTreeCtrl::SortChildren(const wxTreeItemId& item)
|
|||||||
|
|
||||||
bool wxTreeCtrl::GetBoundingRect(
|
bool wxTreeCtrl::GetBoundingRect(
|
||||||
const wxTreeItemId& item,
|
const wxTreeItemId& item,
|
||||||
wxRect& WXUNUSED(rect),
|
wxRect& rect,
|
||||||
bool WXUNUSED(textOnly)
|
bool WXUNUSED(textOnly)
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
wxCHECK_MSG(item.IsOk(), false, "invalid tree item");
|
wxCHECK_MSG(item.IsOk(), false, "invalid tree item");
|
||||||
return false;
|
|
||||||
|
const QTreeWidgetItem *qTreeItem = wxQtConvertTreeItem(item);
|
||||||
|
const QRect visualRect = m_qtTreeWidget->visualItemRect(qTreeItem);
|
||||||
|
if ( !visualRect.isValid() )
|
||||||
|
return false;
|
||||||
|
|
||||||
|
rect = wxQtConvertRect(visualRect);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxTreeCtrl::SetWindowStyleFlag(long styles)
|
void wxTreeCtrl::SetWindowStyleFlag(long styles)
|
||||||
|
Reference in New Issue
Block a user