Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-2263

Misworking indentation in the editor in case a friend declaration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 2.1.0
    • Qt Creator 2.0.1
    • Editors
    • None

    Description

      Try to indent the following code with CTRL+I. My experience is that the 'friend class Configuration;' is in wrong position after this action. The project can be compiled and built fine.

      /* This file is part of the Chakra project
      
         Copyright (C) 2010 Lukas Appelhans <l.appelhans@gmx.de>
      
         This program is free software; you can redistribute it and/or
         modify it under the terms of the GNU General Public
         License as published by the Free Software Foundation; either
         version 2 of the License, or (at your option) any later version.
      */
      
      #ifndef AKABEICLIENTBACKEND_H
      #define AKABEICLIENTBACKEND_H
      
      #include "akabeiclient_global.h"
      #include "akabeidatabasehandler.h"
      
      #include <akabeipackage.h>
      #include <akabeibackend.h>
      
      #include <QObject>
      
      class QNetworkAccessManager;
      
      namespace AkabeiClient {
          class Queue;
          class TransactionHandler;
          class AKABEICLIENTSHARED_EXPORT Backend : public QObject
          {
              Q_OBJECT
              Q_DISABLE_COPY(Backend)
          public:
                      friend class Configuration;
      
              static Backend *instance();
              virtual ~Backend();
      
              Akabei::Backend::Status status() const;
      
              void updateDatabase();
      
              DatabaseHandler *localDatabase();
              QList<DatabaseHandler*> databases();
      
              Queue *queue();
              TransactionHandler * transactionHandler();
      
              void setAccessManager(QNetworkAccessManager * manager);
              QNetworkAccessManager *accessManager() const;
      
              Akabei::Backend *backend() const;
      
          public slots:
              void initialize();
      
          signals:
              void statusChanged(Akabei::Backend::Status status);
      
          private:
              Backend(QObject *parent = 0);
              class Private;
              Private *const d;
      
              Q_PRIVATE_SLOT(d, void __k__backendStatusChanged(Akabei::Backend::Status));
          };
      }
      
      #endif
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ckamm Christian Kamm
            lpapp Laszlo Papp
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes