From 154792ffd1c217e5c1c9774b5593a753ae553601 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 27 Apr 2019 17:42:09 +0200 Subject: 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 --- desktop-widgets/modeldelegates.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'desktop-widgets') 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; -- cgit v1.2.3-70-g09d2