Commit d26ec7ce authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Ensure correct position on mainwindow resize

parent e11835db
......@@ -1181,6 +1181,14 @@ void KateMainWindow::mousePressEvent(QMouseEvent *e)
}
}
void KateMainWindow::resizeEvent(QResizeEvent *event)
{
if (event && !m_quickOpen->isHidden()) {
m_quickOpen->updateViewGeometry();
event->accept();
}
}
void KateMainWindow::slotFocusPrevTab()
{
if (m_viewManager->activeViewSpace()) {
......
......@@ -623,6 +623,7 @@ public Q_SLOTS:
protected:
bool event(QEvent *e) override;
void mousePressEvent(QMouseEvent *e) override;
void resizeEvent(QResizeEvent *event) override;
};
#endif
......@@ -32,6 +32,7 @@ public:
* will fill model with current open documents, project documents, ...
*/
void update();
void updateViewGeometry();
KateQuickOpenModelList listMode() const;
void setListMode(KateQuickOpenModelList mode);
......@@ -62,7 +63,6 @@ private:
* filtered model we search in
*/
QuickOpenFilterProxyModel *m_model;
void updateViewGeometry();
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment