Commit Graph

54 Commits

Author SHA1 Message Date
berniev
ae53c9b0a4 Gui: Use auto and range-based for (#7481)
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto. 
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
berniev
3d1f70765a Gui: redundant void 2 2022-08-08 10:21:44 +02:00
berniev
2db561561e Gui: use empty 2022-08-06 16:35:45 +02:00
wmayer
85bd6b5c6b Fix several clazy issues:
* C++11 range-loop might detach Qt container [-Wclazy-range-loop-detach]
2022-07-24 23:48:37 +02:00
wmayer
07ccb73fe7 Partially revert "Remove unused code into GUI" 2022-07-17 12:32:03 +02:00
andrea
7886d3cbf4 Remove unused code into GUI 2022-07-17 03:53:11 +02:00
wmayer
1178df06b4 Gui: modernize C++11
* use nullptr
2022-03-23 18:41:21 +01:00
andrea reale
83d3a916c0 remove QT4 references 2022-03-19 23:07:38 +01:00
Uwe
70decbebf5 [Gui] DlgMacro etc.: remove unused includes 2022-03-16 23:41:14 +01:00
Chris Hennes
098d7b9aee [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +02:00
Chris Hennes
533814dd0f Silence Qt/Windows setGeometry Warning
Add the optional Qt::MSWindowsFixedSizeDialogHint parameter to all uses of the QInputDialog::getX static functions to silence a Qt/Windows debug mode warning about QWindowsWindow::setGeometry: Unable to set geometry. Increase the size of the unit calculator to eliminate the same warning. Finally, call adjustSize() on the "Unsaved Changes" dialog to silence the warning.
2020-12-11 09:58:09 +01:00
wmayer
0e5cbf5298 Py2/Qt4: fix build failures and warnings 2020-11-30 19:05:37 +01:00
luz paz
38815b9550 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
67e80c7d6a Qt5: fix deprecation warnings for Qt 5.15
+ QByteArray::append is deprecated
+ QPixmap* QLabel::pixmap() is deprecated
+ overloaded version of QString::split is deprecated
+ QSysInfo::windowsVersion()/QSysInfo::MacVersion() is deprecated
2020-10-18 14:45:31 +02:00
wmayer
0f007c1370 Gui: [skip ci] workaround for Qt5.12.9 that causes a crash in the parameter editor for right clicks in an empty area 2020-10-17 20:06:53 +02:00
wmayer
45e0673645 LGTM: [skip ci] fix: Declaration hides parameter
A local variable hides a parameter. This may be confusing. Consider renaming one of them.
2020-07-27 10:57:34 +02:00
wmayer
32a7aec18e Gui: [skip ci] add some security checks before dereferencing pointer to QTreeWidgetItem 2020-07-18 12:05:02 +02:00
mwganson
7fdb6ac13b [crash fix] Edit Parameters right click was causing crash unless right clicking on item 2020-07-18 11:55:24 +02:00
triplus
a47a205074 Icon themes parameter editor 2020-06-22 11:58:06 +02:00
wmayer
ca327b6f25 Qt5: 'bool QTreeWidget::isItemSelected(const QTreeWidgetItem*) const' is deprecated: Use QTreeWidgetItem::isSelected() instead [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
59f38319a3 Qt5: 'bool QTreeWidget::isItemExpanded(const QTreeWidgetItem*) const' is deprecated: Use QTreeWidgetItem::isExpanded() instead [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
a9ae47a8be Qt5: 'void QTreeWidget::setItemExpanded(const QTreeWidgetItem*, bool)' is deprecated: Use QTreeWidgetItem::setExpanded() instead [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
7b72dcb062 Qt5: 'QString::null' is deprecated: use QString() [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
3f9e53b9a5 Gui: [skip ci] implement function to rename parameter group 2020-05-01 22:47:30 +02:00
wmayer
73f42c2aec Gui: [skip ci] fixes: Parameter Editor: Problem resizing columns in right panel 2020-05-01 15:24:16 +02:00
wmayer
8ab26fdf2b Gui: [skip ci] for quick search don't change font family and size but set to bold only because on some systems an almost unreadable font might be taken 2020-03-16 17:29:29 +01:00
wmayer
2936d6172f Gui: [skip ci] slightly change the background color of the search field 2020-03-16 00:12:07 +01:00
wmayer
0a59442973 Gui: fix Qt warning: QMetaObject::connectSlotsByName: No matching signal for on_findGroup_changed(QString)
do not auto-collapse when search string is empty
set red-ish background if no matching group was found
2020-03-15 18:07:32 +01:00
donovaly
f4c56195c9 comment wording fixes 2020-03-15 18:07:32 +01:00
donovaly
e5cefe33a9 set placeholder text not in UI to take care of Qt 4 users 2020-03-15 18:07:32 +01:00
donovaly
78e6edf0ab [GUI] new feature to search for parameter groups 2020-03-15 18:07:32 +01:00
wmayer
6567b5cbb6 Gui: also sort parameter groups in ascending order [skip ci] 2020-02-07 13:30:32 +01:00
wmayer
3c04ab6a6c Gui: [skip-ci] allow user to sort elements in parameter editor by name/type/value 2020-01-25 15:28:38 +01:00
luz.paz
30a717beac Fix typos and misc. formatting [skip ci]
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,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`
2019-10-21 16:02:23 -03:00
wmayer
091375a993 fix gcc/clang build failure 2019-10-19 15:18:26 +02:00
wmayer
944c9224e1 change deletion order in parameter editor to avoid that a parameter group isn't deleted 2019-10-18 15:46:02 +02:00
wmayer
bd76bbd625 Add an XSD validation scheme and implement ParameterManager::CheckDocument(), function is used in the parameter editor 2019-10-14 22:56:03 +02:00
wmayer
743e548363 add search function to parameter editor 2019-04-05 23:59:21 +02:00
Mateusz Skowroński
7ba96b5f02 Remove unused non-trivial variables. [-Wclazy-unused-non-trivial-variable] Thanks Clazy! 2019-02-11 15:39:15 +01:00
wmayer
5096f55ccb port C++ code to Qt5 2016-12-13 14:22:59 +01:00
wmayer
62ef3dd923 + add new class ParameterSerializer to load and save parameter files 2016-04-29 17:43:07 +02:00
wmayer
b1c73eba10 + rework parameter dialog 2016-04-01 15:18:56 +02:00
wmayer
2bbe98cf3f + fix possible crash in parameter editor 2016-02-24 20:59:04 +01:00
Mateusz Skowroński
6942c23895 Qt4's qglobal.h defined TRUE and FALSE. Qt5 does not do it anymore. Replace it with true and false.
158f39ec78

This change is Qt4/Qt5 neutral.
2016-01-05 16:43:33 +01:00
Mateusz Skowroński
f48f0f69be Qt::WFlags is obsolete in Qt5. Replace it with Qt::WindowFlags.
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:58 +01:00
Mateusz Skowroński
c275b35d48 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Mateusz Skowroński
0695552cff QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
Mateusz Skowroński
1858400e61 QInputDialog::getInteger() is obsolete in Qt4. Replace it with getInt().
This change is Qt4/Qt5 neutral.
2015-12-22 14:18:47 +01:00
wmayer
de41dc46ec + Prefer prefix ++/-- operators for non-primitive types 2015-10-07 13:38:17 +02:00
wmayer
d19ada810f + split file extension from descriptive text of file format to avoid that invalid translation breaks file dialog
+ add method to make image view unclosable for user
+ fix possible crash in MeshAlgorithm::GetMeshBorder
+ fix possible crash in MeshAlgorithm::ConnectLines
2015-10-06 17:28:52 +02:00