Search found 257 matches

by seasoned_geek
Sun Jan 10 2021 9:17 pm
Forum: Developers
Topic: CS_DECLARE_METATYPE documentation issue
Replies: 1
Views: 4548

CS_DECLARE_METATYPE documentation issue

/home/roland/sf_projects/redbug/src/settingsbreakpoint.h:32:42: error: extra ‘;’ [-Werror=pedantic] 32 | CS_DECLARE_METATYPE( SettingsBreakpoint ); | ^ Go here: https://www.copperspice.com/docs/cs_api/custom-types-c.html scroll to bottom and see this Declaring the Type In order to use the Message cl...
by seasoned_geek
Wed Dec 23 2020 4:30 pm
Forum: Enhancements
Topic: Documentation request - QCoreApplication
Replies: 1
Views: 6005

Documentation request - QCoreApplication

QString QCoreApplication::applicationDirPath ( )

Needs to indicate if it returns cononical or native path string for all platforms.
by seasoned_geek
Mon Dec 21 2020 9:06 pm
Forum: Developers
Topic: storageLocation
Replies: 2
Views: 5057

Re: storageLocation

Finally found it! https://www.copperspice.com/docs/cs_api/class_qstandardpaths.html Man was that obscure. Had to back into what to search for by reading the source code for qdesktopservices.cpp. there is nothing in the doc when searching for storageLocation. There should at least be some kind of not...
by seasoned_geek
Mon Dec 21 2020 8:56 pm
Forum: Developers
Topic: -Wzero-as-null-pointer-constant issues
Replies: 3
Views: 5425

Re: -Wzero-as-null-pointer-constant issues

Some of this might be due to the the hacky way I had to compile for the listing. It do appear to be way more than one spot. roland@roland-HP-EliteDesk-800-G2-SFF:~/sf_projects/redbug_scraps$ g++ -std=c++17 -Wzero-as-null-pointer-constant -I /usr/lib/cs_lib/include/QtCore -I /usr/lib/cs_lib/include/Q...
by seasoned_geek
Mon Dec 21 2020 6:39 pm
Forum: Developers
Topic: -Wzero-as-null-pointer-constant issues
Replies: 3
Views: 5425

Re: -Wzero-as-null-pointer-constant issues

Without doing any in-depth testing, these are the places I found where csobject_macro.h uses a 0 for a pointer. #ifdef QT_NO_TEXTCODEC # define CS_TR_FUNCTIONS \ static inline QString tr(const char *s, const char *c = 0, int n = -1) \ { return staticMetaObject().tr(s, c, n); } #else # define CS_TR_F...
by seasoned_geek
Mon Dec 21 2020 6:23 pm
Forum: Developers
Topic: CopperSpice License Question
Replies: 23
Views: 22290

Re: CopperSpice License Question

When we select a license for one of our libraries our preferred choice is BSD. For applications we use GPL. The only time we use an alternative license is when we are required. Nothing about picking a license is based on chance or done haphazardly. I'm sure you believe that. I'm certain many other ...
by seasoned_geek
Mon Dec 21 2020 6:17 pm
Forum: Developers
Topic: CopperSpice License Question
Replies: 23
Views: 22290

Re: CopperSpice License Question

Open source licenses are certainly a bit tricky. If Project A is GPL and Project B is BSD, you can certainly combine them. However, the overall project must be distributed under the terms of the GPL. As a side issue, Diamond is a CopperSpice project and since it is not designed to be an IDE we are ...
by seasoned_geek
Mon Dec 21 2020 6:07 pm
Forum: Developers
Topic: storageLocation
Replies: 2
Views: 5057

storageLocation

All, From Qt 4.4 forward QDesktopServices provided storageLocation() https://doc.qt.io/archives/qt-4.8/qdesktopservices.html#storageLocation This was supposed to make cross platform good. It certainly helped. We now had a list of standard locations we could relegate to Qt. QDesktopServices::DesktopL...
by seasoned_geek
Thu Dec 17 2020 6:01 pm
Forum: Developers
Topic: -Wzero-as-null-pointer-constant issues
Replies: 3
Views: 5425

-Wzero-as-null-pointer-constant issues

All, I really wanted to clean up the use of NULL in my gede port. I honestly think it is causing a problem under CopperSpice that Qt simply ignores. Don't know for absolute certainty because I can't examine a string . . . that would be the reason for the port in the first place. At any rate, when th...
by seasoned_geek
Thu Dec 17 2020 5:54 pm
Forum: Developers
Topic: CopperSpice License Question
Replies: 23
Views: 22290

Re: CopperSpice License Question

What about BSD? Gede released under BSD. If at some point I want to merge Diamond and Gede into something of an IDE I'm not allowed to change from BSD license. The real problem with OpenSource is all of the projects seem to spin a roulette wheel in isolation when choosing a license. Makes for a larg...