diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-27 17:42:09 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-29 13:06:39 -0700 |
commit | 154792ffd1c217e5c1c9774b5593a753ae553601 (patch) | |
tree | c6f42f58831e77863530d0c97f1bef71aac384d1 /desktop-widgets/modeldelegates.cpp | |
parent | 7b83eeadfff33c709fc7c905b1b339524b5c810b (diff) | |
download | subsurface-154792ffd1c217e5c1c9774b5593a753ae553601.tar.gz |
Cleanup: make objects in desktop-widgets/modeldelegates.cpp
A number of objects in this file were global. Yet they weren't
used anywhere else. Don't export these symbols by making them of
static linkage.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/modeldelegates.cpp')
-rw-r--r-- | desktop-widgets/modeldelegates.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop-widgets/modeldelegates.cpp b/desktop-widgets/modeldelegates.cpp index 297a963a5..3e9fd513f 100644 --- a/desktop-widgets/modeldelegates.cpp +++ b/desktop-widgets/modeldelegates.cpp @@ -103,7 +103,7 @@ void ComboBoxDelegate::setEditorData(QWidget *editor, const QModelIndex &index) c->lineEdit()->setSelection(0, c->lineEdit()->text().length()); } -struct CurrSelected { +static struct CurrSelected { QComboBox *comboEditor; int currRow; QString activeText; @@ -233,7 +233,7 @@ void ComboBoxDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionV editor->setGeometry(defaultRect); } -struct RevertCylinderData { +static struct RevertCylinderData { QString type; int pressure; int size; @@ -326,7 +326,7 @@ void TankUseDelegate::setModelData(QWidget * editor, QAbstractItemModel * model, model->setData(index, comboBox->currentIndex()); } -struct RevertWeightData { +static struct RevertWeightData { QString type; int weight; } currWeight; |