Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 2.0.1
-
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