29 #ifndef SPLITTER_HANDLE_H 30 #define SPLITTER_HANDLE_H 59 bool eventFilter(QObject* event_target, QEvent* event)
override;
93 #endif // SPLITTER_HANDLE_H void mouseDoubleClickEvent(QMouseEvent *event) override
float getRatio()
Get the ratio of the parent's left column to the parent widget width.
void paintEvent(QPaintEvent *event) override
void mousePressEvent(QMouseEvent *event) override
void mouseMoveEvent(QMouseEvent *event) override
A tall skinny invisible widget providing left-right sliding column separator adjustment for a two-col...
void update(const std::string &key, const XmlRpc::XmlRpcValue &v)
void updateGeometry()
Update the parent's column widths and this splitter's geometry based on first_column_size_ratio_.
void setColor(QColor color)
void setDesiredWidth(int width)
Set desired width of first column - subject to clamping.
bool eventFilter(QObject *event_target, QEvent *event) override
Catch resize events sent to parent to update splitter's geometry. Always returns false.
float first_column_size_ratio_
void setRatio(float ratio)
Set the ratio of the parent's left column to the parent widget width.
SplitterHandle(QTreeView *parent=nullptr)