Remove method for hiding shortcut column in ProfileSettings

Konsole::Part was the only user of that method, but since 5168fa3c24
this whole dialog can't be opened from the Part.
wilder
Ahmad Samir 4 years ago committed by Kurt Hindenburg
parent 0cf9567117
commit 6cade8efa4
  1. 5
      src/settings/ProfileSettings.cpp
  2. 11
      src/settings/ProfileSettings.h

@ -196,8 +196,3 @@ bool ProfileSettings::isProfileWritable(Profile::Ptr profile) const
return profile && !profile->isBuiltin() // Built-in profile is hardcoded and never stored.
&& QFileInfo(profile->path()).isWritable();
}
void ProfileSettings::setShortcutEditorVisible(bool visible)
{
profileListView->setColumnHidden(ProfileModel::SHORTCUT, !visible);
}

@ -43,17 +43,6 @@ public:
explicit ProfileSettings(QWidget *parent = nullptr);
~ProfileSettings() override;
/**
* Specifies whether the shortcut editor should be show.
* The shortcut editor allows shortcuts to be associated with
* profiles. When a shortcut is changed, the dialog will call
* SessionManager::instance()->setShortcut() to update the shortcut
* associated with the profile.
*
* By default the editor is visible.
*/
void setShortcutEditorVisible(bool visible);
private Q_SLOTS:
friend class MainWindow;
void slotAccepted();

Loading…
Cancel
Save