Qt: Make sure we pass along a resizeEvent.
Change-Id: I6bf07058b0a5b53fe862f4ca414602c658cf50dd Reviewed-on: https://code.wireshark.org/review/15168 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
parent
f5ec0afb76
commit
c245be94c5
|
@ -2149,9 +2149,10 @@ void MainWindow::changeEvent(QEvent* event)
|
|||
QMainWindow::changeEvent(event);
|
||||
}
|
||||
|
||||
void MainWindow::resizeEvent(QResizeEvent *)
|
||||
void MainWindow::resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
df_combo_box_->setMinimumWidth(width() * 2 / 3); // Arbitrary
|
||||
QMainWindow::resizeEvent(event);
|
||||
}
|
||||
|
||||
/* Update main window items based on whether there's a capture in progress. */
|
||||
|
|
|
@ -615,7 +615,7 @@ private slots:
|
|||
void on_actionContextFilterFieldReference_triggered();
|
||||
|
||||
virtual void changeEvent(QEvent* event);
|
||||
virtual void resizeEvent(QResizeEvent *);
|
||||
virtual void resizeEvent(QResizeEvent *event);
|
||||
|
||||
#ifdef HAVE_EXTCAP
|
||||
void extcap_options_finished(int result);
|
||||
|
|
Loading…
Reference in New Issue