mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-01 19:35:36 -04:00
Improve Osprober logic to immediately check if entries are resizable.
This commit is contained in:
parent
9ebc881223
commit
e7995ad540
7 changed files with 180 additions and 140 deletions
|
@ -21,6 +21,8 @@
|
|||
|
||||
#include <QWidget>
|
||||
|
||||
#include "OsproberEntry.h"
|
||||
|
||||
class QBoxLayout;
|
||||
class QLabel;
|
||||
|
||||
|
@ -41,7 +43,7 @@ public:
|
|||
explicit ChoicePage( QWidget* parent = nullptr );
|
||||
virtual ~ChoicePage();
|
||||
|
||||
void init( PartitionCoreModule* core, const QStringList& osproberLines );
|
||||
void init( PartitionCoreModule* core, const OsproberEntryList& osproberEntries );
|
||||
|
||||
bool isNextEnabled();
|
||||
|
||||
|
@ -53,14 +55,11 @@ signals:
|
|||
private:
|
||||
void setNextEnabled( bool enabled );
|
||||
|
||||
bool canBeResized( const QStringList& osproberLine );
|
||||
|
||||
bool m_nextEnabled;
|
||||
PartitionCoreModule* m_core;
|
||||
QBoxLayout* m_itemsLayout;
|
||||
QLabel* m_messageLabel;
|
||||
|
||||
QStringList m_osproberLines;
|
||||
Choice m_choice;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue