mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-18 10:35:25 +00:00
safe code improvements related to eventFilter
This commit is contained in:
parent
0c69988f83
commit
17feb1e84a
@ -28,7 +28,6 @@ CommentsWidget::CommentsWidget(MainWindow *main, QWidget *parent) :
|
||||
ui->frame->hide();
|
||||
|
||||
// Resize eventfilter
|
||||
this->installEventFilter(this);
|
||||
ui->commentsTreeWidget->viewport()->installEventFilter(this);
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ private slots:
|
||||
|
||||
void on_actionVertical_triggered();
|
||||
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
bool eventFilter(QObject *obj, QEvent *event) override;
|
||||
|
||||
private:
|
||||
Ui::CommentsWidget *ui;
|
||||
|
@ -39,7 +39,6 @@ FunctionsWidget::FunctionsWidget(MainWindow *main, QWidget *parent) :
|
||||
this, SLOT(showTitleContextMenu(const QPoint &)));
|
||||
|
||||
// Resize eventfilter
|
||||
this->installEventFilter(this);
|
||||
ui->functionsTreeWidget->viewport()->installEventFilter(this);
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ private slots:
|
||||
|
||||
void on_nestedFunctionsTree_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
||||
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
bool eventFilter(QObject *obj, QEvent *event) override;
|
||||
|
||||
private:
|
||||
Ui::FunctionsWidget *ui;
|
||||
|
@ -774,8 +774,6 @@ QToolTip {
|
||||
</layout>
|
||||
<zorder>previewToolButton</zorder>
|
||||
<zorder>decoToolButton</zorder>
|
||||
<zorder>horizontalSpacer_2</zorder>
|
||||
<zorder>horizontalSpacer</zorder>
|
||||
<zorder>simpleGrapgToolButton</zorder>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -15,9 +15,6 @@ SectionsWidget::SectionsWidget(MainWindow *main, QWidget *parent) :
|
||||
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
//setStyleSheet("QSplitter::handle:horizontal { width: 3px; } QSplitter::handle:vertical { height: 3px; }");
|
||||
setStyleSheet("QSplitter::handle { height: 2px; background-color: rgb(255, 255, 255); image: url(:/new/prefix1/img/icons/tabs.png); }");
|
||||
|
||||
// Resize eventfilter
|
||||
this->installEventFilter(this);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user