This commit is contained in:
Nav
2021-10-21 19:24:48 +01:00
parent 9b21e55815
commit 6b11956c90
27 changed files with 93 additions and 93 deletions

View File

@@ -17,7 +17,7 @@ namespace Bloom::Widgets
};
Q_ENUM_NS(PanelWidgetType)
class Q_WIDGETS_EXPORT PanelWidget: public QFrame
class PanelWidget: public QFrame
{
Q_OBJECT
Q_PROPERTY(int handleSize READ getHandleSize WRITE setHandleSize DESIGNABLE true)
@@ -40,15 +40,15 @@ namespace Bloom::Widgets
this->resizeCursor = this->panelType == PanelWidgetType::LEFT ? Qt::SplitHCursor : Qt::SplitVCursor;
}
int getHandleSize() {
[[nodiscard]] int getHandleSize() const {
return this->handleSize;
}
int getMinimumResize() {
[[nodiscard]] int getMinimumResize() const {
return this->minimumResize;
}
int getMaximumResize() {
[[nodiscard]] int getMaximumResize() const {
return this->maximumResize;
}
@@ -71,7 +71,7 @@ namespace Bloom::Widgets
void mouseReleaseEvent(QMouseEvent* event) override;
void mouseMoveEvent(QMouseEvent* event) override;
std::pair<QPoint, QPoint> getHandleArea() const;
bool isPositionWithinHandleArea(const QPoint& position) const;
[[nodiscard]] std::pair<QPoint, QPoint> getHandleArea() const;
[[nodiscard]] bool isPositionWithinHandleArea(const QPoint& position) const;
};
}