瀏覽代碼

LibGUI: Don't hard-code TreeView row height

Instead of overriding AbstractTableView::row_height() and returning a
hard-coded height for some reason, just remove the override.

This makes tree view row heights honor the current font size.
Andreas Kling 2 年之前
父節點
當前提交
ff0766056b
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      Userland/Libraries/LibGUI/TreeView.h

+ 0 - 1
Userland/Libraries/LibGUI/TreeView.h

@@ -55,7 +55,6 @@ protected:
 private:
 private:
     virtual ModelIndex index_at_event_position(Gfx::IntPoint, bool& is_toggle) const override;
     virtual ModelIndex index_at_event_position(Gfx::IntPoint, bool& is_toggle) const override;
 
 
-    int row_height() const { return 16; }
     int max_item_width() const { return frame_inner_rect().width(); }
     int max_item_width() const { return frame_inner_rect().width(); }
     int indent_width_in_pixels() const { return 16; }
     int indent_width_in_pixels() const { return 16; }
     int icon_size() const { return 16; }
     int icon_size() const { return 16; }