1.2.9
This commit is contained in:
parent
3ccb5dbf4b
commit
0b84ddde6e
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -4,6 +4,16 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.2.9 / 5.57.7] - 2022-08-08
|
||||
|
||||
### Fixed
|
||||
- fixed issue with context menu setup on windows 11
|
||||
- fixed column issue in vintage mode [#2103](https://github.com/sandboxie-plus/Sandboxie/issues/2103)
|
||||
|
||||
|
||||
|
||||
## [1.2.8 / 5.57.7] - 2022-08-05
|
||||
|
||||
### Fixed
|
||||
|
|
|
@ -518,8 +518,8 @@ QVariant CSbieModel::headerData(int section, Qt::Orientation orientation, int ro
|
|||
|
||||
QVariant CSbieModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
if(m_LargeIcons && role == Qt::SizeHintRole)
|
||||
return QSize(32,32);
|
||||
//if(m_LargeIcons && role == Qt::SizeHintRole)
|
||||
// return QSize(32,32);
|
||||
|
||||
return CTreeItemModel::data(index, role);
|
||||
}
|
||||
|
|
|
@ -395,4 +395,14 @@ class CTreeItemDelegate : public QStyledItemDelegate
|
|||
}
|
||||
};
|
||||
|
||||
class CTreeItemDelegate2 : public CTreeItemDelegate
|
||||
{
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||
{
|
||||
QSize size = QStyledItemDelegate::sizeHint(option, index);
|
||||
size.setHeight(32);
|
||||
return size;
|
||||
}
|
||||
};
|
||||
|
||||
extern CSandMan* theGUI;
|
||||
|
|
|
@ -64,7 +64,7 @@ CSbieView::CSbieView(QWidget* parent) : CPanelView(parent)
|
|||
|
||||
QStyle* pStyle = QStyleFactory::create("windows");
|
||||
m_pSbieTree->setStyle(pStyle);
|
||||
m_pSbieTree->setItemDelegate(new CTreeItemDelegate());
|
||||
m_pSbieTree->setItemDelegate(iLargeIcons ? new CTreeItemDelegate2() : new CTreeItemDelegate());
|
||||
|
||||
m_pSbieTree->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
connect(m_pSbieTree, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(OnMenu(const QPoint &)));
|
||||
|
|
Loading…
Reference in New Issue