Browse Source

Remove broken/unused old fullscreen toggle code

"componentPostInitalize" is misspelled, thus not overriding
componentPostInitialize. Instead, toggling fullscreen got reimplemented
in KonvergoWindow.cpp instead.
Vincent Lang 8 years ago
parent
commit
330d25180f
2 changed files with 0 additions and 16 deletions
  1. 0 12
      src/settings/SettingsComponent.cpp
  2. 0 4
      src/settings/SettingsComponent.h

+ 0 - 12
src/settings/SettingsComponent.cpp

@@ -18,18 +18,6 @@ SettingsComponent::SettingsComponent(QObject *parent) : ComponentBase(parent), m
 {
 }
 
-/////////////////////////////////////////////////////////////////////////////////////////
-void SettingsComponent::componentPostInitalize()
-{
-  InputComponent::Get().registerHostCommand("fullscreen", this, "toggleFullScreen");
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-void SettingsComponent::toggleFullScreen(const QString& args)
-{
-  setValue(SETTINGS_SECTION_MAIN, "fullscreen", !value(SETTINGS_SECTION_MAIN, "fullscreen").toBool());
-}
-
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 void SettingsComponent::updatePossibleValues(const QString &sectionID, const QString &key, const QVariantList &possibleValues)
 {

+ 0 - 4
src/settings/SettingsComponent.h

@@ -33,7 +33,6 @@ class SettingsComponent : public ComponentBase
 
 public:
   bool componentInitialize() override;
-  void componentPostInitalize();
 
   const char* componentName() override { return "settings"; }
   bool componentExport() override { return true; }
@@ -52,9 +51,6 @@ public:
   Q_INVOKABLE void resetToDefault();
   Q_INVOKABLE QVariantList settingDescriptions();
 
-  // host commands
-  Q_SLOT void toggleFullScreen(const QString& args);
-
   void updatePossibleValues(const QString& sectionID, const QString& key, const QVariantList& possibleValues);
 
   void saveSettings();