Don't update column name automatically
ClosedPublic

Authored by Murmele on Jun 30 2019, 5:27 PM.

Details

Reviewers
asemke
Summary

Don't update the column automatically to an unique name when changing the column name. Now the Lineedit is red if the name is already in use and the name is not replaced.

Diff Detail

Repository
R262 LabPlot
Lint
Lint Skipped
Unit
Unit Tests Skipped
Murmele created this revision.Jun 30 2019, 5:27 PM
Restricted Application added a project: KDE Edu. · View Herald TranscriptJun 30 2019, 5:27 PM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
Murmele requested review of this revision.Jun 30 2019, 5:27 PM
Murmele edited the summary of this revision. (Show Details)
Murmele updated this revision to Diff 60960.Jul 1 2019, 7:57 PM
Murmele updated this revision to Diff 61088.Jul 3 2019, 5:05 PM
yurchor added a subscriber: yurchor.Jul 3 2019, 5:10 PM
yurchor added inline comments.
src/backend/core/AspectTreeModel.cpp
393 ↗(On Diff #61088)

Can it be like this

i18n("The name \"%1\" is already in use. Choose another name.", value.toString())

to avoid word puzzles? Thanks.

Murmele marked an inline comment as done.Jul 3 2019, 7:43 PM
Murmele updated this revision to Diff 61104.Jul 3 2019, 8:14 PM

Create BaseDock Class. The docks inherit this Base class

asemke added inline comments.Jul 6 2019, 9:00 AM
src/backend/core/AbstractAspect.cpp
224–225 ↗(On Diff #60880)

no brackets for one-liners.

src/backend/core/AbstractAspect.h
266

bool as the return type.

src/backend/core/AspectTreeModel.h
97 ↗(On Diff #61104)

we have a similar signal already in AbstractAspect::statusInfo(). Let's call it here similarly.

src/kdefrontend/dockwidgets/BaseDock.cpp
3 ↗(On Diff #61104)

check the indentation here.

src/kdefrontend/dockwidgets/BaseDock.h
6 ↗(On Diff #61104)

2019 only.

45 ↗(On Diff #61104)

m_leName

46 ↗(On Diff #61104)

m_leComment

Murmele updated this revision to Diff 61268.Jul 7 2019, 9:32 AM
Murmele marked 7 inline comments as done.
asemke accepted this revision.Jul 7 2019, 2:06 PM

LabelWidget doesn't need to inherit from BaseDock. I'll push your patch without the changes on LabelWidget.

This revision is now accepted and ready to land.Jul 7 2019, 2:06 PM
asemke closed this revision.Jul 7 2019, 3:05 PM