tabbar does not work, it's private; refs #167

This commit is contained in:
Marc Wäckerlin
2012-11-05 13:47:09 +00:00
parent 185a60c746
commit 041ed6b783

View File

@@ -578,7 +578,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
SLOT(sslErrors(QNetworkReply*, const QList<QSslError>&))));
_tabs->setCurrentIndex(_tabs->addTab(browser, tr("New Tab")));
_tabs->setTabsClosable(_tabs->count()>1);
_tabs->tabBar()->setShown(_tabs->count()>1);
//_tabs->tabBar()->setShown(_tabs->count()>1);
}
void newSettings() {
@@ -666,7 +666,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
void on__tabs_tabCloseRequested(int index) {
_tabs->removeTab(index);
_tabs->setTabsClosable(_tabs->count()>1);
_tabs->tabBar()->setShown(_tabs->count()>1);
//_tabs->tabBar()->setShown(_tabs->count()>1);
}
void on_actionPrintPreview_triggered() {
@@ -908,7 +908,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
}
for (int i(0); i<oldCnt && _tabs->count()>1; ++i) _tabs->removeTab(0);
_tabs->setTabsClosable(_tabs->count()>1);
_tabs->tabBar()->setShown(_tabs->count()>1);
//_tabs->tabBar()->setShown(_tabs->count()>1);
_tabs->setCurrentIndex(_settings()->value("Window/CurrentTab").toInt());
restoreGeometry(_settings()->value("Window/Geometry").toByteArray());
restoreState(_settings()->value("Window/WindowState").toByteArray());