refactor: Refactor feature browser, move to top-left, and increase font size

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-09 17:36:45 -07:00
parent c6f82a04e8
commit 6e335ef724
4 changed files with 87 additions and 53 deletions

View File

@@ -11,7 +11,7 @@
class ViewCube;
class SketchGrid;
class Document;
class Feature;
class FeatureBrowser;
class ViewportWidget : public QOpenGLWidget, protected QOpenGLFunctions
{
@@ -43,12 +43,11 @@ protected:
private:
QVector3D project(const QVector3D& worldCoord, const QMatrix4x4& modelView, const QMatrix4x4& projection, const QRect& viewport);
void drawAxisLabels(QPainter& painter, const QMatrix4x4& modelView, const QMatrix4x4& projection);
void drawFeatureBrowser(QPainter& painter);
QMatrix4x4 projection;
ViewCube* m_viewCube;
SketchGrid* m_sketchGrid = nullptr;
Document* m_document = nullptr;
FeatureBrowser* m_featureBrowser = nullptr;
SketchPlane m_currentPlane = SketchPlane::NONE;
float xRot = 0;