[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: [kate] part/document: support replace-tabs in config interface
From:       Dominik Haumann <dhdev () gmx ! de>
Date:       2012-01-21 10:52:36
Message-ID: 201201211152.36620.dhdev () gmx ! de
[Download RAW message or body]

Please adapt the API documentation in ktexteditor/configinterface.h 
accordingly.

Thanks,
Dominik

On Friday, 20. January 2012, Milian Wolff wrote:
> Git commit 7f71b032be9aee12a3666565984f01fa671e7098 by Milian Wolff.
> Committed on 20/01/2012 at 17:36.
> Pushed by mwolff into branch 'master'.
> 
> support replace-tabs in config interface
> 
> meh, this should *really* be extended properly...
> 
> in KDevelop this is needed to prevent e.g. tabs inserted
> from our source formatter (e.g. astyle) to be dynamically
> replaced by spaces again from kate...
> 
> M  +4    -0    part/document/katedocument.cpp
> 
> http://commits.kde.org/kate/7f71b032be9aee12a3666565984f01fa671e7098
> 
> diff --git a/part/document/katedocument.cpp
> b/part/document/katedocument.cpp index c4c0963..a852024 100644
> --- a/part/document/katedocument.cpp
> +++ b/part/document/katedocument.cpp
> @@ -4670,6 +4670,8 @@ QVariant KateDocument::configValue(const QString
> &key) return m_config->backupSuffix();
>    } else if (key == "backup-on-save-prefix") {
>      return m_config->backupPrefix();
> +  } else if (key == "replace-tabs") {
> +    return m_config->replaceTabsDyn();
>    }
> 
>    // return invalid variant
> @@ -4706,6 +4708,8 @@ void KateDocument::setConfigValue(const QString
> &key, const QVariant &value) }
> 
>        m_config->setBackupFlags(f);
> +    } else if (key == "replace-tabs") {
> +      m_config->setReplaceTabsDyn(bValue);
>      }
>    }
>  }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic