Sat, 16 Mar 2013 13:08:24 +0200
Convert the static getCoordinateRep to a common ftoa, use this function to get proper coordinate representation when converting objects to LDraw code
#include <qdialog.h> #include <qlineedit.h> #include <qlabel.h> #include <qdialogbuttonbox.h> #include "ldtypes.h" class Dialog_SetContents : public QDialog { public: QLabel* qContentsLabel; QLineEdit* qContents; QDialogButtonBox* qOKCancel; LDObject* patient; Dialog_SetContents (LDObject* obj, QWidget* parent = nullptr); static void staticDialog (LDObject* obj, LDForgeWindow* parent); private slots: void slot_handleButtons (QAbstractButton* qButton); };