-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
509 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include "lvmpage.h" | ||
#include "ui_lvmpage.h" | ||
|
||
#include <volumegroupmodel.h> | ||
|
||
struct LvmPagePrivate { | ||
VolumeGroupModel* vgModel; | ||
}; | ||
|
||
LvmPage::LvmPage(QWidget* parent) : | ||
QWidget(parent), | ||
ui(new Ui::LvmPage) { | ||
ui->setupUi(this); | ||
|
||
d = new LvmPagePrivate(); | ||
d->vgModel = new VolumeGroupModel(this); | ||
d->vgModel->setShowAddButton(true); | ||
ui->listView->setModel(d->vgModel); | ||
} | ||
|
||
LvmPage::~LvmPage() { | ||
delete ui; | ||
delete d; | ||
} | ||
|
||
void LvmPage::setTopPadding(int padding) { | ||
ui->vgsPage->layout()->setContentsMargins(0, padding, 0, 0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef LVMPAGE_H | ||
#define LVMPAGE_H | ||
|
||
#include <QWidget> | ||
|
||
namespace Ui { | ||
class LvmPage; | ||
} | ||
|
||
struct LvmPagePrivate; | ||
class LvmPage : public QWidget { | ||
Q_OBJECT | ||
|
||
public: | ||
explicit LvmPage(QWidget* parent = nullptr); | ||
~LvmPage(); | ||
|
||
void setTopPadding(int padding); | ||
|
||
private: | ||
Ui::LvmPage* ui; | ||
LvmPagePrivate* d; | ||
}; | ||
|
||
#endif // LVMPAGE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>LvmPage</class> | ||
<widget class="QWidget" name="LvmPage"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>705</width> | ||
<height>585</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Form</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<property name="spacing"> | ||
<number>0</number> | ||
</property> | ||
<property name="leftMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="topMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="rightMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="bottomMargin"> | ||
<number>0</number> | ||
</property> | ||
<item> | ||
<widget class="QStackedWidget" name="stackedWidget"> | ||
<widget class="QWidget" name="page"> | ||
<layout class="QVBoxLayout" name="verticalLayout_2"> | ||
<property name="spacing"> | ||
<number>0</number> | ||
</property> | ||
<property name="leftMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="topMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="rightMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="bottomMargin"> | ||
<number>0</number> | ||
</property> | ||
<item> | ||
<widget class="QStackedWidget" name="stackedWidget_2"> | ||
<widget class="QWidget" name="vgsPage"> | ||
<layout class="QVBoxLayout" name="verticalLayout_3"> | ||
<property name="spacing"> | ||
<number>0</number> | ||
</property> | ||
<property name="leftMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="topMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="rightMargin"> | ||
<number>0</number> | ||
</property> | ||
<property name="bottomMargin"> | ||
<number>0</number> | ||
</property> | ||
<item> | ||
<widget class="tTitleLabel" name="titleLabel"> | ||
<property name="text"> | ||
<string>Volume Groups</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QListView" name="listView"> | ||
<property name="frameShape"> | ||
<enum>QFrame::NoFrame</enum> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<widget class="QWidget" name="page_4"/> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<widget class="QWidget" name="page_2"/> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<customwidgets> | ||
<customwidget> | ||
<class>tTitleLabel</class> | ||
<extends>QLabel</extends> | ||
<header location="global">ttitlelabel.h</header> | ||
<slots> | ||
<signal>backButtonClicked()</signal> | ||
</slots> | ||
</customwidget> | ||
</customwidgets> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.