mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Allow setting a custom new root name in Labels view.
This commit is contained in:
parent
e277467ed4
commit
0c840abdc5
3 changed files with 19 additions and 6 deletions
|
@ -46,7 +46,7 @@ public:
|
|||
QRect visualRect( const QModelIndex& index ) const override;
|
||||
void scrollTo( const QModelIndex& index, ScrollHint hint = EnsureVisible ) override;
|
||||
|
||||
void setLabelsVisible( bool visible = true );
|
||||
void setCustomNewRootLabel( const QString& text );
|
||||
|
||||
protected:
|
||||
// QAbstractItemView API
|
||||
|
@ -67,6 +67,7 @@ private:
|
|||
void drawLabel( QPainter* painter, const QStringList& text, const QColor& color, const QPoint& pos );
|
||||
QModelIndexList getIndexesToDraw( const QModelIndex& parent ) const;
|
||||
QStringList buildTexts( const QModelIndex& index ) const;
|
||||
QString m_customNewRootLabel;
|
||||
};
|
||||
|
||||
#endif // PARTITIONLABELSVIEW_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue