mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Added setReadOnly() methods to the title block template editor classes.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1473 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -41,6 +41,9 @@ class TitleBlockDimensionWidget : public QDialog {
|
||||
QSpinBox *spinbox() const;
|
||||
TitleBlockDimension value() const;
|
||||
void setValue(const TitleBlockDimension &);
|
||||
bool isReadOnly() const;
|
||||
void setReadOnly(bool);
|
||||
|
||||
private:
|
||||
void initWidgets();
|
||||
void initLayouts();
|
||||
@@ -58,5 +61,6 @@ class TitleBlockDimensionWidget : public QDialog {
|
||||
QRadioButton *remaining_button_; ///< Radio button to indicate the length is relative to the remaining length
|
||||
QButtonGroup *dimension_type_; ///< QButtonGroup for the three radio buttons
|
||||
QDialogButtonBox *buttons_; ///< Buttons to validate the dialog
|
||||
bool read_only_; ///< Whether or not this widget allow edition of the displayed dimension
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user