Commit Graph

398 Commits

Author SHA1 Message Date
wmayer
abc4e6bf39 Qt6 port:
* Constructor of QFontDatabase is deprecated, use static functions instead
* Fix QuantitySpinBox::selectNumber()
* Fix InputField::selectNumber()
* Make InputField::fixup() compatible with Qt6
* QFont::setWeight requires an enum now
* QInputEvent reuires a pointing device now
* QAbstractItemView::viewOptions() has been renamed to QAbstractItemView::initViewItemOption()
2022-11-03 12:38:11 +01:00
wmayer
fac648fff5 Qt6 port:
* Explicitly include some missing headers
* Use 'static const char*' for XPM icon
* Skip template parameters for qMakePair
* Constructor of QFileInfo is marked as 'explicit' now
* QString::fromLatin1() also accepts a QByteArray
* QDateTime::fromTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::fromSecsSinceEpoch()
* QDateTime::toTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::toSecsSinceEpoch()
* QApplication::globalStrut() is deprecated. Don't use it any more.
* QWidget::isTopLevel() is deprecated, use QWidget::isWindow()
2022-11-02 15:16:41 +01:00
wmayer
4b08850edb Qt6 port:
* QApplication::setFallbackSessionManagementEnabled has been removed
* QString::medRef() has been removed. Use QString::mid() again.
* QTextStream::setCodec has been removed
* Use operator QVariant of the QFont class to make code Qt5 and Qt6 compatible
* Signature of QTreeWidget::mimeData() has changed in Qt6. Remove TreeWidget::mimeData() because it doesn't change the implementation
* QLayout::setMargin() is deprecated in Qt5 and has been removed in Qt6. Use QLayout::setContentsMargins()
* QDateTime::toTime_t() is deprecated in Qt5 and has been removed in Qt6. Use QDateTime::toSecsSinceEpoch()
* QDesktopWidget is deprecated in Qt5 and has been removed in Qt6. Use QScreen
2022-11-01 16:55:40 +01:00
Bernd Waibel
c70c08f795 Core: Add additional CMake code for building with Qt6
We missed adding CMake code to also build the designer plugin against
Qt6. See https://github.com/FreeCAD/FreeCAD/pull/7647#issuecomment-1297202448

This patch adds the code to enable this.

Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
2022-11-01 08:44:53 -05:00
Kuzemko Alexsandr
2eb55d48c7 [App] Fix of untranslated first document's name (#7156)
* Change no need function newDocument("Unnamed") call to variant without parameter. "Unnamed" set in App newDocument function instead.
* Refactor New Document command to run without parameter.
* Translate new document's userName. Internal name = "Unnamed".
* Crowdin Add to updatets.py App.ts. Create new file App.ts
* Fix error where document name is set with one function parameter. In this situation set internal and user name to string variable. For default function call (without parameter) set internal name to Unnamed, userName = translate ("Unnamed")
2022-10-20 21:35:09 -05:00
wmayer
636b423694 Tools: extend RegExp utility 2022-10-08 11:07:42 +02:00
wmayer
9363edf766 Tools: replace QRegExp with QRegularExpression 2022-10-07 16:31:20 +02:00
Yorik van Havre
8558d27776 Tools: Added support for pylupdate6 in translation handling scripts 2022-10-06 12:16:14 +02:00
Adrian Insaurralde Avalos
8269fdbe70 [tools] fix fcinfo -g script [skip-ci]
ZipFile.read returns a bytes-like object so re.sub must be passed byte-like objects arguments when operating on those read files.
2022-09-13 19:38:43 -04:00
wmayer
e93fca18c0 Misc: modernize C++: replace 'typedef' with 'using' 2022-08-30 11:10:02 +02:00
wmayer
4e42ff7baa Base: modernize C++: replace 'typedef' with 'using' 2022-08-29 11:42:09 +02:00
luz paz
7b10713d6f Fix typos and whitespace
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,anormal,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childrens,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,itsel,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oce,oder,ontop,orgin,orginx,orginy,ot,pard,parm,parms,pres,programm,que,rady,recurrance,ro,rougly,seperator,serie,sinc,siz,strack,substraction,te,technic,thist,thru,tread,uint,unter,uptodate,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml,./src/Base/StackWalker.cpp,./build/doc/SourceDocu`
2022-08-23 18:49:47 +02:00
Christian Meusel
1e14a24bef Tools: Use Python 3 as interpreter for fcinfo
Since Python 2 support has been dropped with #6143, let's have Python 3
as default interpreter on the platforms caring for it.
2022-08-22 12:21:55 +05:00
luz paz
aec90797b4 Fix various 'testing inequality to None' syntax issues
Substitute `is not None` for `!= None`
2022-07-30 22:41:31 -04:00
wmayer
3fddaf4a2f Fix several clazy issues:
* Q_PROPERTY should have either NOTIFY or CONSTANT [-Wclazy-qproperty-without-notify]
* Use Q_ENUM instead of Q_ENUMS [-Wclazy-qenums]
* Add missing a Q_OBJECT macro [-Wclazy-missing-qobject-macro]
* Signal/Slot arguments need to be fully-qualified [-Wclazy-fully-qualified-moc-types]
2022-07-24 19:03:30 +02:00
Yorik van Havre
703059961c Removed old wiki2qhelp file - issue 7120 2022-07-04 10:52:51 +02:00
mosfet80
c86f0ce670 Remove old msc ver. Freecad 0.20 require 64 bit and windows 7 or higher. For this reason, msc libraries less than 1800 will no longer be used. (#7036)
* remove msc<1800
2022-06-28 00:42:33 +02:00
Kuzemko Alexsandr
bd7d4273f3 Crowdin Add Material to updatets.py script and create new Material.ts 2022-06-21 17:45:25 +03:00
Kuzemko Alexsandr
648b97e283 Crowdin Add no-sort option to lupdate. 2022-06-21 17:29:22 +03:00
Kuzemko Alexsandr
a858de0046 Crowdin Add Inspection WB to updatets.py script 2022-06-21 17:28:40 +03:00
wmayer
b159415cba Tools: add script to create snapshots in headless mode 2022-06-21 12:55:17 +02:00
Uwe
3060e6197b Revert "remove unused python<3.6 code"
This reverts commit 62d8116bb8af1df8b971bb591611356111a4488c.
2022-06-19 16:23:13 +02:00
andrea
9b640f10cf remove unused python<3.6 code 2022-06-19 15:33:44 +02:00
wmayer
67846b8ea4 plugin: do not exclude widget plugins from tarball 2022-06-15 12:23:48 +02:00
wmayer
d1648f80ab plugin: [skip ci] copy sizeHint handling to QuantitySpinBox implementation in QtDesigner plugin 2022-06-12 21:56:08 +02:00
Kuzemko Alexsandr
3457b974d9 Crowdin Add full Part directory back to search path. 2022-06-04 15:09:19 -04:00
Chris Hennes
f966861a80 Tools: Manually search for translatable files 2022-06-02 14:58:44 -05:00
Chris Hennes
8f38236c49 Tools: Fix issues with updatets.py 2022-06-02 13:37:28 -05:00
Chris Hennes
54ffceea51 Tools: Add Windows and Qt6 support to updatets.py 2022-06-01 21:30:27 -05:00
wmayer
2f14441ef0 plugin: improve support on Windows 2022-05-23 17:18:18 +02:00
Uwe
17a72ec54f update to Windows SDK 10.0.19041.0
because Qt 5.15.3 requires this SDK version too

done in preparation of FC 0.20 that will use Qt 5.15.3 as default for Windows
2022-05-15 04:14:15 +02:00
Benjamin Alterauge
573a184d62 Use python3 to run MakeMacBundleRelocatable.py (#6784)
* To use this script with python 3, fix the incompatible types text and bytes.
2022-05-05 22:47:48 +02:00
Yorik van Havre
4244f0cb49 Tools: Favor the use of pylupdate5 over pyside2-lupdate in translation scripts (pyside2-lupdate doesn't encode properly). 2022-05-05 14:17:27 +02:00
wmayer
d3446f4a55 Tools: [skip ci] fix linking error of plugin with MSVC 2022-04-28 14:46:55 +02:00
Zheng, Lei
8bec44934b Fix mixed line endings 2022-04-26 12:52:55 -05:00
Chris Hennes
e7e0dc292b Tools: Fix translation extraction bug 2022-04-21 10:55:45 -05:00
wmayer
8671016c5a Tools: [skip ci] allow to build plugin as a top-level project 2022-04-06 13:48:33 +02:00
wmayer
2dde41c054 Tools: [skip ci] fix linking errors of designer plugin with MSVC 2022-04-06 12:47:28 +02:00
Bernd Waibel
0e8b87bf51 Add option to build and install the designer plugin
The patch adds a cmake option BUILD_DESIGNER_PLUGIN, targeted
mainly at package maintainers to allow an easy build and installation
of the FreeCAD designer plugin.

It has been discussed in
https://forum.freecadweb.org/viewtopic.php?f=10&t=67706

Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
2022-04-05 08:08:12 +02:00
wmayer
f2f131f391 Tools: [skip ci] replace QtDesigner with QtUiPlugin header to make moc happy on macOS 2022-04-04 17:06:59 +02:00
wmayer
24a015d796 Tools: [skip ci] Use qmake to determine Qt plugin directory 2022-04-04 02:12:13 +02:00
wmayer
b6e7912ada Tools: [skip ci] CMake support of plugin for Qt Designer 2022-04-03 14:32:34 +02:00
Chris Hennes
4e15c48765 Tools: PR6497 move return statement to new line 2022-03-29 12:35:10 -05:00
Chris Hennes
2cfdfd9d1a Tools: PR4556 Step 3: sort QGridLayout by row-col 2022-03-28 10:43:25 -05:00
Yorik van Havre
66c5b6878f Tools: Removing obsolete wiki-to-qhelp scripts
Note: A copy of these scripts is kept
at https://github.com/yorikvanhavre/FreeCAD-offlinedoc-scripts
for archiving
2022-03-24 09:46:50 +01:00
Yorik van Havre
1563822763 Translations: Merged crowdin strings 2022-03-23 10:37:50 +01:00
Yorik van Havre
53e9356521 Tools: Removed Assembly from updatets script 2022-03-23 10:24:43 +01:00
wmayer
859a9ce75c Tools: lgtm: removes unused imports in Python scripts 2022-03-20 21:41:30 +01:00
andrea reale
83d3a916c0 remove QT4 references 2022-03-19 23:07:38 +01:00
wmayer
e4d1ed8366 Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError 2022-03-17 14:45:48 +01:00