Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drad'n'drop improvents part 2 #34433

Merged
merged 1 commit into from
Feb 12, 2020
Merged

drad'n'drop improvents part 2 #34433

merged 1 commit into from
Feb 12, 2020

Conversation

3nids
Copy link
Member

@3nids 3nids commented Feb 12, 2020

display the container editor in the right panel
this avoids opening a modal dialog

a new type of itemData has been added as WidgetType
to distinguish them in the available widgets from the containers in the form layout

fixes #29063

Screen-Recording-2020-02-12-at-14 19 55 (1)

part 2

display the container editor in the right panel
this avoids opening a modal dialog

a new type of itemData has been added as WidgetType
to distinguish them in the available widgets from the containers in the form layout

fixes qgis#29063
Copy link
Contributor

@signedav signedav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far so awesome.

I approve - see my comments.

explicit QgsAttributeFormContainerEdit( QTreeWidgetItem *item, QWidget *parent = nullptr );


void updateItemData();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't it need docs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's in app, I added a short description for the class only

@@ -941,6 +981,9 @@ QTreeWidgetItem *DnDTree::addItem( QTreeWidgetItem *parent, QgsAttributesFormPro
case QgsAttributesFormProperties::DnDTreeItemData::HtmlWidget:
//no icon for HtmlWidget
break;

case QgsAttributesFormProperties::DnDTreeItemData::WidgetType:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will never happen since this is all in the other if clause checking for container (old thing I mentioned in the last pr). Maybe you are keeping it for your upcoming implementations.

Anyway, I would check here for WidgetType and add this newItem->setBackground( 0, QBrush( Qt::lightGray ) );

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will take care of the icons later.
But sadly the svg are missing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, the fix for the light gray is coming in next round

@3nids 3nids merged commit 6a16ee8 into qgis:master Feb 12, 2020
@timlinux timlinux added the Changelog Items that are queued to appear in the visual changelog - remove after harvesting label Feb 17, 2020
3nids added a commit to qgis/QGIS-Documentation that referenced this pull request Feb 18, 2020
3nids added a commit to 3nids/QGIS that referenced this pull request Feb 25, 2020
drad'n'drop improvents part 2
3nids added a commit that referenced this pull request Mar 12, 2020
* [FEATURE] Merge pull request #34411 from 3nids/dnd_sync_selec

improvement of the Drag'n'Drop designer

* Merge pull request #34433 from 3nids/dnd_part2

drad'n'drop improvents part 2

* drag'n'drop improvements part 3 (#34479)

* drag'n'drop improvements

part 3

this completely removes hidden config accessible under double click
now a widget groupbox (by opposition to the field config) is shown on top of the right panel

* remove assert from a left over (fix crash) (#34503)

the assert was copied from other class and I was running with RelWithDebugInfo and not Debug.

* Update CMakeLists.txt

* Update CMakeLists.txt

* move to moc headers

* sip include
@timlinux timlinux removed the Changelog Items that are queued to appear in the visual changelog - remove after harvesting label May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A more intuitive way to open the group/tab properties in drag and drop form designer
3 participants