This is consistent with the naming scheme in KFileItemModel and KDirLister.
-void FoldersPanel::setHiddenFilesShown(bool show)
+void FoldersPanel::setShowHiddenFiles(bool show)
{
FoldersPanelSettings::setHiddenFilesShown(show);
fileItemModel()->setShowHiddenFiles(show);
}
{
FoldersPanelSettings::setHiddenFilesShown(show);
fileItemModel()->setShowHiddenFiles(show);
}
-bool FoldersPanel::hiddenFilesShown() const
+bool FoldersPanel::showHiddenFiles() const
{
return FoldersPanelSettings::hiddenFilesShown();
}
{
return FoldersPanelSettings::hiddenFilesShown();
}
FoldersPanel(QWidget* parent = 0);
virtual ~FoldersPanel();
FoldersPanel(QWidget* parent = 0);
virtual ~FoldersPanel();
- void setHiddenFilesShown(bool show);
- bool hiddenFilesShown() const;
+ void setShowHiddenFiles(bool show);
+ bool showHiddenFiles() const;
void setAutoScrolling(bool enable);
bool autoScrolling() const;
void setAutoScrolling(bool enable);
bool autoScrolling() const;
if (m_fileItem.isNull()) {
QAction* showHiddenFilesAction = new QAction(i18nc("@action:inmenu", "Show Hidden Files"), this);
showHiddenFilesAction->setCheckable(true);
if (m_fileItem.isNull()) {
QAction* showHiddenFilesAction = new QAction(i18nc("@action:inmenu", "Show Hidden Files"), this);
showHiddenFilesAction->setCheckable(true);
- showHiddenFilesAction->setChecked(m_parent->hiddenFilesShown());
+ showHiddenFilesAction->setChecked(m_parent->showHiddenFiles());
popup->addAction(showHiddenFilesAction);
connect(showHiddenFilesAction, SIGNAL(toggled(bool)), this, SLOT(setShowHiddenFiles(bool)));
popup->addAction(showHiddenFilesAction);
connect(showHiddenFilesAction, SIGNAL(toggled(bool)), this, SLOT(setShowHiddenFiles(bool)));
void TreeViewContextMenu::setShowHiddenFiles(bool show)
{
void TreeViewContextMenu::setShowHiddenFiles(bool show)
{
- m_parent->setHiddenFilesShown(show);
+ m_parent->setShowHiddenFiles(show);
}
void TreeViewContextMenu::setAutoScrolling(bool enable)
}
void TreeViewContextMenu::setAutoScrolling(bool enable)