]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix all krazy #include warnings
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 4 Feb 2018 10:38:50 +0000 (11:38 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 4 Feb 2018 10:38:50 +0000 (11:38 +0100)
- "include own header first line"
- "put config.h in angle brackets line"
- "do not include QtModule/QtClass line"

`QElapsedTimer` was implicitly included by
kfileitemmodelsortalgorithm.h, now we need to explicitly include it in
kfileitemmodel.cpp.

We also need to explicitly link to `Qt5::Concurrent`, otherwise we
cannot `#include <QtConcurrentRun>`.

src/CMakeLists.txt
src/global.cpp
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kitemlistviewaccessible.h
src/kitemviews/private/kfileitemmodelsortalgorithm.h
src/panels/information/filemetadataconfigurationdialog.h
src/panels/information/informationpanelcontent.h
src/statusbar/mountpointobserver.cpp
src/views/tooltips/dolphinfilemetadatawidget.h

index e1b63358dcf024d08150a2a617514c65aaa984eb..9a8302ff14e83549843c339657e5f6fbed3838c5 100644 (file)
@@ -137,6 +137,7 @@ generate_export_header(dolphinprivate BASE_NAME dolphin)
 target_link_libraries(
     dolphinprivate PUBLIC
     dolphinvcs
+    Qt5::Concurrent
     Qt5::Gui
     KF5::Crash
     KF5::I18n
index 20dee00fa73ed384d53375abb7c39521793bdce6..d0e477bc8d1b3ab22142615fbea8223b3aaf1906 100644 (file)
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include <QApplication>
-#include <QIcon>
-
-#include <KRun>
-
 #include "global.h"
 #include "dolphindebug.h"
-
 #include "dolphin_generalsettings.h"
 
+#include <KRun>
+
+#include <QApplication>
+#include <QIcon>
+
 QList<QUrl> Dolphin::validateUris(const QStringList& uriList)
 {
     const QString currentDir = QDir::currentPath();
index a5422a7bf5280f703002e5979c2cf58ef99c12f8..8c736ccfe50f1425fe590becefc69a70e744e571 100644 (file)
@@ -31,6 +31,7 @@
 #include "private/kfileitemmodelsortalgorithm.h"
 #include "private/kfileitemmodeldirlister.h"
 
+#include <QElapsedTimer>
 #include <QMimeData>
 #include <QTimer>
 #include <QWidget>
index 674d98ee631ef7f889fa307c31ab29eb7fa8dc9f..fdc3ff1a3a73adaeae3854019bd3001e32c5b816 100644 (file)
 
 #include "dolphin_export.h"
 
-#include <QtCore/qpointer.h>
-#include <qaccessible.h>
-#include <qaccessibleobject.h>
-#include <QtWidgets/qaccessiblewidget.h>
+#include <QAccessible>
+#include <QAccessibleObject>
+#include <QAccessibleWidget>
+#include <QPointer>
 
 class KItemListView;
 class KItemListContainer;
index 7c090db91016278e2b64ef8ec3e4fdd7733c3e99..ff484a7e8bbc049fe953f7f03db4db2dc8bb38c8 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef KFILEITEMMODELSORTALGORITHM_H
 #define KFILEITEMMODELSORTALGORITHM_H
 
-#include <QtConcurrent/QtConcurrent>
+#include <QtConcurrentRun>
 
 #include <algorithm>
 
index 8ca9ef6febf50033f4eafd0de85df6589ee97760..912fadadc07339ae21345921b63c47ad79fc15dc 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <QDialog>
 #include <KFileItem>
-#include "config-baloo.h"
+#include <config-baloo.h>
 
 #ifndef HAVE_BALOO
 class KFileMetaDataConfigurationWidget;
index 8b143af1d6f72c903f9b7b1da0e71ab31ef8b5c9..a6c2b56228bfd2edc6bc09da04f7a1b90c2de2b4 100644 (file)
 #ifndef INFORMATIONPANELCONTENT_H
 #define INFORMATIONPANELCONTENT_H
 
-#include "config-baloo.h"
+#include <config-baloo.h>
+
 #include <KFileItem>
-#include <QUrl>
 
+#include <QUrl>
 #include <QPointer>
 #include <QWidget>
 
index df2a4898fdfa515955b3357ac19687733c28f21c..fa6472c0a7e191618f6a496341a9b271256e90c5 100644 (file)
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
  ***************************************************************************/
 
-#include <KIO/FileSystemFreeSpaceJob>
-
 #include "mountpointobserver.h"
 #include "mountpointobservercache.h"
 
+#include <KIO/FileSystemFreeSpaceJob>
+
 MountPointObserver::MountPointObserver(const QUrl& url, QObject* parent) :
     QObject(parent),
     m_url(url),
index 3017ef5ced93605decf1ff5ef686e4906f551004..e7459b19722280c4312d43a564a08296599da998 100644 (file)
@@ -23,7 +23,7 @@
 #define DOLPHINFILEMETADATAWIDGET_H
 
 #include <QWidget>
-#include "config-baloo.h"
+#include <config-baloo.h>
 
 class KFileItemList;
 class QLabel;