1#ifndef COCKATRICE_RESIZABLE_PANEL_H
2#define COCKATRICE_RESIZABLE_PANEL_H
24 QWidget *parent =
nullptr);
45 bool eventFilter(QObject *obj, QEvent *event)
override;
49 void dropEvent(QDropEvent *event)
override;
QPushButton * dragButton
Definition resizable_panel.h:65
QPoint dragStartPos
Definition resizable_panel.h:74
QFrame * dropIndicator
Definition resizable_panel.h:64
QPoint lastDragPos
Definition resizable_panel.h:75
bool isResizing
Definition resizable_panel.h:69
void startDrag()
Definition resizable_panel.cpp:310
void setSelected(bool selected)
Definition resizable_panel.cpp:107
ResizablePanel(const QString &typeId, AbstractAnalyticsPanelWidget *analyticsPanel, QWidget *parent=nullptr)
Definition resizable_panel.cpp:10
void hideDropIndicator()
Definition resizable_panel.cpp:378
AbstractAnalyticsPanelWidget * panel
Definition resizable_panel.h:38
int resizeStartHeight
Definition resizable_panel.h:72
void resizeEvent(QResizeEvent *event) override
Definition resizable_panel.cpp:279
void dragEnterEvent(QDragEnterEvent *event) override
Definition resizable_panel.cpp:220
QTimer * autoScrollTimer
Definition resizable_panel.h:76
void dragMoveEvent(QDragMoveEvent *event) override
Definition resizable_panel.cpp:232
QSize minimumSizeHint() const override
Definition resizable_panel.cpp:135
QWidget * resizeHandle
Definition resizable_panel.h:66
void updateSizeConstraints()
Definition resizable_panel.cpp:303
void dragLeaveEvent(QDragLeaveEvent *event) override
Definition resizable_panel.cpp:250
double resizeStartY
Definition resizable_panel.h:71
void dropEvent(QDropEvent *event) override
Definition resizable_panel.cpp:257
QString typeId
Definition resizable_panel.h:60
int currentHeight
Definition resizable_panel.h:68
QSize sizeHint() const override
Definition resizable_panel.cpp:130
int getMinimumAllowedHeight() const
Definition resizable_panel.cpp:296
QString getTypeId() const
Definition resizable_panel.h:33
QFrame * frame
Definition resizable_panel.h:62
QFrame * selectionOverlay
Definition resizable_panel.h:63
void setHeightFromSaved(int h)
Definition resizable_panel.cpp:117
void dragStarted(ResizablePanel *panel)
int getCurrentHeight() const
Definition resizable_panel.cpp:125
void showDropIndicator(double y)
Definition resizable_panel.cpp:371
void performAutoScroll()
Definition resizable_panel.cpp:338
bool isDraggingPanel
Definition resizable_panel.h:70
bool eventFilter(QObject *obj, QEvent *event) override
Definition resizable_panel.cpp:144
void dropRequested(ResizablePanel *dragged, ResizablePanel *target, bool insertBefore)