ToolBar::allowedAreas not work in CopperSpice Designer

Report any problems with CopperSpice
Post Reply
Navadvipa Chandra d
Posts: 24
Joined: Sun Apr 19 2020 7:02 pm

ToolBar::allowedAreas not work in CopperSpice Designer

Post by Navadvipa Chandra d »

ToolBar::allowedAreas not work in CopperSpice Designer. allowedAreas should expand into many small boolean values. But there is no such thing and no editing of this property in the "Property Editor" is possible.

Thank you!
With best regards, Navadvipa Chandra das.
crispina
Posts: 22
Joined: Tue Nov 17 2020 2:57 pm

Re: ToolBar::allowedAreas not work in CopperSpice Designer

Post by crispina »

Yes I had the same issue. CS Designer generates the following XML when adding a toolbar

Code: Select all

<widget class="QToolBar" name="toolBar">
   <property name="windowTitle" stdset="0">
    <string>toolBar</string>
   </property>
   <attribute name="toolBarArea">
    <enum></enum>
   </attribute>
   <attribute name="toolBarBreak">
    <bool>false</bool>
   </attribute>
  </widget>
and you get the compile error
error: expected unqualified-id before ‘,’ token MainWindow->addToolBar(Qt::, toolBar);
If you change the enum tag to

Code: Select all

  <enum>TopToolBarArea</enum>

then the code compiles without any issues.

I have put a full code CopperSpice toolbar example on my github page below.

https://github.com/crispinalan/copperspice-toolbar-example

I hope this helps.
barbara
Posts: 446
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: ToolBar::allowedAreas not work in CopperSpice Designer

Post by barbara »

Thanks for the additional information. We will have someone on our team see what is causing this to happen.

Barbara
Navadvipa Chandra d
Posts: 24
Joined: Sun Apr 19 2020 7:02 pm

Re: ToolBar::allowedAreas not work in CopperSpice Designer

Post by Navadvipa Chandra d »

Hare Krishna Alan, Barbara and All!

Thank you so much for your concern! I hope version 1.8.1 will be released soon and this problem will no longer be there! I also really hope that the new version will be compiled by the GCC 12.2 compiler. I also really hope that it will be possible to compile in Debug mode.

Thakn you!
Hare Krishna!
With best regards, Navadvipa Chandra das.
barbara
Posts: 446
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: ToolBar::allowedAreas not work in CopperSpice Designer

Post by barbara »

Please keep in mind that CopperSpice is an open source product and everyone is welcome to submit a pull request on github at any time. Any submissions will go through a code review and full CI testing before being merged to the main branch.

Barbara
crispina
Posts: 22
Joined: Tue Nov 17 2020 2:57 pm

Re: ToolBar::allowedAreas not work in CopperSpice Designer

Post by crispina »

See CS Designer dialog with button box post.
barbara
Posts: 446
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: ToolBar::allowedAreas not work in CopperSpice Designer

Post by barbara »

We have found the issue with "ToolBar::allowedArea" and we are in testing Designer.

Barbara
barbara
Posts: 446
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: ToolBar::allowedAreas not work in CopperSpice Designer

Post by barbara »

All reported issues in this thread have been corrected in Designer.

* * CS Designer 1.0.2 was released on January 31 2023

Pre-built binary files can be found on our download site
https://download.copperspice.com/designer/binary/

Source code and pre-built binary files can be also be found on github
https://github.com/copperspice/cs_designer
Post Reply