QElectroTech
0.70
sources
PropertiesEditor
propertieseditorwidget.cpp
Go to the documentation of this file.
1
/*
2
Copyright 2006-2019 The QElectroTech Team
3
This file is part of QElectroTech.
4
5
QElectroTech is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 2 of the License, or
8
(at your option) any later version.
9
10
QElectroTech is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
#include "
propertieseditorwidget.h
"
19
#include <QUndoCommand>
20
26
PropertiesEditorWidget::PropertiesEditorWidget
(QWidget *parent) :
27
QWidget(parent),
28
m_live_edit(false)
29
{}
30
36
QUndoCommand *
PropertiesEditorWidget::associatedUndo
()
const
{
37
return
nullptr
;
38
}
39
44
QString
PropertiesEditorWidget::title
()
const
{
45
return
QString();
46
}
47
58
bool
PropertiesEditorWidget::setLiveEdit
(
bool
live_edit) {
59
Q_UNUSED(live_edit);
60
return
false
;
61
}
62
68
bool
PropertiesEditorWidget::isLiveEdit
()
const
{
69
return
m_live_edit
;
70
}
PropertiesEditorWidget::title
virtual QString title() const
PropertiesEditorWidget::title.
Definition:
propertieseditorwidget.cpp:44
PropertiesEditorWidget::PropertiesEditorWidget
PropertiesEditorWidget(QWidget *parent=nullptr)
PropertiesEditorWidget::PropertiesEditorWidget Constructor.
Definition:
propertieseditorwidget.cpp:26
PropertiesEditorWidget::isLiveEdit
bool isLiveEdit() const
PropertiesEditorWidget::isLiveEdit.
Definition:
propertieseditorwidget.cpp:68
propertieseditorwidget.h
PropertiesEditorWidget::setLiveEdit
virtual bool setLiveEdit(bool live_edit)
PropertiesEditorWidget::setLiveEdit Set the editor in live edit mode. When an editor is in live edit ...
Definition:
propertieseditorwidget.cpp:58
PropertiesEditorWidget::associatedUndo
virtual QUndoCommand * associatedUndo() const
PropertiesEditorWidget::associatedUndo By default, return a nullptr.
Definition:
propertieseditorwidget.cpp:36
PropertiesEditorWidget::m_live_edit
bool m_live_edit
Definition:
propertieseditorwidget.h:50
Generated by
1.8.15