mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
Fix a resizing issue
This commit is contained in:
parent
b25afecc2c
commit
43363f25e6
@ -24,6 +24,12 @@ OverviewWidget::OverviewWidget(MainWindow *main, QAction *action) :
|
||||
|
||||
OverviewWidget::~OverviewWidget() {}
|
||||
|
||||
void OverviewWidget::resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
graphView->refreshView();
|
||||
QDockWidget::resizeEvent(event);
|
||||
}
|
||||
|
||||
void OverviewWidget::updateContents()
|
||||
{
|
||||
if (!refreshDeferrer->attemptRefresh(nullptr)) {
|
||||
|
@ -17,6 +17,10 @@ public:
|
||||
|
||||
private:
|
||||
RefreshDeferrer *refreshDeferrer;
|
||||
/**
|
||||
* @brief this takes care of scaling the overview when the widget is resized
|
||||
*/
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
|
||||
private slots:
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user