Improve Osprober logic to immediately check if entries are resizable.

This commit is contained in:
Teo Mrnjavac 2014-09-23 17:42:11 +02:00
parent 9ebc881223
commit e7995ad540
7 changed files with 180 additions and 140 deletions

View file

@ -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;
};