<label context="@label">Show selection toggle</label>
<default>true</default>
</entry>
+ <entry name="ShowToolTips" type="Bool">
+ <label context="@label">Show tooltips</label>
+ <default>false</default>
+ </entry>
<entry name="ShowCopyMoveMenu" type="Bool">
<label context="@label">Show 'Copy To' and 'Move To' commands in context menu</label>
<default>false</default>
applyViewProperties(url);
m_topLayout->addWidget(itemView());
+
+ if (DolphinSettings::instance().generalSettings()->showToolTips()) {
+ // TODO: instantiate ToolTipManager here...
+ }
}
DolphinView::~DolphinView()
m_maxPreviewSize(0),
m_spinBox(0),
m_useFileThumbnails(0),
- m_showSelectionToggle(0)
+ m_showSelectionToggle(0),
+ m_showToolTips(0)
{
const int spacing = KDialog::spacingHint();
const int margin = KDialog::marginHint();
m_showSelectionToggle = new QCheckBox(i18nc("@option:check", "Show selection toggle"), this);
connect(m_showSelectionToggle, SIGNAL(toggled(bool)), this, SIGNAL(changed()));
+ m_showToolTips = new QCheckBox(i18nc("@option:check", "Show tooltips"), this);
+ connect(m_showToolTips, SIGNAL(toggled(bool)), this, SIGNAL(changed()));
+
// Add a dummy widget with no restriction regarding
// a vertical resizing. This assures that the dialog layout
// is not stretched vertically.
globalConfig.sync();
settings->setShowSelectionToggle(m_showSelectionToggle->isChecked());
+ settings->setShowToolTips(m_showToolTips->isChecked());
}
void GeneralViewSettingsPage::restoreDefaults()
m_useFileThumbnails->setChecked(useFileThumbnails);
m_showSelectionToggle->setChecked(settings->showSelectionToggle());
+ m_showToolTips->setChecked(settings->showToolTips());
}
#include "generalviewsettingspage.moc"