Bug 120005
Summary: | Qt application could be minimized only once in Mac. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Nitin Rajan <nitin.rajan> |
Component: | WebKit Qt | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Major | ||
Priority: | P2 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.8 |
Nitin Rajan
Overview:
---------
The logic to minimize the application using 'window()->setWindowState(Qt::WindowMinimized)' is only working for the first time in Mac. Successive call to the same after maximizing the window does not have any action.
Steps to Reproduce:
--------------------
A Qt application was created with a 'minimizeScreen' button which has the action to minimize the window using a call to "window()->setWindowState(Qt::WindowMinimized)" .
[code]
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
connect(ui->minButton, SIGNAL(clicked()), this, SLOT(minimizeWindow()));
}
void MainWindow :: minimizeWindow()
{
window()->setWindowState(Qt::WindowMinimized);
}
[\code]
Actual Results:
----------------
The window minimizes for the first time. Successive call to minimize does not have any action.
Expected Results:
---------------------
The window must be minimized every time when the user presses the 'minimizeScreen' button.
Build Date & Platform:
-----------------------
Tried with QT 5.0.2 and QT 5.0.1 . OS : MAC OSX 10.8.3
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
The Qt port has been removed from WebKit, resolving.