Commit Graph

43 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
wmayer
e93fca18c0 Misc: modernize C++: replace 'typedef' with 'using' 2022-08-30 11:10:02 +02: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
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
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
wmayer
d3446f4a55 Tools: [skip ci] fix linking error of plugin with MSVC 2022-04-28 14:46:55 +02: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
Uwe
e86fed750a [Plugin] update build setup to latest LibPack
(the particular paths can easily be adapted)
2022-02-01 01:57:21 +01:00
wmayer
f246d811eb plugin: [skip ci] add custom widgets Gui::IntSpinBox and Gui::DoubleSpinBox 2020-08-12 11:38:31 +02:00
wmayer
6b83aa7ed2 plugin: [skip ci] fix of QuantitySpinBox to not remove value property from existing files 2020-08-09 17:07:08 +02:00
wmayer
22bfd76efd plugin: [skip ci] add new signal textChanged() to QuantitySpinBox 2020-08-09 11:22:47 +02:00
wmayer
24f93f94ed plugin: [skip ci] fix warnings 2020-08-09 08:16:59 +02:00
wmayer
314e0ca49c plugin: [skip ci] make QuantitySpinBox inside plugin functioning 2020-08-08 20:04:45 +02:00
donovaly
1e124d86d6 [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
c031d970e6 [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
1f2dc3a366 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
5d0fa3d251 Hard Code QTFileDialog option 2018-09-23 19:37:19 +02:00
wmayer
fa1fc9ed64 port FreeCAD plugin for Qtdesigner to Qt5 2018-03-09 15:38:33 +01:00
wmayer
12adbc53bf build plugin with Qt5 2018-03-08 01:51:42 +01:00
wmayer
0efac92236 add PrefUnitSpinBox to designer plugin 2018-03-07 23:51:07 +01:00
WandererFan
314dcaa3cd Add Pref Font Widget 2018-02-27 14:28:36 -05:00
Mateusz Skowroński
ce1c021132 * Cosmetic change. Replace Qt keyword emit with Q_EMIT.
* Whitespace fixes.
2017-01-05 22:57:30 +01:00
maurerpe
2e4efb5b10 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
47ce908531 + do not add units to translation 2014-09-10 10:35:49 +02:00
wmayer
f83e5812af + add QuantitySpinBox to widget plugin 2014-07-21 15:30:38 +02:00
wmayer
430b205e4c + add InputField to widget plugin 2014-05-15 18:10:26 +02:00
wmayer
c7dfd17f97 Ignore plugins by git export 2013-11-28 14:03:32 +01:00
wmayer
285219bf3d + Webkit based SVG image format 2013-11-28 13:32:32 +01:00
wmayer
a64dd1a82c Set default names for widgets in Qt designer plugin 2013-05-21 11:56:36 +02:00
wmayer
ebb220d2f4 0000719: Implement a KActionSelector-like widget 2012-06-03 12:11:38 +02:00
wmayer
891421d805 + implement primitive dialog as task panel
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5365 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-30 17:27:21 +00:00
wmayer
db0ad3a49c + add new custom widget
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5364 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-30 14:30:52 +00:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00