VirtualBox

Changeset 101224 in vbox for trunk/src


Ignore:
Timestamp:
Sep 21, 2023 3:09:30 PM (15 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10513: Update UIEditor to handle QAbstractItemView description.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIEditor.cpp

    r101051 r101224  
    2828/* Qt includes: */
    2929#include <QAbstractButton>
     30#include <QAbstractItemModel>
     31#include <QAbstractItemView>
    3032#include <QLabel>
    3133#include <QRegularExpression>
     
    100102                result << pTabWidget->tabText(i).remove(re);
    101103
     104    /* Adding all the horizontal headers of abstract-item-view: */
     105    foreach (QAbstractItemView *pView, findChildren<QAbstractItemView*>())
     106        if (pView)
     107            if (QAbstractItemModel *pModel = pView->model())
     108                for (int i = 0; i < pModel->columnCount(); ++i)
     109                    result << pModel->headerData(i, Qt::Horizontal).toString().remove(re);
     110
    102111    return result;
    103112}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette