mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
Ref T472, fixed expandAll/fullResizeToContents heap issue
* after updating the container update "expandAll" was called * in onExpanded multiple "fullResizeToContents" occured, resulting in the healp issue below * as it was a good idea anyway to reduce the slow "fullResizeToContents" anyway, so we are using a CDigestSignal * this also solved the HEAP issue (for some reason I have NOT investigated) HEAP[swiftdata.exe]: HEAP: Free Heap block 000001AB439BFFF0 modified at 000001AB439C00BC after it was freed
This commit is contained in:
committed by
Mat Sutcliffe
parent
ac7958367b
commit
fe05c2287b
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackmisc/aviation/aircraftcategorylist.h"
|
||||
#include "blackmisc/digestsignal.h"
|
||||
|
||||
#include <QTreeView>
|
||||
#include <QObject>
|
||||
@@ -46,12 +47,12 @@ namespace BlackGui
|
||||
//! Clear
|
||||
void clear();
|
||||
|
||||
//! Set columns
|
||||
void setColumns(const Models::CColumns &columns);
|
||||
|
||||
//! Resize all columns
|
||||
void fullResizeToContents();
|
||||
|
||||
//! Set columns
|
||||
void setColumns(const Models::CColumns &columns);
|
||||
|
||||
//! Empty data
|
||||
bool isEmpty() const;
|
||||
|
||||
@@ -62,6 +63,9 @@ namespace BlackGui
|
||||
//! Used model
|
||||
BlackGui::Models::CAircraftCategoryTreeModel *categoryModel();
|
||||
|
||||
//! Resize all columns
|
||||
void fullResizeToContentsImpl();
|
||||
|
||||
//! The selected object
|
||||
BlackMisc::Aviation::CAircraftCategory selectedObject() const;
|
||||
|
||||
@@ -73,6 +77,8 @@ namespace BlackGui
|
||||
|
||||
//! Custom menu
|
||||
void customMenu(const QPoint &point);
|
||||
|
||||
BlackMisc::CDigestSignal m_dsFullResize { this, &CAircraftCategoryTreeView::fullResizeToContentsImpl, 1000, 25 };
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user