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:296
void setSelected(bool selected)
Definition resizable_panel.cpp:93
ResizablePanel(const QString &typeId, AbstractAnalyticsPanelWidget *analyticsPanel, QWidget *parent=nullptr)
Definition resizable_panel.cpp:10
void hideDropIndicator()
Definition resizable_panel.cpp:364
AbstractAnalyticsPanelWidget * panel
Definition resizable_panel.h:38
int resizeStartHeight
Definition resizable_panel.h:72
void resizeEvent(QResizeEvent *event) override
Definition resizable_panel.cpp:265
void dragEnterEvent(QDragEnterEvent *event) override
Definition resizable_panel.cpp:206
QTimer * autoScrollTimer
Definition resizable_panel.h:76
void dragMoveEvent(QDragMoveEvent *event) override
Definition resizable_panel.cpp:218
QSize minimumSizeHint() const override
Definition resizable_panel.cpp:121
QWidget * resizeHandle
Definition resizable_panel.h:66
void updateSizeConstraints()
Definition resizable_panel.cpp:289
void dragLeaveEvent(QDragLeaveEvent *event) override
Definition resizable_panel.cpp:236
double resizeStartY
Definition resizable_panel.h:71
void dropEvent(QDropEvent *event) override
Definition resizable_panel.cpp:243
QString typeId
Definition resizable_panel.h:60
int currentHeight
Definition resizable_panel.h:68
QSize sizeHint() const override
Definition resizable_panel.cpp:116
int getMinimumAllowedHeight() const
Definition resizable_panel.cpp:282
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:103
void dragStarted(ResizablePanel *panel)
int getCurrentHeight() const
Definition resizable_panel.cpp:111
void showDropIndicator(double y)
Definition resizable_panel.cpp:357
void performAutoScroll()
Definition resizable_panel.cpp:324
bool isDraggingPanel
Definition resizable_panel.h:70
bool eventFilter(QObject *obj, QEvent *event) override
Definition resizable_panel.cpp:130
void dropRequested(ResizablePanel *dragged, ResizablePanel *target, bool insertBefore)