mirror of
https://github.com/UltimMC/Launcher.git
synced 2026-01-03 22:22:11 +00:00
Make the MultiMC delegate fully usable. Dynamic row heights.
This commit is contained in:
@@ -91,9 +91,10 @@ private:
|
||||
QList<Category *> sortedCategories() const;
|
||||
|
||||
private:
|
||||
mutable QSize m_cachedItemSize;
|
||||
QSize itemSize(const QStyleOptionViewItem &option) const;
|
||||
QSize itemSize() const { return itemSize(viewOptions()); }
|
||||
mutable int m_cachedItemWidth;
|
||||
mutable QCache<QModelIndex, QSize> m_cachedItemSizes;
|
||||
int itemWidth() const;
|
||||
QSize itemSize(const QModelIndex &index) const;
|
||||
|
||||
/*QLineEdit *m_categoryEditor;
|
||||
Category *m_editedCategory;
|
||||
@@ -110,6 +111,8 @@ private:
|
||||
QItemSelectionModel::SelectionFlag m_ctrlDragSelectionFlag;
|
||||
QPoint m_lastDragPosition;
|
||||
|
||||
QPair<int, int> categoryInternalPosition(const QModelIndex &index) const;
|
||||
|
||||
QPixmap renderToPixmap(const QModelIndexList &indices, QRect *r) const;
|
||||
QList<QPair<QRect, QModelIndex> > draggablePaintPairs(const QModelIndexList &indices, QRect *r) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user