From 0b84ddde6e9bf5be8d7bfe74e8dceb7ee18dfc38 Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Mon, 8 Aug 2022 10:07:38 +0200 Subject: [PATCH] 1.2.9 --- CHANGELOG.md | 10 ++++++++++ SandboxiePlus/SandMan/Models/SbieModel.cpp | 4 ++-- SandboxiePlus/SandMan/SandMan.h | 10 ++++++++++ SandboxiePlus/SandMan/Views/SbieView.cpp | 2 +- 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4831ab4f..b34efc84 100644 --- a/CHANGELOG.md +++ b/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 diff --git a/SandboxiePlus/SandMan/Models/SbieModel.cpp b/SandboxiePlus/SandMan/Models/SbieModel.cpp index a023b447..31eae146 100644 --- a/SandboxiePlus/SandMan/Models/SbieModel.cpp +++ b/SandboxiePlus/SandMan/Models/SbieModel.cpp @@ -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); } diff --git a/SandboxiePlus/SandMan/SandMan.h b/SandboxiePlus/SandMan/SandMan.h index 1a316926..16eccae8 100644 --- a/SandboxiePlus/SandMan/SandMan.h +++ b/SandboxiePlus/SandMan/SandMan.h @@ -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; diff --git a/SandboxiePlus/SandMan/Views/SbieView.cpp b/SandboxiePlus/SandMan/Views/SbieView.cpp index c9d70a6e..896e8848 100644 --- a/SandboxiePlus/SandMan/Views/SbieView.cpp +++ b/SandboxiePlus/SandMan/Views/SbieView.cpp @@ -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 &)));