mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
Use PropertiesEditorWidget instead of QWidget for some widget (widget used to edit propertie of element)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3932 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -28,10 +28,19 @@ PropertiesEditorWidget::PropertiesEditorWidget(QWidget *parent) :
|
||||
{}
|
||||
|
||||
/**
|
||||
* @brief PropertiesEditorWidget::assosiatedUndo
|
||||
* By default, return an empty undo command
|
||||
* @return an empty undo command
|
||||
* @brief PropertiesEditorWidget::associatedUndo
|
||||
* By default, return a nullptr
|
||||
* @return nullptr
|
||||
*/
|
||||
QUndoCommand *PropertiesEditorWidget::assosiatedUndo() {
|
||||
return new QUndoCommand();
|
||||
QUndoCommand *PropertiesEditorWidget::associatedUndo() const{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief PropertiesEditorWidget::title
|
||||
* @return the title of this editor
|
||||
*/
|
||||
QString PropertiesEditorWidget::title() const
|
||||
{
|
||||
return QString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user