This is for section #13 (Check for proper include directives [includes]) http://englishbreakfastnetwork.org/krazy/reports/kde-4.x/kdeplasma-addons/applets/index.html
It reduces the 62 issues to 2, which I think may be falses positives since I see "config-lancelot.h" and not "Config.h". this patch apply in ~/kdesvn/kdeplasma-addons/applets ------ remaining issues: krazy2 Analysis Checkers Run = 1 Files Processed = 339 Total Issues = 2 ...as of January 13 2009 16:40:48 EST ==>For File Type c++<== 1. Check for proper include directives [includes]... 2 issues found ./lancelot/app/src/QtDisplay.h: put config.h in angle brackets line#24 ./lancelot/app/src/QtDisplay.cpp: put config.h in angle brackets line#22 Use <..> to include installed headers; <QtModule/QClass> to include Qt headers from installed headers; cpp file should include their own headers first (but below config.h); other rules apply, see <http://techbase.kde.org/Policies/Library_Code_Policy#Getting_.23in cludes_right>. Use include guards in headers with appropriatedly encoded macro names. http://lxr.kde.org/source/KDE/kdeplasma-addons/applets/lancelot/app/src/QtDisplay.cpp#22 http://lxr.kde.org/source/KDE/kdeplasma-addons/applets/lancelot/app/src/QtDisplay.h#24 -- Bruno
Index: lancelot/app/src/LancelotWindow.h =================================================================== --- lancelot/app/src/LancelotWindow.h (révision 910278) +++ lancelot/app/src/LancelotWindow.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTWINDOW_H_ -#define LANCELOTWINDOW_H_ +#ifndef LANCELOTWINDOW_H +#define LANCELOTWINDOW_H #include <plasma/svg.h> #include <plasma/plasma.h> @@ -26,6 +26,8 @@ #include <KConfig> #include <KConfigGroup> #include <QEvent> +#include <QTimer> +#include <QSignalMapper> #include <KIcon> #include "LancelotConfig.h" @@ -251,4 +253,4 @@ friend class CustomGraphicsView; }; -#endif /*LANCELOTWINDOW_H_*/ +#endif /*LANCELOTWINDOW_H*/ Index: lancelot/app/src/models/BaseModel.h =================================================================== --- lancelot/app/src/models/BaseModel.h (révision 910278) +++ lancelot/app/src/models/BaseModel.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_BASEMODEL_H_ -#define LANCELOTAPP_MODELS_BASEMODEL_H_ +#ifndef LANCELOTAPP_MODELS_BASEMODEL_H +#define LANCELOTAPP_MODELS_BASEMODEL_H #include <lancelot/models/ActionListViewModels.h> #include <KService> @@ -84,4 +84,4 @@ } // namespace Models -#endif /* LANCELOTAPP_MODELS_BASEMODEL_H_ */ +#endif /* LANCELOTAPP_MODELS_BASEMODEL_H */ Index: lancelot/app/src/models/FolderModel.h =================================================================== --- lancelot/app/src/models/FolderModel.h (révision 910278) +++ lancelot/app/src/models/FolderModel.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_FOLDERMODEL_H_ -#define LANCELOTAPP_MODELS_FOLDERMODEL_H_ +#ifndef LANCELOTAPP_MODELS_FOLDERMODEL_H +#define LANCELOTAPP_MODELS_FOLDERMODEL_H #include "BaseModel.h" #include <QDir> @@ -49,4 +49,4 @@ } // namespace Models -#endif /* LANCELOTAPP_MODELS_FOLDERMODEL_H_ */ +#endif /* LANCELOTAPP_MODELS_FOLDERMODEL_H */ Index: lancelot/app/src/models/RecentDocuments.h =================================================================== --- lancelot/app/src/models/RecentDocuments.h (révision 910278) +++ lancelot/app/src/models/RecentDocuments.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_RECENTDOCUMENTS_H_ -#define LANCELOTAPP_MODELS_RECENTDOCUMENTS_H_ +#ifndef LANCELOTAPP_MODELS_RECENTDOCUMENTS_H +#define LANCELOTAPP_MODELS_RECENTDOCUMENTS_H #include "FolderModel.h" #include <KDirWatch> @@ -34,4 +34,4 @@ } // namespace Models -#endif /* LANCELOTAPP_MODELS_RECENTDOCUMENTS_H_ */ +#endif /* LANCELOTAPP_MODELS_RECENTDOCUMENTS_H */ Index: lancelot/app/src/models/Places.h =================================================================== --- lancelot/app/src/models/Places.h (révision 910278) +++ lancelot/app/src/models/Places.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_PLACES_H_ -#define LANCELOTAPP_MODELS_PLACES_H_ +#ifndef LANCELOTAPP_MODELS_PLACES_H +#define LANCELOTAPP_MODELS_PLACES_H #include "BaseModel.h" @@ -36,4 +36,4 @@ } // namespace Models -#endif /* LANCELOTAPP_MODELS_PLACES_H_ */ +#endif /* LANCELOTAPP_MODELS_PLACES_H */ Index: lancelot/app/src/models/Runner.h =================================================================== --- lancelot/app/src/models/Runner.h (révision 910278) +++ lancelot/app/src/models/Runner.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_RUNNER_H_ -#define LANCELOTAPP_MODELS_RUNNER_H_ +#ifndef LANCELOTAPP_MODELS_RUNNER_H +#define LANCELOTAPP_MODELS_RUNNER_H #include "BaseModel.h" #include <plasma/runnermanager.h> @@ -54,4 +54,4 @@ } // namespace Models -#endif /* LANCELOTAPP_MODELS_DEVICES_H_ */ +#endif /* LANCELOTAPP_MODELS_DEVICES_H */ Index: lancelot/app/src/models/NewDocuments.h =================================================================== --- lancelot/app/src/models/NewDocuments.h (révision 910278) +++ lancelot/app/src/models/NewDocuments.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_NEWDOCUMENTS_H_ -#define LANCELOTAPP_MODELS_NEWDOCUMENTS_H_ +#ifndef LANCELOTAPP_MODELS_NEWDOCUMENTS_H +#define LANCELOTAPP_MODELS_NEWDOCUMENTS_H #include "BaseModel.h" @@ -37,4 +37,4 @@ } // namespace Models -#endif /* LANCELOTAPP_MODELS_NEWDOCUMENTS_H_ */ +#endif /* LANCELOTAPP_MODELS_NEWDOCUMENTS_H */ Index: lancelot/app/src/models/BaseMergedModel.h =================================================================== --- lancelot/app/src/models/BaseMergedModel.h (révision 910278) +++ lancelot/app/src/models/BaseMergedModel.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_BASEMERGEDMODEL_H_ -#define LANCELOTAPP_MODELS_BASEMERGEDMODEL_H_ +#ifndef LANCELOTAPP_MODELS_BASEMERGEDMODEL_H +#define LANCELOTAPP_MODELS_BASEMERGEDMODEL_H #include <lancelot/models/ActionListViewModels.h> @@ -41,4 +41,4 @@ } // namespace Models -#endif // LANCELOTAPP_MODELS_BASEMERGEDMODEL_H_ +#endif // LANCELOTAPP_MODELS_BASEMERGEDMODEL_H Index: lancelot/app/src/models/Devices.h =================================================================== --- lancelot/app/src/models/Devices.h (révision 910278) +++ lancelot/app/src/models/Devices.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_DEVICES_H_ -#define LANCELOTAPP_MODELS_DEVICES_H_ +#ifndef LANCELOTAPP_MODELS_DEVICES_H +#define LANCELOTAPP_MODELS_DEVICES_H #include "BaseModel.h" #include <solid/device.h> @@ -64,4 +64,4 @@ } // namespace Models -#endif /* LANCELOTAPP_MODELS_DEVICES_H_ */ +#endif /* LANCELOTAPP_MODELS_DEVICES_H */ Index: lancelot/app/src/models/OpenDocuments.h =================================================================== --- lancelot/app/src/models/OpenDocuments.h (révision 910278) +++ lancelot/app/src/models/OpenDocuments.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_OPENDOCUMENTS_H_ -#define LANCELOTAPP_MODELS_OPENDOCUMENTS_H_ +#ifndef LANCELOTAPP_MODELS_OPENDOCUMENTS_H +#define LANCELOTAPP_MODELS_OPENDOCUMENTS_H #include "BaseModel.h" #include <taskmanager/taskmanager.h> @@ -63,4 +63,4 @@ } // namespace Models -#endif /* LANCELOTAPP_MODELS_OPENDOCUMENTS_H_ */ +#endif /* LANCELOTAPP_MODELS_OPENDOCUMENTS_H */ Index: lancelot/app/src/models/MessagesKmail.h =================================================================== --- lancelot/app/src/models/MessagesKmail.h (révision 910278) +++ lancelot/app/src/models/MessagesKmail.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_MESSAGESKMAIL_H_ -#define LANCELOTAPP_MODELS_MESSAGESKMAIL_H_ +#ifndef LANCELOTAPP_MODELS_MESSAGESKMAIL_H +#define LANCELOTAPP_MODELS_MESSAGESKMAIL_H #include "kmail_interface.h" #include "kmailfolder_interface.h" @@ -55,6 +55,6 @@ } // namespace Models -#endif // LANCELOTAPP_MODELS_MESSAGESKMAIL_H_ +#endif // LANCELOTAPP_MODELS_MESSAGESKMAIL_H Index: lancelot/app/src/models/FavoriteApplications.h =================================================================== --- lancelot/app/src/models/FavoriteApplications.h (révision 910278) +++ lancelot/app/src/models/FavoriteApplications.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_FAVORITE_APPLICATIONS_H_ -#define LANCELOTAPP_MODELS_FAVORITE_APPLICATIONS_H_ +#ifndef LANCELOTAPP_MODELS_FAVORITE_APPLICATIONS_H +#define LANCELOTAPP_MODELS_FAVORITE_APPLICATIONS_H #include "BaseModel.h" #include <lancelot/models/PassagewayViewModels.h> @@ -58,4 +58,4 @@ } // namespace Models -#endif /* LANCELOTAPP_MODELS_FAVORITE_APPLICATIONS_H_ */ +#endif /* LANCELOTAPP_MODELS_FAVORITE_APPLICATIONS_H */ Index: lancelot/app/src/models/ContactsKopete.h =================================================================== --- lancelot/app/src/models/ContactsKopete.h (révision 910278) +++ lancelot/app/src/models/ContactsKopete.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_CONTACTSKOPETE_H_ -#define LANCELOTAPP_MODELS_CONTACTSKOPETE_H_ +#ifndef LANCELOTAPP_MODELS_CONTACTSKOPETE_H +#define LANCELOTAPP_MODELS_CONTACTSKOPETE_H #include "kopete_interface.h" #include "BaseModel.h" @@ -46,6 +46,6 @@ } // namespace Models -#endif // LANCELOTAPP_MODELS_CONTACTSKOPETE_H_ +#endif // LANCELOTAPP_MODELS_CONTACTSKOPETE_H Index: lancelot/app/src/models/Applications.h =================================================================== --- lancelot/app/src/models/Applications.h (révision 910278) +++ lancelot/app/src/models/Applications.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_APPLICATIONS_H_ -#define LANCELOTAPP_MODELS_APPLICATIONS_H_ +#ifndef LANCELOTAPP_MODELS_APPLICATIONS_H +#define LANCELOTAPP_MODELS_APPLICATIONS_H #include "BaseModel.h" #include <lancelot/models/PassagewayViewModels.h> @@ -78,4 +78,4 @@ } // namespace Models -#endif /* LANCELOTAPP_MODELS_APPLICATIONS_H_ */ +#endif /* LANCELOTAPP_MODELS_APPLICATIONS_H */ Index: lancelot/app/src/models/SystemServices.h =================================================================== --- lancelot/app/src/models/SystemServices.h (révision 910278) +++ lancelot/app/src/models/SystemServices.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_MODELS_SYSTEMSERVICES_H_ -#define LANCELOTAPP_MODELS_SYSTEMSERVICES_H_ +#ifndef LANCELOTAPP_MODELS_SYSTEMSERVICES_H +#define LANCELOTAPP_MODELS_SYSTEMSERVICES_H #include "BaseModel.h" @@ -37,4 +37,4 @@ } -#endif /* LANCELOTAPP_MODELS_SYSTEMSERVICES_H_ */ +#endif /* LANCELOTAPP_MODELS_SYSTEMSERVICES_H */ Index: lancelot/app/src/parts/LancelotPartConfig.h =================================================================== --- lancelot/app/src/parts/LancelotPartConfig.h (révision 910278) +++ lancelot/app/src/parts/LancelotPartConfig.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_LAUNCHER_APPLET_CONFIG_H_ -#define LANCELOT_LAUNCHER_APPLET_CONFIG_H_ +#ifndef LANCELOT_PART_CONFIG_H +#define LANCELOT_PART_CONFIG_H #include <ui_LancelotPartConfigBase.h> #include <lancelot/lancelot.h> Index: lancelot/app/src/parts/PartsMergedModel.h =================================================================== --- lancelot/app/src/parts/PartsMergedModel.h (révision 910278) +++ lancelot/app/src/parts/PartsMergedModel.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTPARTS_MODELS_PARTSMERGEDMODEL_H_ -#define LANCELOTPARTS_MODELS_PARTSMERGEDMODEL_H_ +#ifndef LANCELOTPARTS_MODELS_PARTSMERGEDMODEL_H +#define LANCELOTPARTS_MODELS_PARTSMERGEDMODEL_H #include "../models/BaseMergedModel.h" @@ -43,6 +43,6 @@ } // namespace Models -#endif // LANCELOTPARTS_MODELS_PARTSMERGEDMODEL_H_ +#endif // LANCELOTPARTS_MODELS_PARTSMERGEDMODEL_H Index: lancelot/app/src/AboutData.h =================================================================== --- lancelot/app/src/AboutData.h (révision 910278) +++ lancelot/app/src/AboutData.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPP_ABOUT_DATA_H_ -#define LANCELOTAPP_ABOUT_DATA_H_ +#ifndef LANCELOTAPP_ABOUT_DATA_H +#define LANCELOTAPP_ABOUT_DATA_H #include <KAboutData> @@ -27,6 +27,6 @@ AboutData(); }; -#endif // LANCELOTAPP_ABOUT_DATA_H_ +#endif // LANCELOTAPP_ABOUT_DATA_H Index: lancelot/app/src/Serializator.h =================================================================== --- lancelot/app/src/Serializator.h (révision 910278) +++ lancelot/app/src/Serializator.h (copie de travail) @@ -17,6 +17,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#ifndef LANCELOT_SERIALIZATOR_H +#define LANCELOT_SERIALIZATOR_H + #include <QMap> class Serializator { @@ -24,4 +27,4 @@ static QString serialize(const QMap < QString , QString > data); static QMap < QString , QString > deserialize(const QString & data); }; - +#endif /* LANCELOT_SERIALIZATOR_H */ Index: lancelot/app/src/launcher/LancelotAppletConfig.h =================================================================== --- lancelot/app/src/launcher/LancelotAppletConfig.h (révision 910278) +++ lancelot/app/src/launcher/LancelotAppletConfig.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_LAUNCHER_APPLET_CONFIG_H_ -#define LANCELOT_LAUNCHER_APPLET_CONFIG_H_ +#ifndef LANCELOT_APPLET_CONFIG_H +#define LANCELOT_APPLET_CONFIG_H #include <ui_LancelotAppletConfigBase.h> Index: lancelot/app/src/launcher/LancelotApplet.h =================================================================== --- lancelot/app/src/launcher/LancelotApplet.h (révision 910278) +++ lancelot/app/src/launcher/LancelotApplet.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_LAUNCHER_APPLET_H_ -#define LANCELOT_LAUNCHER_APPLET_H_ +#ifndef LANCELOT_APPLET_H +#define LANCELOT_APPLET_H #include <plasma/applet.h> #include <KConfigDialog> Index: lancelot/app/src/LancelotApplication.cpp =================================================================== --- lancelot/app/src/LancelotApplication.cpp (révision 910278) +++ lancelot/app/src/LancelotApplication.cpp (copie de travail) @@ -17,6 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include "LancelotApplication.h" + #include <kcmdlineargs.h> #include <kaboutdata.h> #include <KLocale> @@ -25,12 +27,10 @@ #include <QtDBus> #include <KAction> -#include <KLocale> #include <KCrash> #include <lancelot/Global.h> #include "LancelotWindow.h" -#include "LancelotApplication.h" #include "models/BaseModel.h" #include "lancelotadaptor.h" Index: lancelot/app/src/LancelotWindow.cpp =================================================================== --- lancelot/app/src/LancelotWindow.cpp (révision 910278) +++ lancelot/app/src/LancelotWindow.cpp (copie de travail) @@ -22,6 +22,8 @@ #include <QGraphicsItem> #include <QStyleOptionGraphicsItem> +#include <QGraphicsView> +#include <QDesktopWidget> #include <KRecentDocument> #include <KActionCollection> Index: lancelot/app/src/LancelotApplication.h =================================================================== --- lancelot/app/src/LancelotApplication.h (révision 910278) +++ lancelot/app/src/LancelotApplication.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPPLICATION_H_ -#define LANCELOTAPPLICATION_H_ +#ifndef LANCELOTAPPLICATION_H +#define LANCELOTAPPLICATION_H #include <kuniqueapplication.h> #include <QTimer> @@ -81,4 +81,4 @@ }; -#endif /*LANCELOTAPPLICATION_H_*/ +#endif /*LANCELOTAPPLICATION_H*/ Index: lancelot/app/src/LancelotConfig.h =================================================================== --- lancelot/app/src/LancelotConfig.h (révision 910278) +++ lancelot/app/src/LancelotConfig.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTCONFIG_H_ -#define LANCELOTCONFIG_H_ +#ifndef LANCELOTCONFIG_H +#define LANCELOTCONFIG_H #include "ui_LancelotConfigBase.h" #include <KConfig> @@ -56,6 +56,6 @@ KConfigGroup m_mainConfig; }; -#endif // LANCELOTCONFIG_H_ +#endif // LANCELOTCONFIG_H Index: lancelot/tools/puck/generator/hacks/qgraphicslayoutitem.h =================================================================== --- lancelot/tools/puck/generator/hacks/qgraphicslayoutitem.h (révision 910278) +++ lancelot/tools/puck/generator/hacks/qgraphicslayoutitem.h (copie de travail) @@ -1,3 +1,5 @@ +#ifndef LANCELOT_QGRAPHICS_LAYOUT_ITEM_H +#define LANCELOT_QGRAPHICS_LAYOUT_ITEM_H class Q_GUI_EXPORT QGraphicsLayoutItem { @@ -13,5 +15,5 @@ Q_PROPERTY ( qreal preferredWidth READ preferredWidth WRITE setPreferredWidth ) Q_PROPERTY ( qreal preferredHeight READ preferredHeight WRITE setPreferredHeight ) -} - +}; +#endif /* LANCELOT_QGRAPHICS_LAYOUT_ITEM_H */ Index: lancelot/tools/puck/generator/hacks/qgraphicslayout.h =================================================================== --- lancelot/tools/puck/generator/hacks/qgraphicslayout.h (révision 910278) +++ lancelot/tools/puck/generator/hacks/qgraphicslayout.h (copie de travail) @@ -1,3 +1,5 @@ +#ifndef LANCELOT_QGRAPHICS_LAYOUT_H +#define LANCELOT_QGRAPHICS_LAYOUT_H class Q_GUI_EXPORT QGraphicsLayout : public QGraphicsLayoutItem { @@ -3,2 +5,3 @@ }; +#endif /* LANCELOT_QGRAPHICS_LAYOUT_H */ Index: lancelot/tools/puck/generator/hacks/qgraphicswidget.h =================================================================== --- lancelot/tools/puck/generator/hacks/qgraphicswidget.h (révision 910278) +++ lancelot/tools/puck/generator/hacks/qgraphicswidget.h (copie de travail) @@ -1,3 +1,5 @@ +#ifndef LANCELOT_QGRAPHICS_WIDGET_H +#define LANCELOT_QGRAPHICS_WIDGET_H class Q_GUI_EXPORT QGraphicsWidget : public QGraphicsLayoutItem { @@ -11,4 +13,5 @@ Q_PROPERTY(bool visible READ isVisible WRITE setVisible) Q_PROPERTY(Qt::WindowFlags windowFlags READ windowFlags WRITE setWindowFlags) Q_PROPERTY(QString windowTitle READ windowTitle WRITE setWindowTitle) -} +}; +#endif /* LANCELOT_QGRAPHICS_WIDGET_H */ Index: lancelot/libs/lancelot/layouts/ColumnLayout.h =================================================================== --- lancelot/libs/lancelot/layouts/ColumnLayout.h (révision 910278) +++ lancelot/libs/lancelot/layouts/ColumnLayout.h (copie de travail) @@ -17,12 +17,12 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_COLUMN_LAYOUT_H_ -#define LANCELOT_COLUMN_LAYOUT_H_ +#ifndef LANCELOT_COLUMN_LAYOUT_H +#define LANCELOT_COLUMN_LAYOUT_H #include <lancelot/lancelot_export.h> -#include <QGraphicsLayoutItem> -#include <QGraphicsLayout> +#include <QtGui/QGraphicsLayoutItem> +#include <QtGui/QGraphicsLayout> namespace Lancelot { @@ -149,5 +149,5 @@ } // namespace Lancelot -#endif /* LANCELOT_COLUMN_LAYOUT_H_ */ +#endif /* LANCELOT_COLUMN_LAYOUT_H */ Index: lancelot/libs/lancelot/layouts/FullBorderLayout.h =================================================================== --- lancelot/libs/lancelot/layouts/FullBorderLayout.h (révision 910278) +++ lancelot/libs/lancelot/layouts/FullBorderLayout.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_FULL_BORDER_LAYOUT_H_ -#define LANCELOT_FULL_BORDER_LAYOUT_H_ +#ifndef LANCELOT_FULL_BORDER_LAYOUT_H +#define LANCELOT_FULL_BORDER_LAYOUT_H #include <lancelot/lancelot_export.h> @@ -130,5 +130,5 @@ } // namespace Lancelot -#endif /* LANCELOT_FULL_BORDER_LAYOUT_H_ */ +#endif /* LANCELOT_FULL_BORDER_LAYOUT_H */ Index: lancelot/libs/lancelot/layouts/NodeLayout.h =================================================================== --- lancelot/libs/lancelot/layouts/NodeLayout.h (révision 910278) +++ lancelot/libs/lancelot/layouts/NodeLayout.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_NODE_LAYOUT_H_ -#define LANCELOT_NODE_LAYOUT_H_ +#ifndef LANCELOT_NODE_LAYOUT_H +#define LANCELOT_NODE_LAYOUT_H #include <QtCore/QMap> #include <cmath> @@ -116,5 +116,5 @@ } // namespace Lancelot -#endif /* LANCELOT_NODE_LAYOUT_H_ */ +#endif /* LANCELOT_NODE_LAYOUT_H */ Index: lancelot/libs/lancelot/layouts/CardLayout.h =================================================================== --- lancelot/libs/lancelot/layouts/CardLayout.h (révision 910278) +++ lancelot/libs/lancelot/layouts/CardLayout.h (copie de travail) @@ -17,17 +17,17 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_CARD_LAYOUT_H_ -#define LANCELOT_CARD_LAYOUT_H_ +#ifndef LANCELOT_CARD_LAYOUT_H +#define LANCELOT_CARD_LAYOUT_H #include <lancelot/lancelot_export.h> #include <cmath> -#include <QMap> +#include <QtCore/QMap> -#include <QGraphicsLayout> -#include <QGraphicsLayoutItem> -#include <QGraphicsWidget> +#include <QtGui/QGraphicsLayout> +#include <QtGui/QGraphicsLayoutItem> +#include <QtGui/QGraphicsWidget> namespace Lancelot { @@ -98,5 +98,5 @@ } // namespace Lancelot -#endif /* LANCELOT_CARD_LAYOUT_H_ */ +#endif /* LANCELOT_CARD_LAYOUT_H */ Index: lancelot/libs/lancelot/layouts/FlipLayout.h =================================================================== --- lancelot/libs/lancelot/layouts/FlipLayout.h (révision 910278) +++ lancelot/libs/lancelot/layouts/FlipLayout.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_FLIP_LAYOUT_H_ -#define LANCELOT_FLIP_LAYOUT_H_ +#ifndef LANCELOT_FLIP_LAYOUT_H +#define LANCELOT_FLIP_LAYOUT_H #include <QGraphicsLayoutItem> #include <QGraphicsLayout> @@ -114,5 +114,5 @@ } // namespace Lancelot -#endif /* LANCELOT_FLIP_LAYOUT_H_ */ +#endif /* LANCELOT_FLIP_LAYOUT_H */ Index: lancelot/libs/lancelot/tests/LancelotTestWindow.h =================================================================== --- lancelot/libs/lancelot/tests/LancelotTestWindow.h (révision 910278) +++ lancelot/libs/lancelot/tests/LancelotTestWindow.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTWINDOW_H_ -#define LANCELOTWINDOW_H_ +#ifndef LANCELOT_TEST_WINDOW_H +#define LANCELOT_TEST_WINDOW_H #include <plasma/svg.h> #include <plasma/plasma.h> @@ -44,4 +44,4 @@ friend class CustomGraphicsView; }; -#endif /*LANCELOTWINDOW_H_*/ +#endif /*LANCELOT_TEST_WINDOW_H*/ Index: lancelot/libs/lancelot/tests/LancelotTestApplication.cpp =================================================================== --- lancelot/libs/lancelot/tests/LancelotTestApplication.cpp (révision 910278) +++ lancelot/libs/lancelot/tests/LancelotTestApplication.cpp (copie de travail) @@ -17,6 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include "LancelotTestApplication.h" + #include <kcmdlineargs.h> #include <kaboutdata.h> #include <KDebug> @@ -27,7 +29,6 @@ #include <lancelot/Global.h> #include "LancelotTestWindow.h" -#include "LancelotTestApplication.h" LancelotTestApplication * LancelotTestApplication::m_application = NULL; Index: lancelot/libs/lancelot/tests/LancelotTestApplication.h =================================================================== --- lancelot/libs/lancelot/tests/LancelotTestApplication.h (révision 910278) +++ lancelot/libs/lancelot/tests/LancelotTestApplication.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOTAPPLICATION_H_ -#define LANCELOTAPPLICATION_H_ +#ifndef LANCELOT_TEST_APPLICATION_H +#define LANCELOT_TEST_APPLICATION_H #include <kuniqueapplication.h> #include <QTimer> @@ -46,4 +46,4 @@ }; -#endif /*LANCELOTAPPLICATION_H_*/ +#endif /*LANCELOT_TEST_APPLICATION_H*/ Index: lancelot/libs/lancelot/models/PassagewayViewModels.h =================================================================== --- lancelot/libs/lancelot/models/PassagewayViewModels.h (révision 910278) +++ lancelot/libs/lancelot/models/PassagewayViewModels.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_PASSAGEWAY_VIEW_MODELS_H_ -#define LANCELOT_PASSAGEWAY_VIEW_MODELS_H_ +#ifndef LANCELOT_PASSAGEWAY_VIEW_MODELS_H +#define LANCELOT_PASSAGEWAY_VIEW_MODELS_H #include <lancelot/lancelot_export.h> @@ -84,5 +84,5 @@ } // namespace Lancelot -#endif /* LANCELOT_PASSAGEWAY_VIEW_MODELS_H_ */ +#endif /* LANCELOT_PASSAGEWAY_VIEW_MODELS_H */ Index: lancelot/libs/lancelot/models/ActionListViewModels.h =================================================================== --- lancelot/libs/lancelot/models/ActionListViewModels.h (révision 910278) +++ lancelot/libs/lancelot/models/ActionListViewModels.h (copie de travail) @@ -17,18 +17,18 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_ACTION_LIST_VIEW_MODELS_H_ -#define LANCELOT_ACTION_LIST_VIEW_MODELS_H_ +#ifndef LANCELOT_ACTION_LIST_VIEW_MODELS_H +#define LANCELOT_ACTION_LIST_VIEW_MODELS_H #include <lancelot/lancelot_export.h> -#include <QPair> -#include <QMimeData> -#include <QString> -#include <QIcon> -#include <QVariant> -#include <QMenu> -#include <QAction> +#include <QtCore/QPair> +#include <QtCore/QMimeData> +#include <QtCore/QString> +#include <QtGui/QIcon> +#include <QtCore/QVariant> +#include <QtGui/QMenu> +#include <QtGui/QAction> namespace Lancelot { @@ -419,5 +419,5 @@ } // namespace Lancelot -#endif /* LANCELOT_ACTION_LIST_VIEW_MODELS_H_ */ +#endif /* LANCELOT_ACTION_LIST_VIEW_MODELS_H */ Index: lancelot/libs/lancelot/widgets/PassagewayView.cpp =================================================================== --- lancelot/libs/lancelot/widgets/PassagewayView.cpp (révision 910278) +++ lancelot/libs/lancelot/widgets/PassagewayView.cpp (copie de travail) @@ -20,6 +20,9 @@ #include "PassagewayView.h" #include <QWidget> +#include <QGraphicsSceneMouseEvent> +#include <QGraphicsView> +#include <QApplication> namespace Lancelot { Index: lancelot/libs/lancelot/widgets/HoverIcon.h =================================================================== --- lancelot/libs/lancelot/widgets/HoverIcon.h (révision 910278) +++ lancelot/libs/lancelot/widgets/HoverIcon.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_HOVER_ICON_H_ -#define LANCELOT_HOVER_ICON_H_ +#ifndef LANCELOT_HOVER_ICON_H +#define LANCELOT_HOVER_ICON_H #include <plasma/widgets/iconwidget.h> #include <lancelot/lancelot.h> @@ -98,6 +98,6 @@ } // namespace Lancelot -#endif /* LANCELOT_HOVER_ICON_H_ */ +#endif /* LANCELOT_HOVER_ICON_H */ Index: lancelot/libs/lancelot/widgets/ResizeBordersPanel.cpp =================================================================== --- lancelot/libs/lancelot/widgets/ResizeBordersPanel.cpp (révision 910278) +++ lancelot/libs/lancelot/widgets/ResizeBordersPanel.cpp (copie de travail) @@ -17,9 +17,10 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include "ResizeBordersPanel.h" + #include <KDebug> -#include "ResizeBordersPanel.h" #include "Widget.h" #define COLOR 255,0,0 Index: lancelot/libs/lancelot/widgets/ScrollPane.cpp =================================================================== --- lancelot/libs/lancelot/widgets/ScrollPane.cpp (révision 910278) +++ lancelot/libs/lancelot/widgets/ScrollPane.cpp (copie de travail) @@ -17,9 +17,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include "ScrollPane.h" + #include <KDebug> +#include <QGraphicsSceneWheelEvent> -#include "ScrollPane.h" #include "ScrollBar.h" #include "Widget.h" #include <lancelot/layouts/FullBorderLayout.h> Index: lancelot/libs/lancelot/widgets/Panel.h =================================================================== --- lancelot/libs/lancelot/widgets/Panel.h (révision 910278) +++ lancelot/libs/lancelot/widgets/Panel.h (copie de travail) @@ -17,15 +17,15 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_PANEL_H_ -#define LANCELOT_PANEL_H_ +#ifndef LANCELOT_PANEL_H +#define LANCELOT_PANEL_H #include <lancelot/lancelot_export.h> #include <plasma/plasma.h> #include <lancelot/widgets/Widget.h> -#include <QIcon> +#include <QtGui/QIcon> namespace Lancelot { @@ -141,5 +141,5 @@ } // namespace Lancelot -#endif /* LANCELOT_PANEL_H_*/ +#endif /* LANCELOT_PANEL_H */ Index: lancelot/libs/lancelot/widgets/PassagewayView.h =================================================================== --- lancelot/libs/lancelot/widgets/PassagewayView.h (révision 910278) +++ lancelot/libs/lancelot/widgets/PassagewayView.h (copie de travail) @@ -17,14 +17,14 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_PASSAGEWAY_VIEW_H_ -#define LANCELOT_PASSAGEWAY_VIEW_H_ +#ifndef LANCELOT_PASSAGEWAY_VIEW_H +#define LANCELOT_PASSAGEWAY_VIEW_H #include <lancelot/lancelot.h> #include <lancelot/lancelot_export.h> #include <lancelot/widgets/Widget.h> -#include <QIcon> +#include <QtGui/QIcon> #include <lancelot/widgets/Panel.h> #include <lancelot/widgets/ActionListView.h> @@ -35,7 +35,7 @@ #include <lancelot/models/ActionListViewModels.h> #include <lancelot/layouts/NodeLayout.h> -#include <QGraphicsLinearLayout> +#include <QtGui/QGraphicsLinearLayout> namespace Lancelot { @@ -91,5 +91,5 @@ } // namespace Lancelot -#endif /* LANCELOT_PASSAGEWAY_VIEW_H_ */ +#endif /* LANCELOT_PASSAGEWAY_VIEW_H */ Index: lancelot/libs/lancelot/widgets/WidgetPositioner.h =================================================================== --- lancelot/libs/lancelot/widgets/WidgetPositioner.h (révision 910278) +++ lancelot/libs/lancelot/widgets/WidgetPositioner.h (copie de travail) @@ -17,14 +17,14 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_WIDGET_POSITIONER_H_ -#define LANCELOT_WIDGET_POSITIONER_H_ +#ifndef LANCELOT_WIDGET_POSITIONER_H +#define LANCELOT_WIDGET_POSITIONER_H #include <lancelot/lancelot_export.h> #include <lancelot/widgets/Widget.h> -#include <QWidget> -#include <QGraphicsView> +#include <QtGui/QWidget> +#include <QtGui/QGraphicsView> namespace Lancelot { @@ -56,5 +56,5 @@ } // namespace Lancelot -#endif /* LANCELOT_WIDGET_POSITIONER_H_ */ +#endif /* LANCELOT_WIDGET_POSITIONER_H */ Index: lancelot/libs/lancelot/widgets/CustomListView.h =================================================================== --- lancelot/libs/lancelot/widgets/CustomListView.h (révision 910278) +++ lancelot/libs/lancelot/widgets/CustomListView.h (copie de travail) @@ -17,13 +17,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_CUSTOM_LIST_VIEW_H_ -#define LANCELOT_CUSTOM_LIST_VIEW_H_ +#ifndef LANCELOT_CUSTOM_LIST_VIEW_H +#define LANCELOT_CUSTOM_LIST_VIEW_H #include <lancelot/lancelot_export.h> -#include <QtGui> -#include <QtCore> #include <KDebug> #include <KIcon> @@ -163,5 +161,5 @@ } // namespace Lancelot -#endif /* LANCELOT_CUSTOM_LIST_VIEW_H_ */ +#endif /* LANCELOT_CUSTOM_LIST_VIEW_H */ Index: lancelot/libs/lancelot/widgets/ResizeBordersPanel.h =================================================================== --- lancelot/libs/lancelot/widgets/ResizeBordersPanel.h (révision 910278) +++ lancelot/libs/lancelot/widgets/ResizeBordersPanel.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_RESIZE_BORDERS_PANEL_H_ -#define LANCELOT_RESIZE_BORDERS_PANEL_H_ +#ifndef LANCELOT_RESIZE_BORDERS_PANEL_H +#define LANCELOT_RESIZE_BORDERS_PANEL_H #include <lancelot/lancelot_export.h> @@ -58,5 +58,5 @@ } // namespace Lancelot -#endif // LANCELOT_RESIZE_BORDERS_PANEL_H_ +#endif // LANCELOT_RESIZE_BORDERS_PANEL_H Index: lancelot/libs/lancelot/widgets/ScrollPane.h =================================================================== --- lancelot/libs/lancelot/widgets/ScrollPane.h (révision 910278) +++ lancelot/libs/lancelot/widgets/ScrollPane.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_SCROLL_PANE_H_ -#define LANCELOT_SCROLL_PANE_H_ +#ifndef LANCELOT_SCROLL_PANE_H +#define LANCELOT_SCROLL_PANE_H #include <lancelot/lancelot_export.h> @@ -198,5 +198,5 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(Lancelot::ScrollPane::Flags) -#endif // LANCELOT_SCROLL_PANE_H_ +#endif // LANCELOT_SCROLL_PANE_H Index: lancelot/libs/lancelot/widgets/ActionListView.h =================================================================== --- lancelot/libs/lancelot/widgets/ActionListView.h (révision 910278) +++ lancelot/libs/lancelot/widgets/ActionListView.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_ACTION_LIST_VIEW_H_ -#define LANCELOT_ACTION_LIST_VIEW_H_ +#ifndef LANCELOT_ACTION_LIST_VIEW_H +#define LANCELOT_ACTION_LIST_VIEW_H #ifndef LANCELOT_ACTION_LIST_VIEW2_OVERRIDE #define LANCELOT_ACTION_LIST_VIEW2_OVERRIDE @@ -32,10 +32,8 @@ #include <lancelot/lancelot.h> #include <lancelot/lancelot_export.h> -#include <QtGui> -#include <QtCore> -#include <KDebug> -#include <QIcon> +#include <KDE/KDebug> +#include <QtGui/QIcon> #include <lancelot/widgets/Widget.h> #include <lancelot/widgets/ExtenderButton.h> @@ -191,5 +189,5 @@ } // namespace Lancelot #endif -#endif /* LANCELOT_ACTION_LIST_VIEW_H_ */ +#endif /* LANCELOT_ACTION_LIST_VIEW_H */ Index: lancelot/libs/lancelot/widgets/ExtenderButton.cpp =================================================================== --- lancelot/libs/lancelot/widgets/ExtenderButton.cpp (révision 910278) +++ lancelot/libs/lancelot/widgets/ExtenderButton.cpp (copie de travail) @@ -22,6 +22,7 @@ #include <QRectF> #include <KDebug> #include <QIcon> +#include <QTimer> #define ACTIVATION_TIME 300 Index: lancelot/libs/lancelot/widgets/ActionListView2_p.h =================================================================== --- lancelot/libs/lancelot/widgets/ActionListView2_p.h (révision 910278) +++ lancelot/libs/lancelot/widgets/ActionListView2_p.h (copie de travail) @@ -17,14 +17,12 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_ACTION_LIST_VIEW2_PH_ -#define LANCELOT_ACTION_LIST_VIEW2_PH_ +#ifndef LANCELOT_ACTION_LIST_VIEW2_PH +#define LANCELOT_ACTION_LIST_VIEW2_PH #include <lancelot/lancelot.h> #include <lancelot/lancelot_export.h> -#include <QtGui> -#include <QtCore> #include <KDebug> #include <QIcon> @@ -142,5 +140,5 @@ } // namespace Lancelot -#endif /* LANCELOT_ACTION_LIST_VIEW2_PH_ */ +#endif /* LANCELOT_ACTION_LIST_VIEW2_PH */ Index: lancelot/libs/lancelot/widgets/ExtenderButton.h =================================================================== --- lancelot/libs/lancelot/widgets/ExtenderButton.h (révision 910278) +++ lancelot/libs/lancelot/widgets/ExtenderButton.h (copie de travail) @@ -17,15 +17,12 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_EXTENDER_BUTTON_H_ -#define LANCELOT_EXTENDER_BUTTON_H_ +#ifndef LANCELOT_EXTENDER_BUTTON_H +#define LANCELOT_EXTENDER_BUTTON_H #include <lancelot/lancelot.h> #include <lancelot/lancelot_export.h> -#include <QtGui> -#include <QtCore> - #include <lancelot/widgets/Widget.h> #include <lancelot/widgets/BasicWidget.h> @@ -184,5 +181,5 @@ } // namespace Lancelot -#endif /* LANCELOT_EXTENDER_BUTTON_H_ */ +#endif /* LANCELOT_EXTENDER_BUTTON_H */ Index: lancelot/libs/lancelot/widgets/ScrollBar.cpp =================================================================== --- lancelot/libs/lancelot/widgets/ScrollBar.cpp (révision 910278) +++ lancelot/libs/lancelot/widgets/ScrollBar.cpp (copie de travail) @@ -21,6 +21,8 @@ #include <KDebug> #include "ExtenderButton.h" +#include <QTimer> +#include <QGraphicsSceneMouseEvent> namespace Lancelot { Index: lancelot/libs/lancelot/widgets/Widget.cpp =================================================================== --- lancelot/libs/lancelot/widgets/Widget.cpp (révision 910278) +++ lancelot/libs/lancelot/widgets/Widget.cpp (copie de travail) @@ -17,12 +17,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include "Widget.h" + #include <QVariant> -#include "Widget.h" #include "Global.h" #include <lancelot/lancelot.h> #include <KDebug> +#include <QtGui/QGraphicsSceneMouseEvent> +#include <QtGui/QPainter> + namespace Lancelot { class Widget::Private { Index: lancelot/libs/lancelot/widgets/BasicWidget.cpp =================================================================== --- lancelot/libs/lancelot/widgets/BasicWidget.cpp (révision 910278) +++ lancelot/libs/lancelot/widgets/BasicWidget.cpp (copie de travail) @@ -22,6 +22,7 @@ #include <cmath> #include "Global.h" #include <lancelot/lancelot.h> +#include <QtGui/QPainter> #define WIDGET_PADDING 8 Index: lancelot/libs/lancelot/widgets/ActionListView2.cpp =================================================================== --- lancelot/libs/lancelot/widgets/ActionListView2.cpp (révision 910278) +++ lancelot/libs/lancelot/widgets/ActionListView2.cpp (copie de travail) @@ -20,6 +20,9 @@ #include "ActionListView2.h" #include "ActionListView2_p.h" +#include <QGraphicsSceneMouseEvent> +#include <QApplication> + namespace Lancelot { //> ActionListView2Item Index: lancelot/libs/lancelot/widgets/ScrollBar.h =================================================================== --- lancelot/libs/lancelot/widgets/ScrollBar.h (révision 910278) +++ lancelot/libs/lancelot/widgets/ScrollBar.h (copie de travail) @@ -17,14 +17,12 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_SCROLL_BAR_H_ -#define LANCELOT_SCROLL_BAR_H_ +#ifndef LANCELOT_SCROLL_BAR_H +#define LANCELOT_SCROLL_BAR_H #include <lancelot/lancelot_export.h> #include <lancelot/lancelot.h> -#include <QtGui> -#include <QtCore> #include <lancelot/widgets/Widget.h> namespace Lancelot @@ -197,4 +195,4 @@ } // namespace Lancelot -#endif /* LANCELOT_SCROLL_BAR_H_ */ +#endif /* LANCELOT_SCROLL_BAR_H */ Index: lancelot/libs/lancelot/widgets/Widget.h =================================================================== --- lancelot/libs/lancelot/widgets/Widget.h (révision 910278) +++ lancelot/libs/lancelot/widgets/Widget.h (copie de travail) @@ -17,18 +17,17 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_WIDGET_H_ -#define LANCELOT_WIDGET_H_ +#ifndef LANCELOT_WIDGET_H +#define LANCELOT_WIDGET_H -#include <KDebug> +#include <KDE/KDebug> #include <lancelot/lancelot_export.h> #include <lancelot/lancelot.h> #include <lancelot/Global.h> -#include <QtGui> -#include <QGraphicsWidget> +#include <QtGui/QGraphicsWidget> namespace Lancelot { @@ -194,5 +193,5 @@ } // namespace Lancelot -#endif /* LANCELOT_WIDGET_H_ */ +#endif /* LANCELOT_WIDGET_H */ Index: lancelot/libs/lancelot/widgets/BasicWidget.h =================================================================== --- lancelot/libs/lancelot/widgets/BasicWidget.h (révision 910278) +++ lancelot/libs/lancelot/widgets/BasicWidget.h (copie de travail) @@ -17,16 +17,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_BASIC_WIDGET_H_ -#define LANCELOT_BASIC_WIDGET_H_ +#ifndef LANCELOT_BASIC_WIDGET_H +#define LANCELOT_BASIC_WIDGET_H #include <lancelot/lancelot_export.h> #include <lancelot/lancelot.h> -#include <QtGui> -#include <QtCore> #include <plasma/svg.h> +#include <QtGui/QGraphicsScene> +#include <QtGui/QIcon> #include <lancelot/widgets/Widget.h> namespace Lancelot @@ -190,5 +190,5 @@ } // namespace Lancelot -#endif /* LANCELOT_BASIC_WIDGET_H_ */ +#endif /* LANCELOT_BASIC_WIDGET_H */ Index: lancelot/libs/lancelot/widgets/ActionListView2.h =================================================================== --- lancelot/libs/lancelot/widgets/ActionListView2.h (révision 910278) +++ lancelot/libs/lancelot/widgets/ActionListView2.h (copie de travail) @@ -17,14 +17,12 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_ACTION_LIST_VIEW2_H_ -#define LANCELOT_ACTION_LIST_VIEW2_H_ +#ifndef LANCELOT_ACTION_LIST_VIEW2_H +#define LANCELOT_ACTION_LIST_VIEW2_H #include <lancelot/lancelot.h> #include <lancelot/lancelot_export.h> -#include <QtGui> -#include <QtCore> #include <KDebug> #include <QIcon> @@ -80,5 +78,5 @@ } // namespace Lancelot -#endif /* LANCELOT_ACTION_LIST_VIEW2_H_ */ +#endif /* LANCELOT_ACTION_LIST_VIEW2_H */ Index: lancelot/libs/lancelot/widgets/HoverIcon.cpp =================================================================== --- lancelot/libs/lancelot/widgets/HoverIcon.cpp (révision 910278) +++ lancelot/libs/lancelot/widgets/HoverIcon.cpp (copie de travail) @@ -19,6 +19,8 @@ #include "HoverIcon.h" +#include <QBasicTimer> + #define ACTIVATION_TIME 300 namespace Lancelot Index: lancelot/libs/lancelot/Global.h =================================================================== --- lancelot/libs/lancelot/Global.h (révision 910278) +++ lancelot/libs/lancelot/Global.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_GLOBAL_H_ -#define LANCELOT_GLOBAL_H_ +#ifndef LANCELOT_GLOBAL_H +#define LANCELOT_GLOBAL_H #include <QColor> #include <QString> @@ -277,5 +277,5 @@ } // namespace Lancelot -#endif /* LANCELOT_GLOBAL_H_ */ +#endif /* LANCELOT_GLOBAL_H */ Index: lancelot/libs/lancelot/lancelot.h =================================================================== --- lancelot/libs/lancelot/lancelot.h (révision 910278) +++ lancelot/libs/lancelot/lancelot.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LIBLANCELOT_H_ -#define LIBLANCELOT_H_ +#ifndef LIBLANCELOT_H +#define LIBLANCELOT_H #include <QWidget> #include <QMetaObject> @@ -80,5 +80,5 @@ } // namespace Lancelot -#endif // LIBLANCELOT_H_ +#endif // LIBLANCELOT_H Index: lancelot/libs/lancelot/lancelot_export.h =================================================================== --- lancelot/libs/lancelot/lancelot_export.h (révision 910278) +++ lancelot/libs/lancelot/lancelot_export.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef LANCELOT_EXPORT_H_ -#define LANCELOT_EXPORT_H_ +#ifndef LANCELOT_EXPORT_H +#define LANCELOT_EXPORT_H /* needed for KDE_EXPORT and KDE_IMPORT macros */ #include <kdemacros.h> @@ -46,5 +46,5 @@ // Extra data needed by PUCK module generator. Does nothing otherwise #define L_EXTRA(A) -#endif // LANCELOT_EXPORT_H_ +#endif // LANCELOT_EXPORT_H Index: bluemarble/bluemarble.cpp =================================================================== --- bluemarble/bluemarble.cpp (révision 910278) +++ bluemarble/bluemarble.cpp (copie de travail) @@ -16,11 +16,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include "bluemarble.h" + // has to be first #include "kwinglutils.h" -#include "bluemarble.h" - #include <QGraphicsSceneMouseEvent> #include <kdebug.h> Index: konqprofiles/konqprofilesapplet.h =================================================================== --- konqprofiles/konqprofilesapplet.h (révision 910278) +++ konqprofiles/konqprofilesapplet.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * ***************************************************************************/ -#ifndef _KONQPROFILESAPPLET_H_ -#define _KONQPROFILESAPPLET_H_ +#ifndef KONQPROFILESAPPLET_H +#define KONQPROFILESAPPLET_H #include <Plasma/PopupApplet> Index: charselect/charselect.cpp =================================================================== --- charselect/charselect.cpp (révision 910278) +++ charselect/charselect.cpp (copie de travail) @@ -17,6 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ +#include "charselect.h" #include <QClipboard> #include <QApplication> @@ -25,7 +26,6 @@ #include <KPushButton> #include <QGridLayout> #include <plasma/widgets/iconwidget.h> -#include "charselect.h" CharSelectApplet::CharSelectApplet(QObject *parent, const QVariantList &args) : Plasma::PopupApplet(parent, args), Index: life/life.cpp =================================================================== --- life/life.cpp (révision 910278) +++ life/life.cpp (copie de travail) @@ -17,20 +17,18 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ +#include "life.h" + #include <assert.h> #include <cstdlib> #include <QPainter> -#include <QTimer> #include <Plasma/Svg> #include <Plasma/Theme> #include <KConfigDialog> #include <KDebug> -#include "ui_lifeConfig.h" -#include "life.h" - Life::Life(QObject *parent, const QVariantList &args) : Plasma::Applet(parent, args), timer(this) Index: life/life.h =================================================================== --- life/life.h (révision 910278) +++ life/life.h (copie de travail) @@ -22,7 +22,10 @@ #include <Plasma/Applet> #include <Plasma/Svg> +#include <QTimer> +#include "ui_lifeConfig.h" + namespace Plasma { class DataEngine; Index: leavenote/leavenote.cpp =================================================================== --- leavenote/leavenote.cpp (révision 910278) +++ leavenote/leavenote.cpp (copie de travail) @@ -21,6 +21,8 @@ * */ +#include "leavenote.h" + #include <QtCore/QProcess> #include <QtCore/QHash> #include <QtDBus/QDBusInterface> @@ -42,8 +44,6 @@ #include <KTextEdit> #include <KLocale> -#include "leavenote.h" - #define MAX_CHAR 1000 LeaveNote::LeaveNote(QObject *parent, const QVariantList &args) Index: leavenote/leavenote.h =================================================================== --- leavenote/leavenote.h (révision 910278) +++ leavenote/leavenote.h (copie de travail) @@ -17,8 +17,8 @@ */ // Here we avoid loading the header multiple times -#ifndef Leavemsg_HEADER -#define Leavemsg_HEADER +#ifndef LEAVENOTE_H +#define LEAVENOTE_H #include <QHash> #include <QTimer> @@ -89,6 +89,6 @@ // This is the command that links your applet to the .desktop file K_EXPORT_PLASMA_APPLET(leavenote, LeaveNote) -#endif +#endif /* LEAVENOTE_H */ void verboseLog(QString); Index: frame/slideshow.cpp =================================================================== --- frame/slideshow.cpp (révision 910278) +++ frame/slideshow.cpp (copie de travail) @@ -17,13 +17,13 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ +#include "slideshow.h" + #include <QDir> -#include <KUrl> #include <KRandomSequence> #include <KDebug> #include "picture.h" -#include "slideshow.h" #include <stdlib.h> SlideShow::SlideShow() Index: frame/slideshow.h =================================================================== --- frame/slideshow.h (révision 910278) +++ frame/slideshow.h (copie de travail) @@ -17,17 +17,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ -#ifndef SLIDESHOW_H_ -#define SLIDESHOW_H_ +#ifndef SLIDESHOW_H +#define SLIDESHOW_H #include <QString> #include <QStringList> #include <QImage> #include <math.h> #include <iostream> +#include <KUrl> -class KUrl; - class SlideShow { public: @@ -56,4 +55,4 @@ }; -#endif /*SLIDESHOW_H_*/ +#endif /*SLIDESHOW_H*/ Index: frame/configdialog.cpp =================================================================== --- frame/configdialog.cpp (révision 910278) +++ frame/configdialog.cpp (copie de travail) @@ -17,11 +17,12 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ +#include "configdialog.h" + #include <KComboBox> #include <KLocale> #include <KStandardDirs> -#include "configdialog.h" #include "picture.h" ConfigDialog::ConfigDialog(QWidget *parent) Index: pastebin/backends/imagebinca.cpp =================================================================== --- pastebin/backends/imagebinca.cpp (révision 910278) +++ pastebin/backends/imagebinca.cpp (copie de travail) @@ -19,6 +19,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ +#include "imagebinca.h" + #include <QFile> #include <QFileInfo> #include <QTextStream> @@ -30,8 +32,6 @@ #include <kapplication.h> #include <KDebug> -#include "imagebinca.h" - ImagebinCAServer::ImagebinCAServer() : PastebinServer(), m_server("http://imagebin.ca") Index: pastebin/backends/pastebincom.cpp =================================================================== --- pastebin/backends/pastebincom.cpp (révision 910278) +++ pastebin/backends/pastebincom.cpp (copie de travail) @@ -17,11 +17,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ +#include "pastebincom.h" + #include <KDebug> #include <QUrl> -#include "pastebincom.h" - PastebinCOMServer::PastebinCOMServer() : PastebinServer(), m_server("http://pastebin.com") Index: pastebin/backends/pastebinca.cpp =================================================================== --- pastebin/backends/pastebinca.cpp (révision 910278) +++ pastebin/backends/pastebinca.cpp (copie de travail) @@ -18,11 +18,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ +#include "pastebinca.h" + #include <KDebug> #include <QUrl> -#include "pastebinca.h" - PastebinCAServer::PastebinCAServer() : PastebinServer(), m_server("http://pastebin.ca"), Index: pastebin/backends/imageshack.cpp =================================================================== --- pastebin/backends/imageshack.cpp (révision 910278) +++ pastebin/backends/imageshack.cpp (copie de travail) @@ -20,6 +20,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ +#include "imageshack.h" + #include <QFile> #include <QFileInfo> #include <QTextStream> @@ -31,8 +33,6 @@ #include <kapplication.h> #include <KDebug> -#include "imageshack.h" - ImageshackServer::ImageshackServer() : PastebinServer(), m_server("http://imageshack.us") Index: konsoleprofiles/konsoleprofilesapplet.h =================================================================== --- konsoleprofiles/konsoleprofilesapplet.h (révision 910278) +++ konsoleprofiles/konsoleprofilesapplet.h (copie de travail) @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * ***************************************************************************/ -#ifndef _KONSOLEPROFILESAPPLET_H_ -#define _KONSOLEPROFILESAPPLET_H_ +#ifndef KONSOLEPROFILESAPPLET_H +#define KONSOLEPROFILESAPPLET_H #include <Plasma/PopupApplet>
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel