summaryrefslogtreecommitdiffstats
path: root/kcontrol/konqhtml/advancedTabDialog.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2013-03-02 21:01:28 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2013-03-02 21:01:28 -0600
commitc84d841ec08590f648f06d7a9875b3e80615c19b (patch)
tree33579d9289ac677775e61227d277eca5f5ffd586 /kcontrol/konqhtml/advancedTabDialog.cpp
parent2b96a180208a07ef56af8796c22a869ab90cebc8 (diff)
downloadtdebase-c84d841ec08590f648f06d7a9875b3e80615c19b.tar.gz
tdebase-c84d841ec08590f648f06d7a9875b3e80615c19b.zip
Add GUI check box control for the konquerorrc HoverCloseButton configuration option.
This resolves bug report 895.
Diffstat (limited to 'kcontrol/konqhtml/advancedTabDialog.cpp')
-rw-r--r--kcontrol/konqhtml/advancedTabDialog.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/kcontrol/konqhtml/advancedTabDialog.cpp b/kcontrol/konqhtml/advancedTabDialog.cpp
index f8ca88c4c..f58bb9836 100644
--- a/kcontrol/konqhtml/advancedTabDialog.cpp
+++ b/kcontrol/konqhtml/advancedTabDialog.cpp
@@ -63,6 +63,7 @@ advancedTabDialog::advancedTabDialog(TQWidget* parent, TDEConfig* config, const
connect(m_advancedWidget->m_pTabConfirm, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
connect(m_advancedWidget->m_pTabCloseActivatePrevious, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
connect(m_advancedWidget->m_pPermanentCloseButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
+ connect(m_advancedWidget->m_pHoverCloseButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
connect(m_advancedWidget->m_pKonquerorTabforExternalURL, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
connect(m_advancedWidget->m_pPopupsWithinTabs, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
@@ -79,6 +80,7 @@ void advancedTabDialog::load()
m_advancedWidget->m_pNewTabsInBackground->setChecked( ! (m_pConfig->readBoolEntry( "NewTabsInFront", false )) );
m_advancedWidget->m_pOpenAfterCurrentPage->setChecked( m_pConfig->readBoolEntry( "OpenAfterCurrentPage", false ) );
m_advancedWidget->m_pPermanentCloseButton->setChecked( m_pConfig->readBoolEntry( "PermanentCloseButton", false ) );
+ m_advancedWidget->m_pHoverCloseButton->setChecked( m_pConfig->readBoolEntry( "HoverCloseButton", false ) );
m_advancedWidget->m_pKonquerorTabforExternalURL->setChecked( m_pConfig->readBoolEntry( "KonquerorTabforExternalURL", false ) );
m_advancedWidget->m_pPopupsWithinTabs->setChecked( m_pConfig->readBoolEntry( "PopupsWithinTabs", false ) );
m_advancedWidget->m_pTabCloseActivatePrevious->setChecked( m_pConfig->readBoolEntry( "TabCloseActivatePrevious", false ) );
@@ -86,6 +88,10 @@ void advancedTabDialog::load()
m_pConfig->setGroup("Notification Messages");
m_advancedWidget->m_pTabConfirm->setChecked( !m_pConfig->hasKey("MultipleTabConfirm") );
+ if ( m_advancedWidget->m_pPermanentCloseButton->isChecked() )
+ m_advancedWidget->m_pHoverCloseButton->setEnabled(false);
+ else
+ m_advancedWidget->m_pHoverCloseButton->setEnabled(true);
actionButton(Apply)->setEnabled(false);
}
@@ -95,12 +101,13 @@ void advancedTabDialog::save()
m_pConfig->writeEntry( "NewTabsInFront", !(m_advancedWidget->m_pNewTabsInBackground->isChecked()) );
m_pConfig->writeEntry( "OpenAfterCurrentPage", m_advancedWidget->m_pOpenAfterCurrentPage->isChecked() );
m_pConfig->writeEntry( "PermanentCloseButton", m_advancedWidget->m_pPermanentCloseButton->isChecked() );
+ m_pConfig->writeEntry( "HoverCloseButton", m_advancedWidget->m_pHoverCloseButton->isChecked() );
m_pConfig->writeEntry( "KonquerorTabforExternalURL", m_advancedWidget->m_pKonquerorTabforExternalURL->isChecked() );
m_pConfig->writeEntry( "PopupsWithinTabs", m_advancedWidget->m_pPopupsWithinTabs->isChecked() );
m_pConfig->writeEntry( "TabCloseActivatePrevious", m_advancedWidget->m_pTabCloseActivatePrevious->isChecked() );
m_pConfig->sync();
- // It only matters wether the key is present, its value has no meaning
+ // It only matters whether the key is present, its value has no meaning
m_pConfig->setGroup("Notification Messages");
if ( m_advancedWidget->m_pTabConfirm->isChecked() ) m_pConfig->deleteEntry( "MultipleTabConfirm" );
else m_pConfig->writeEntry( "MultipleTabConfirm", true );
@@ -110,11 +117,19 @@ void advancedTabDialog::save()
kapp->dcopClient()->attach();
TDEApplication::kApplication()->dcopClient()->send( "konqueror*", "KonquerorIface", "reparseConfiguration()", data );
+ if ( m_advancedWidget->m_pPermanentCloseButton->isChecked() )
+ m_advancedWidget->m_pHoverCloseButton->setEnabled(false);
+ else
+ m_advancedWidget->m_pHoverCloseButton->setEnabled(true);
actionButton(Apply)->setEnabled(false);
}
void advancedTabDialog::changed()
{
+ if ( m_advancedWidget->m_pPermanentCloseButton->isChecked() )
+ m_advancedWidget->m_pHoverCloseButton->setEnabled(false);
+ else
+ m_advancedWidget->m_pHoverCloseButton->setEnabled(true);
actionButton(Apply)->setEnabled(true);
}