safe code improvements related to eventFilter

This commit is contained in:
mrexodia 2017-04-09 17:29:45 +02:00
parent 0c69988f83
commit 17feb1e84a
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
6 changed files with 2 additions and 9 deletions

View File

@ -28,7 +28,6 @@ CommentsWidget::CommentsWidget(MainWindow *main, QWidget *parent) :
ui->frame->hide();
// Resize eventfilter
this->installEventFilter(this);
ui->commentsTreeWidget->viewport()->installEventFilter(this);
}

View File

@ -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;

View File

@ -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);
}

View File

@ -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;

View File

@ -774,8 +774,6 @@ QToolTip {
</layout>
<zorder>previewToolButton</zorder>
<zorder>decoToolButton</zorder>
<zorder>horizontalSpacer_2</zorder>
<zorder>horizontalSpacer</zorder>
<zorder>simpleGrapgToolButton</zorder>
</widget>
</item>

View File

@ -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);
}
/*