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
8 changed files
with
193 additions
and
46 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,24 @@ | |||
#include "qgsattributerelationedit.h" | |||
#include "ui_qgsattributerelationedit.h" | |||
|
|||
QgsAttributeRelationEdit::QgsAttributeRelationEdit(QWidget *parent) : | |||
QWidget(parent), | |||
ui(new Ui::QgsAttributeRelationEdit) | |||
{ | |||
ui->setupUi(this); | |||
} | |||
|
|||
QgsAttributeRelationEdit::~QgsAttributeRelationEdit() | |||
{ | |||
delete ui; | |||
} | |||
|
|||
void QgsAttributeRelationEdit::setCardinality( const QString &cardinality ) | |||
{ | |||
leCardinality->setText( cardinality ); | |||
} | |||
|
|||
QString QgsAttributeRelationEdit::cardinality() | |||
{ | |||
return leCardinality->text(); | |||
} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,44 @@ | |||
#ifndef QGSATTRIBUTERELATIONEDIT_H | |||
#define QGSATTRIBUTERELATIONEDIT_H | |||
|
|||
#include "ui_qgsattributerelationedit.h" | |||
|
|||
#include "qgseditorconfigwidget.h" | |||
#include "qgsfeature.h" | |||
#include "qgsvectordataprovider.h" | |||
#include "qgshelp.h" | |||
#include "qgis_app.h" | |||
#include <QWidget> | |||
|
|||
/* | |||
namespace Ui { | |||
class QgsAttributeRelationEdit; | |||
} | |||
class QgsAttributeRelationEdit : public QWidget | |||
{ | |||
*/ | |||
|
|||
class APP_EXPORT QgsAttributeRelationEdit: public QWidget, private Ui::QgsAttributeRelationEdit | |||
{ | |||
Q_OBJECT | |||
|
|||
public: | |||
explicit QgsAttributeRelationEdit(QWidget *parent = 0); | |||
~QgsAttributeRelationEdit(); | |||
|
|||
/** | |||
* Setter for lable alias | |||
*/ | |||
void setCardinality( const QString &cardinality ); | |||
|
|||
/** | |||
* Getter for lable alias | |||
*/ | |||
QString cardinality(); | |||
|
|||
private: | |||
Ui::QgsAttributeRelationEdit *ui; | |||
}; | |||
|
|||
#endif // QGSATTRIBUTERELATIONEDIT_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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,40 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<ui version="4.0"> | |||
<class>QgsAttributeRelationEdit</class> | |||
<widget class="QWidget" name="QgsAttributeRelationEdit"> | |||
<property name="geometry"> | |||
<rect> | |||
<x>0</x> | |||
<y>0</y> | |||
<width>400</width> | |||
<height>300</height> | |||
</rect> | |||
</property> | |||
<property name="windowTitle"> | |||
<string>Form</string> | |||
</property> | |||
<layout class="QHBoxLayout" name="horizontalLayout"> | |||
<item> | |||
<widget class="QGroupBox" name="groupBox"> | |||
<property name="title"> | |||
<string>Relation</string> | |||
</property> | |||
<layout class="QGridLayout" name="gridLayout"> | |||
<item row="0" column="0"> | |||
<widget class="QLabel" name="label"> | |||
<property name="text"> | |||
<string>Cardinality</string> | |||
</property> | |||
</widget> | |||
</item> | |||
<item row="0" column="1"> | |||
<widget class="QLineEdit" name="leCardinality"/> | |||
</item> | |||
</layout> | |||
</widget> | |||
</item> | |||
</layout> | |||
</widget> | |||
<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
Oops, something went wrong.