|
Lines 193-198
Link Here
|
| 193 |
gbWidgetStyleLayout->addWidget( cbTearOffHandles ); |
193 |
gbWidgetStyleLayout->addWidget( cbTearOffHandles ); |
| 194 |
cbTearOffHandles->hide(); // reenable when the corresponding Qt method is virtual and properly reimplemented |
194 |
cbTearOffHandles->hide(); // reenable when the corresponding Qt method is virtual and properly reimplemented |
| 195 |
|
195 |
|
|
|
196 |
gbWidgetStyleLayout->addSpacing(10); |
| 197 |
|
| 198 |
m_popupMenuDelay = new KIntNumInput(250, gbWidgetStyle); |
| 199 |
m_popupMenuDelay->setLabel(i18n("Menu popup delay:")); |
| 200 |
m_popupMenuDelay->setRange(0, 5000, 50); |
| 201 |
m_popupMenuDelay->setSuffix(i18n(" msec")); |
| 202 |
m_popupMenuDelay->setSteps(50, 50); |
| 203 |
gbWidgetStyleLayout->addWidget(m_popupMenuDelay); |
| 204 |
|
| 205 |
gbWidgetStyleLayout->addSpacing(10); |
| 206 |
|
| 196 |
TQGroupBox *gbPreview = new TQGroupBox( i18n( "Preview" ), page1 ); |
207 |
TQGroupBox *gbPreview = new TQGroupBox( i18n( "Preview" ), page1 ); |
| 197 |
gbPreview->setColumnLayout( 0, Qt::Vertical ); |
208 |
gbPreview->setColumnLayout( 0, Qt::Vertical ); |
| 198 |
gbPreview->layout()->setMargin( 0 ); |
209 |
gbPreview->layout()->setMargin( 0 ); |
|
Lines 380-386
Link Here
|
| 380 |
connect( comboMenuEffectType, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setStyleDirty())); |
391 |
connect( comboMenuEffectType, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setStyleDirty())); |
| 381 |
connect( slOpacity, TQT_SIGNAL(valueChanged(int)),this, TQT_SLOT(setStyleDirty())); |
392 |
connect( slOpacity, TQT_SIGNAL(valueChanged(int)),this, TQT_SLOT(setStyleDirty())); |
| 382 |
connect( cbMenuShadow, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setStyleDirty())); |
393 |
connect( cbMenuShadow, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setStyleDirty())); |
| 383 |
// Page3 |
394 |
// Page1 & Page3 |
| 384 |
connect( cbHoverButtons, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setToolbarsDirty())); |
395 |
connect( cbHoverButtons, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setToolbarsDirty())); |
| 385 |
connect( cbTransparentToolbars, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setToolbarsDirty())); |
396 |
connect( cbTransparentToolbars, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setToolbarsDirty())); |
| 386 |
connect( cbEnableTooltips, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setEffectsDirty())); |
397 |
connect( cbEnableTooltips, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setEffectsDirty())); |
|
Lines 390-395
Link Here
|
| 390 |
connect( cbMenuAltKeyNavigation,TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setEffectsDirty())); |
401 |
connect( cbMenuAltKeyNavigation,TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setEffectsDirty())); |
| 391 |
connect( cbTearOffHandles, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setEffectsDirty())); |
402 |
connect( cbTearOffHandles, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setEffectsDirty())); |
| 392 |
connect( comboToolbarIcons, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setToolbarsDirty())); |
403 |
connect( comboToolbarIcons, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setToolbarsDirty())); |
|
|
404 |
connect( m_popupMenuDelay, TQT_SIGNAL(valueChanged(int)),this, TQT_SLOT(setStyleDirty())); |
| 393 |
|
405 |
|
| 394 |
addWhatsThis(); |
406 |
addWhatsThis(); |
| 395 |
|
407 |
|
|
Lines 611-616
Link Here
|
| 611 |
settings.writeEntry("/KStyle/Settings/ScrollablePopupMenus", cbScrollablePopupMenus->isChecked() ); |
623 |
settings.writeEntry("/KStyle/Settings/ScrollablePopupMenus", cbScrollablePopupMenus->isChecked() ); |
| 612 |
settings.writeEntry("/KStyle/Settings/AutoHideAccelerators", cbAutoHideAccelerators->isChecked() ); |
624 |
settings.writeEntry("/KStyle/Settings/AutoHideAccelerators", cbAutoHideAccelerators->isChecked() ); |
| 613 |
settings.writeEntry("/KStyle/Settings/MenuAltKeyNavigation", cbMenuAltKeyNavigation->isChecked() ); |
625 |
settings.writeEntry("/KStyle/Settings/MenuAltKeyNavigation", cbMenuAltKeyNavigation->isChecked() ); |
|
|
626 |
settings.writeEntry("/KStyle/Settings/PopupMenuDelay", m_popupMenuDelay->value() ); |
| 614 |
} |
627 |
} |
| 615 |
config.writeEntry( "EffectNoTooltip", !cbEnableTooltips->isChecked(), true, true ); |
628 |
config.writeEntry( "EffectNoTooltip", !cbEnableTooltips->isChecked(), true, true ); |
| 616 |
|
629 |
|
|
Lines 1041-1046
Link Here
|
| 1041 |
cbScrollablePopupMenus->setChecked(settings.readBoolEntry("/KStyle/Settings/ScrollablePopupMenus", false)); |
1054 |
cbScrollablePopupMenus->setChecked(settings.readBoolEntry("/KStyle/Settings/ScrollablePopupMenus", false)); |
| 1042 |
cbAutoHideAccelerators->setChecked(settings.readBoolEntry("/KStyle/Settings/AutoHideAccelerators", false)); |
1055 |
cbAutoHideAccelerators->setChecked(settings.readBoolEntry("/KStyle/Settings/AutoHideAccelerators", false)); |
| 1043 |
cbMenuAltKeyNavigation->setChecked(settings.readBoolEntry("/KStyle/Settings/MenuAltKeyNavigation", true)); |
1056 |
cbMenuAltKeyNavigation->setChecked(settings.readBoolEntry("/KStyle/Settings/MenuAltKeyNavigation", true)); |
|
|
1057 |
m_popupMenuDelay->setValue(settings.readNumEntry("/KStyle/Settings/PopupMenuDelay", 250)); |
| 1044 |
|
1058 |
|
| 1045 |
m_bToolbarsDirty = false; |
1059 |
m_bToolbarsDirty = false; |
| 1046 |
} |
1060 |
} |
|
Lines 1118-1123
Link Here
|
| 1118 |
"show so called tear-off handles. If you click them, you get the menu " |
1132 |
"show so called tear-off handles. If you click them, you get the menu " |
| 1119 |
"inside a widget. This can be very helpful when performing " |
1133 |
"inside a widget. This can be very helpful when performing " |
| 1120 |
"the same action multiple times.") ); |
1134 |
"the same action multiple times.") ); |
|
|
1135 |
TQWhatsThis::add( m_popupMenuDelay, i18n( "The menu popup delay is the time " |
| 1136 |
"(in milliseconds) before a selected menu " |
| 1137 |
"or submenu appears.") ); |
| 1121 |
} |
1138 |
} |
| 1122 |
|
1139 |
|
| 1123 |
#include "kcmstyle.moc" |
1140 |
#include "kcmstyle.moc" |