mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
[Fix] Fixed "Hide tabs when there is only one tab" option. Closes #121
- also edited spanish translation in desktop launcher
This commit is contained in:
parent
86d6f0cae0
commit
ab5555d913
@ -52,7 +52,7 @@ Name=Open new window
|
||||
Name[cs]=Otevřít nové okno
|
||||
Name[de]=Neues Fenster öffnen
|
||||
Name[el]=Άνοιγμα νέου παράθυρου
|
||||
Name[es]=Abrir una ventana nueva
|
||||
Name[es]=Abrir nueva ventana
|
||||
Name[fr]=Ouvrir une nouvelle fenêtre
|
||||
Name[it]=Apri una nuova finestra
|
||||
Name[nl]=Nieuw venster openen
|
||||
|
@ -1254,6 +1254,7 @@ void QupZilla::fullScreen(bool make)
|
||||
statusBar()->hide();
|
||||
bookmarksToolbar()->hide();
|
||||
m_navigationBar->hide();
|
||||
m_tabWidget->getTabBar()->hide();
|
||||
}
|
||||
else {
|
||||
setWindowState(windowState() & ~Qt::WindowFullScreen);
|
||||
@ -1262,11 +1263,11 @@ void QupZilla::fullScreen(bool make)
|
||||
statusBar()->setVisible(m_statusBarVisible);
|
||||
m_bookmarksToolbar->setVisible(m_bookmarksToolBarVisible);
|
||||
m_navigationBar->setVisible(m_navigationVisible);
|
||||
m_tabWidget->showTabBar();
|
||||
}
|
||||
|
||||
m_actionShowFullScreen->setChecked(make);
|
||||
m_navigationBar->buttonExitFullscreen()->setVisible(make);
|
||||
m_tabWidget->getTabBar()->setVisible(!make);
|
||||
|
||||
emit setWebViewMouseTracking(make);
|
||||
}
|
||||
|
@ -344,14 +344,21 @@ void TabWidget::closeTab(int index)
|
||||
setCurrentIndex(m_lastTabIndex);
|
||||
}
|
||||
|
||||
widget(index)->deleteLater();
|
||||
|
||||
if (count() == 1 && m_hideTabBarWithOneTab) {
|
||||
if (count() == 2 && m_hideTabBarWithOneTab) {
|
||||
tabBar()->setVisible(false);
|
||||
}
|
||||
|
||||
// if (count() < 1)
|
||||
// p_QupZilla->close();
|
||||
widget(index)->deleteLater();
|
||||
}
|
||||
|
||||
void TabWidget::showTabBar()
|
||||
{
|
||||
if (count() == 1 && m_hideTabBarWithOneTab) {
|
||||
tabBar()->hide();
|
||||
}
|
||||
else {
|
||||
tabBar()->show();
|
||||
}
|
||||
}
|
||||
|
||||
void TabWidget::tabMoved(int before, int after)
|
||||
|
@ -62,6 +62,7 @@ public:
|
||||
ToolButton* buttonAddTab() { return m_buttonAddTab; }
|
||||
|
||||
void createKeyPressEvent(QKeyEvent* event);
|
||||
void showTabBar();
|
||||
|
||||
signals:
|
||||
void pinnedTabClosed();
|
||||
|
Loading…
Reference in New Issue
Block a user