Commit Graph

57 Commits

Author SHA1 Message Date
Max Wilfinger
cafefafdf1 replaced .xpm with .svg 2024-11-29 12:09:42 -05:00
Christoph Moench-Tegeder
15a75ba5d3 replace exec_program() with execute_process()
Recent CMake (>= 3.28) do not allow exec_program() any more by default,
but prefer execute_process(), which takes slightly different flags.
According to the documentation, exec_program() has been deprecated
since CMake 3.0 (which was released in 2014, so it should be common
enough that I don't feel like making allowances for any really old CMake).

References: https://cmake.org/cmake/help/latest/policy/CMP0153.html
2024-09-23 17:41:19 +02:00
Chris Hennes
9b1ef66e98 Remove WebKit SVG renderer. 2024-04-21 22:27:50 -05:00
wmayer
ef39e34c14 plugin: port FreeCAD's QtDesigner plugin to Qt6 2024-03-16 18:47:34 +01:00
mosfet80
9e1903d461 [tools] cleanVisual studio
removed visual studio project files
2024-03-04 18:28:00 +01:00
pre-commit-ci[bot]
222a2520b1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
mosfet80
a9503e38e4 Delete src/Tools/plugins/widget/FreeCAD_widgets.vcxproj.user
removed Visual studio user personal file
2023-09-06 07:22:01 +02:00
mosfet80
a320748c3f Delete src/Tools/plugins/widget/FreeCAD_widgets.vcxproj.filters
removed custom Visual Studio filter file
2023-09-06 07:22:01 +02:00
Chris Hennes
c1825036a6 Tools: Reformat to current clang-format standard 2023-09-03 09:51:22 -05:00
Chris Hennes
4a7e1b6d9b Tools: Apply pre-commit autoformatting 2023-04-22 13:07:06 -05:00
mosfet80
4cd350d2d0 Removal of unused code due to old <5.2 Qt library (#8842) 2023-03-12 11:08:58 +01:00
wmayer
4714135880 Plugin: harmonize with FreeCAD widgets 2023-02-26 21:59:19 +01:00
Uwe
099de1ae9f modernize usage of connect() 2023-02-26 10:38:28 +01:00
Uwe
fc1a6012cf [Widgets] register transparency property of Gui::ColorButton
- at the moment it is not possible to set the property "allowTransparency" in Qt Designer
2023-02-26 10:38:28 +01:00
wmayer
09550656c2 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
ec553a9292 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
af0a014cf2 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
1337203415 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
wmayer
b277ef36c1 Misc: modernize C++: replace 'typedef' with 'using' 2022-08-30 11:10:02 +02:00
wmayer
3b0b7775f4 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
wmayer
e89ebba736 plugin: do not exclude widget plugins from tarball 2022-06-15 12:23:48 +02:00
wmayer
9065058265 plugin: [skip ci] copy sizeHint handling to QuantitySpinBox implementation in QtDesigner plugin 2022-06-12 21:56:08 +02:00
wmayer
a4480b4ba7 plugin: improve support on Windows 2022-05-23 17:18:18 +02:00
Uwe
10fa08e879 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
wmayer
126d205cf4 Tools: [skip ci] fix linking error of plugin with MSVC 2022-04-28 14:46:55 +02:00
wmayer
adf23ff4ec Tools: [skip ci] allow to build plugin as a top-level project 2022-04-06 13:48:33 +02:00
wmayer
5c342f6e58 Tools: [skip ci] fix linking errors of designer plugin with MSVC 2022-04-06 12:47:28 +02:00
Bernd Waibel
c521a9179b 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
156cf62b8a Tools: [skip ci] replace QtDesigner with QtUiPlugin header to make moc happy on macOS 2022-04-04 17:06:59 +02:00
wmayer
0b44a6c28d Tools: [skip ci] Use qmake to determine Qt plugin directory 2022-04-04 02:12:13 +02:00
wmayer
ab2461629c Tools: [skip ci] CMake support of plugin for Qt Designer 2022-04-03 14:32:34 +02:00
Uwe
b0d6a5a6b0 [Plugin] update build setup to latest LibPack
(the particular paths can easily be adapted)
2022-02-01 01:57:21 +01:00
wmayer
93bb9646c3 plugin: [skip ci] add custom widgets Gui::IntSpinBox and Gui::DoubleSpinBox 2020-08-12 11:38:31 +02:00
wmayer
6d56b3e3b3 plugin: [skip ci] fix of QuantitySpinBox to not remove value property from existing files 2020-08-09 17:07:08 +02:00
wmayer
050356aa55 plugin: [skip ci] add new signal textChanged() to QuantitySpinBox 2020-08-09 11:22:47 +02:00
wmayer
068bfc2ebe plugin: [skip ci] fix warnings 2020-08-09 08:16:59 +02:00
wmayer
47d4db552a plugin: [skip ci] make QuantitySpinBox inside plugin functioning 2020-08-08 20:04:45 +02:00
donovaly
8db4149c88 [Tools] add PrefQuantitySpinBox to designer plugins/widget/FreeCAD_widgets.vcxproj
as discussed here: https://forum.freecadweb.org/viewtopic.php?f=10&t=49315&p=422648#p422648
2020-08-08 17:48:21 +02:00
donovaly
f05b38c502 [Tools] add Visual Studio project files
see: https://forum.freecadweb.org/viewtopic.php?f=10&t=44609&start=10#p381463

One needs all 4 files. It works on difference PCs since all paths are relative.
2020-03-31 12:05:45 +02:00
Stian Skjelstad
7102ff26a7 Remove reuse of variable-name.
customwidgets.cpp: In member function ‘virtual void Gui::AccelLineEdit::keyPressEvent(QKeyEvent*)’:
customwidgets.cpp:287:38: error: no match for ‘operator+’ (operand types are ‘Qt::Modifier’ and ‘QKeySequence’)
             QKeySequence key(Qt::CTRL+key);
                              ~~~~~~~~^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:38:0,
                 from customwidgets.cpp:24:

g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
2018-12-10 09:17:20 -03:00
wandererfan
8668296f9c Hard Code QTFileDialog option 2018-09-23 19:37:19 +02:00
wmayer
0d00433ee9 port FreeCAD plugin for Qtdesigner to Qt5 2018-03-09 15:38:33 +01:00
wmayer
2bfea410fc build plugin with Qt5 2018-03-08 01:51:42 +01:00
wmayer
c5bc81ce59 add PrefUnitSpinBox to designer plugin 2018-03-07 23:51:07 +01:00
WandererFan
df5a986c87 Add Pref Font Widget 2018-02-27 14:28:36 -05:00
Mateusz Skowroński
9b07616fe6 * Cosmetic change. Replace Qt keyword emit with Q_EMIT.
* Whitespace fixes.
2017-01-05 22:57:30 +01:00
maurerpe
3f3d8a95f5 Fix remaining toAscii/fromAscii
Qt5 does not have toAscii or fromAscii.  Use toLatin1 and fromLatin1
respectively.  Both replacement functions exist in Qt4.8.
2016-02-24 23:56:43 +01:00
wmayer
d1fb7fa839 + do not add units to translation 2014-09-10 10:35:49 +02:00
wmayer
5ba337a36d + add QuantitySpinBox to widget plugin 2014-07-21 15:30:38 +02:00
wmayer
d85f442089 + add InputField to widget plugin 2014-05-15 18:10:26 +02:00