Remove Override Cursor; refs #163
This commit is contained in:
@@ -578,6 +578,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
|||||||
SLOT(sslErrors(QNetworkReply*, const QList<QSslError>&))));
|
SLOT(sslErrors(QNetworkReply*, const QList<QSslError>&))));
|
||||||
_tabs->setCurrentIndex(_tabs->addTab(browser, tr("New Tab")));
|
_tabs->setCurrentIndex(_tabs->addTab(browser, tr("New Tab")));
|
||||||
_tabs->setTabsClosable(_tabs->count()>1);
|
_tabs->setTabsClosable(_tabs->count()>1);
|
||||||
|
_tabs->tabBar()->setShown(_tabs->count()>1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void newSettings() {
|
void newSettings() {
|
||||||
@@ -665,6 +666,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
|||||||
void on__tabs_tabCloseRequested(int index) {
|
void on__tabs_tabCloseRequested(int index) {
|
||||||
_tabs->removeTab(index);
|
_tabs->removeTab(index);
|
||||||
_tabs->setTabsClosable(_tabs->count()>1);
|
_tabs->setTabsClosable(_tabs->count()>1);
|
||||||
|
_tabs->tabBar()->setShown(_tabs->count()>1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void on_actionPrintPreview_triggered() {
|
void on_actionPrintPreview_triggered() {
|
||||||
@@ -906,6 +908,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
|||||||
}
|
}
|
||||||
for (int i(0); i<oldCnt && _tabs->count()>1; ++i) _tabs->removeTab(0);
|
for (int i(0); i<oldCnt && _tabs->count()>1; ++i) _tabs->removeTab(0);
|
||||||
_tabs->setTabsClosable(_tabs->count()>1);
|
_tabs->setTabsClosable(_tabs->count()>1);
|
||||||
|
_tabs->tabBar()->setShown(_tabs->count()>1);
|
||||||
_tabs->setCurrentIndex(_settings()->value("Window/CurrentTab").toInt());
|
_tabs->setCurrentIndex(_settings()->value("Window/CurrentTab").toInt());
|
||||||
restoreGeometry(_settings()->value("Window/Geometry").toByteArray());
|
restoreGeometry(_settings()->value("Window/Geometry").toByteArray());
|
||||||
restoreState(_settings()->value("Window/WindowState").toByteArray());
|
restoreState(_settings()->value("Window/WindowState").toByteArray());
|
||||||
@@ -1411,7 +1414,6 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void started() {
|
void started() {
|
||||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
|
||||||
actionStop->setVisible(true);
|
actionStop->setVisible(true);
|
||||||
actionReload->setVisible(false);
|
actionReload->setVisible(false);
|
||||||
_progress->setRange(0, 0);
|
_progress->setRange(0, 0);
|
||||||
@@ -1422,7 +1424,6 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
|||||||
|
|
||||||
void finished() {
|
void finished() {
|
||||||
TRC;
|
TRC;
|
||||||
QApplication::restoreOverrideCursor();
|
|
||||||
actionStop->setVisible(false);
|
actionStop->setVisible(false);
|
||||||
actionReload->setVisible(true);
|
actionReload->setVisible(true);
|
||||||
_progress->setRange(0, 1);
|
_progress->setRange(0, 1);
|
||||||
|
Reference in New Issue
Block a user