1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

New option to hide close button on tabs

closes #526
This commit is contained in:
nowrep 2012-08-27 14:01:17 +02:00
parent 8a859a9b56
commit 58a07aed81
2 changed files with 10 additions and 0 deletions

View File

@ -172,7 +172,9 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
ui->closedInsteadOpened->setChecked(settings.value("closedInsteadOpenedTabs", false).toBool()); ui->closedInsteadOpened->setChecked(settings.value("closedInsteadOpenedTabs", false).toBool());
ui->showTabPreviews->setChecked(settings.value("showTabPreviews", true).toBool()); ui->showTabPreviews->setChecked(settings.value("showTabPreviews", true).toBool());
ui->animatedTabPreviews->setChecked(settings.value("tabPreviewAnimationsEnabled", true).toBool()); ui->animatedTabPreviews->setChecked(settings.value("tabPreviewAnimationsEnabled", true).toBool());
ui->showCloseButtonOnTabs->setChecked(settings.value("showCloseButtonOnTabs", true).toBool());
settings.endGroup(); settings.endGroup();
connect(ui->showTabPreviews, SIGNAL(toggled(bool)), this, SLOT(showTabPreviewsChanged(bool))); connect(ui->showTabPreviews, SIGNAL(toggled(bool)), this, SLOT(showTabPreviewsChanged(bool)));
showTabPreviewsChanged(ui->showTabPreviews->isChecked()); showTabPreviewsChanged(ui->showTabPreviews->isChecked());
@ -777,6 +779,7 @@ void Preferences::saveSettings()
settings.setValue("closedInsteadOpenedTabs", ui->closedInsteadOpened->isChecked()); settings.setValue("closedInsteadOpenedTabs", ui->closedInsteadOpened->isChecked());
settings.setValue("showTabPreviews", ui->showTabPreviews->isChecked()); settings.setValue("showTabPreviews", ui->showTabPreviews->isChecked());
settings.setValue("tabPreviewAnimationsEnabled", ui->animatedTabPreviews->isChecked()); settings.setValue("tabPreviewAnimationsEnabled", ui->animatedTabPreviews->isChecked());
settings.setValue("showCloseButtonOnTabs", ui->showCloseButtonOnTabs->isChecked());
settings.endGroup(); settings.endGroup();
//DOWNLOADS //DOWNLOADS

View File

@ -660,6 +660,13 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QCheckBox" name="showCloseButtonOnTabs">
<property name="text">
<string>Show close button on tabs</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QCheckBox" name="hideTabsOnTab"> <widget class="QCheckBox" name="hideTabsOnTab">
<property name="text"> <property name="text">